diff options
author | Lucas Werkmeister | 2021-01-19 21:22:22 +0100 |
---|---|---|
committer | Lucas Werkmeister | 2021-04-20 20:07:56 +0200 |
commit | 24508a7f56edbf268d5f9a3d5dfc09ceb20b7de7 (patch) | |
tree | 41649a36b96bd59df81540e8f86cfac76f411e06 | |
parent | 70788b67013ecfb617aaff6520feaadc6c27b8f7 (diff) | |
download | aur-24508a7f56edbf268d5f9a3d5dfc09ceb20b7de7.tar.gz |
Add test for Espresso (Java on Truffle)
I don’t think we can test interop with other languages easily (Espresso
source is JVM bytecode, not Java source code), but we can at least test
it as the main language, similar to native-image.
-rwxr-xr-x | test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -49,6 +49,15 @@ if [[ $helloWorld != 'Hello, world!' ]]; then exit 1 fi +printf '%s\n' 'Testing Espresso...' + +# reusing the same Test.java / Test.class +helloWorld=$(java -truffle Test) || exit +if [[ $helloWorld != 'Hello, world!' ]]; then + printf 'expected "Hello, world!", got %q\n' "$helloWorld" + exit 1 +fi + printf '%s\n' 'Testing GraalWASM...' PATH=$PATH:/usr/lib/emscripten |