summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Werkmeister2021-01-19 21:22:22 +0100
committerLucas Werkmeister2021-04-20 20:07:56 +0200
commit24508a7f56edbf268d5f9a3d5dfc09ceb20b7de7 (patch)
tree41649a36b96bd59df81540e8f86cfac76f411e06
parent70788b67013ecfb617aaff6520feaadc6c27b8f7 (diff)
downloadaur-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-xtest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.sh b/test.sh
index a748726278b1..6ebaae3ef1ac 100755
--- a/test.sh
+++ b/test.sh
@@ -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