Skip to content

Commit

Permalink
Fix graalvm compatibility in patform libs test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShammiL committed Jul 18, 2023
1 parent 7f6e15b commit b417c41
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void testPackStandaloneFile() throws IOException {

@Test(description = "Pack a package with platform libs")
public void testPackageWithPlatformLibs() throws IOException {
Path projectPath = this.testResources.resolve("validProjectWithPlatformLibs");
Path projectPath = this.testResources.resolve("validGraalvmCompatibleProjectWithPlatformLibs");
System.setProperty("user.dir", projectPath.toString());
PackCommand packCommand = new PackCommand(projectPath, printStream, printStream, false, true);
new CommandLine(packCommand).parseArgs();
Expand All @@ -129,8 +129,8 @@ public void testPackageWithTestOnlyPlatformLibs() throws IOException {
packCommand.execute();
String buildLog = readOutput(true);

// Assert.assertTrue(buildLog.replaceAll("\r", "").contains(
// getOutput("pack-project-with-test-only-platform-libs.txt")));
Assert.assertEquals(buildLog.replaceAll("\r", ""),
getOutput("pack-project-with-test-only-platform-libs.txt"));
Assert.assertTrue(projectPath.resolve("target").resolve("bala").resolve("sameera-myproject-any-0.1.0.bala")
.toFile().exists());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ org = "sameera"
name = "myproject"
version = "0.1.0"

[platform.java11]
graalvmCompatible = true

[[platform.java11.dependency]]
path = "./libs/one-1.0.0.jar"
scope = "testOnly"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
org = "sameera"
name = "myproject"
version = "0.1.0"

[platform.java11]
graalvmCompatible = true

[[platform.java11.dependency]]
path = "./libs/one-1.0.0.jar"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

public function main() {
}

0 comments on commit b417c41

Please sign in to comment.