mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
Added WASI integration tests
This commit is contained in:
parent
baae2b3826
commit
2a1df0fdf1
1
Makefile
1
Makefile
@ -25,6 +25,7 @@ integration-tests: release
|
||||
echo "Running Integration Tests"
|
||||
./integration_tests/lua/test.sh
|
||||
./integration_tests/nginx/test.sh
|
||||
./integration_tests/cowsay/test.sh
|
||||
|
||||
lint:
|
||||
cargo fmt --all -- --check
|
||||
|
9
integration_tests/cowsay/README.md
Normal file
9
integration_tests/cowsay/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# `cowsay` integration test
|
||||
|
||||
|
||||
This starts Wasmer with the Cowsay WASI Wasm file. The test makes assertions on
|
||||
the output of Wasmer. Run test with:
|
||||
|
||||
```bash
|
||||
./integration_tests/cowsay/test.sh
|
||||
```
|
14
integration_tests/cowsay/test.sh
Executable file
14
integration_tests/cowsay/test.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
nohup ./target/release/wasmer run examples/cowsay.wasm --disable-cache -- "hello integration"
|
||||
|
||||
if grep "hello integration" ./nohup.out
|
||||
then
|
||||
echo "cowsay wasi integration test succeeded"
|
||||
rm ./nohup.out
|
||||
exit 0
|
||||
else
|
||||
echo "cowsay wasi integration test failed"
|
||||
rm ./nohup.out
|
||||
exit -1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user