diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-03-11 22:44:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-11 22:44:57 +0900 |
| commit | 75e14575b4ae1a0cc428ccf2944c314b0c908f93 (patch) | |
| tree | 1b3a4a866f833a523c49412df5d180d6ba68180f /test.sh | |
| parent | 3a667844e177dcc2dd7729df00d7368d4a21b84f (diff) | |
| download | php-waddiwasi-75e14575b4ae1a0cc428ccf2944c314b0c908f93.tar.gz php-waddiwasi-75e14575b4ae1a0cc428ccf2944c314b0c908f93.tar.zst php-waddiwasi-75e14575b4ae1a0cc428ccf2944c314b0c908f93.zip | |
feat: add minimum test
Diffstat (limited to 'test.sh')
| -rw-r--r-- | test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
