mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
25 lines
528 B
Bash
Executable File
25 lines
528 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Build the release and run nginx
|
|
make release
|
|
nohup ./target/release/wasmer run examples/nginx/nginx.wasm -- -p integration_tests/nginx/ -c nginx.conf &
|
|
sleep 3s
|
|
|
|
curl localhost:8080 > ./nginx.out
|
|
|
|
|
|
if grep "wasmer" ./nginx.out
|
|
then
|
|
echo "nginx integration test succeeded"
|
|
rm ./nohup.out
|
|
rm ./nginx.out
|
|
rm -rf ./integration_tests/nginx/*_temp
|
|
exit 0
|
|
else
|
|
echo "nginx integration test failed"
|
|
rm ./nohup.out
|
|
rm ./nginx.out
|
|
rm -rf ./integration_tests/nginx/*_temp
|
|
exit -1
|
|
fi
|