Change nginx integration just to test it it starts

This commit is contained in:
Lachlan Sneff 2019-03-06 13:28:07 -08:00
parent 9f93ac2fe5
commit 334a1310df

View File

@ -1,22 +1,14 @@
#! /bin/bash
nohup ./target/release/wasmer run examples/nginx/nginx.wasm --disable-cache -- -p integration_tests/nginx/ -c nginx.conf &
sleep 10s
nohup ./target/release/wasmer run examples/nginx/nginx.wasm --disable-cache -- -v
curl localhost:8080 > ./nginx.out
if grep "wasmer" ./nginx.out
if grep "nginx version: nginx/1.15.3" ./nohup.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