Skip to content

Commit

Permalink
Make test mandatory (temporarily) and add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jan 3, 2024
1 parent d9e0e5e commit 9476f47
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static platform.tooling.support.tests.XmlAssertions.verifyContainsExpectedStartedOpenTestReport;

import java.nio.file.Paths;
Expand All @@ -36,6 +35,8 @@ class GraalVmStarterTests {

@Test
void runsTestsInNativeImage() {
System.out.println("System.getenv(\"GRAALVM_HOME\") = " + System.getenv("GRAALVM_HOME"));

var request = Request.builder() //
.setTool(new GradleWrapper(Paths.get(".."))) //
.setProject("graalvm-starter") //
Expand All @@ -49,10 +50,10 @@ void runsTestsInNativeImage() {

assertFalse(result.isTimedOut(), () -> "tool timed out: " + result);

assumeFalse(
result.getOutputLines("err").stream().anyMatch(
line -> line.contains("No locally installed toolchains match")),
"Abort test if GraalVM is not installed");
// assumeFalse(
// result.getOutputLines("err").stream().anyMatch(
// line -> line.contains("No locally installed toolchains match")),
// "Abort test if GraalVM is not installed");

assertEquals(0, result.getExitCode());
assertTrue(result.getOutputLines("out").stream().anyMatch(line -> line.contains("BUILD SUCCESSFUL")));
Expand Down

0 comments on commit 9476f47

Please sign in to comment.