aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.sh
blob: 1792726597668e55a656b2934ec9eb31220ee959 (plain)
1
2
3
4
5
6
7
8
9
result=$(php -d memory_limit=512M -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