aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..bfd2052
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,9 @@
+result=$(php -d memory_limit=4G -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2>/dev/null)
+if [[ "$result" == 'Hello, World!' ]]; then
+ echo "Test passed"
+ exit 0
+else
+ echo "Test failed"
+ echo "$result"
+ exit 1
+fi