Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

Errors in multi-step run not propagated #37

Open jerboaa opened 3 years ago

jerboaa commented 3 years ago

I've just tried to run the imageio test locally and when looking at the build-and-run.log file I see this:

[INFO] ------------------------------------------------------------------------
Command: java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar target/imageio.jar
Error occurred during initialization of VM
Could not find agent library native-image-agent on the library path, with error: libnative-image-agent.so: cannot open shared object file: No such file or directory
Command: jar uf target/imageio.jar -C src/main/resources/ META-INF
Command: native-image -H:IncludeResources=Grace_M._Hopper.jp2,MyFreeMono.ttf,MyFreeSerif.ttf --no-fallback -jar target/imageio.jar target/imageio
[target/imageio:16901]    classlist:   1,305.26 ms,  0.96 GB
[target/imageio:16901]        (cap):     461.44 ms,  0.96 GB
[target/imageio:16901]        setup:   1,941.41 ms,  0.96 GB
[target/imageio:16901]     (clinit):     414.05 ms,  2.32 GB

Note that running the java agent failed. At that point the test should have aborted. This makes me believe the errors in a multi-step command aren't properly propagated.

jerboaa commented 3 years ago

/cc @Karm