mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Change nginx integration just to test it it starts
This commit is contained in:
parent
9f93ac2fe5
commit
334a1310df
@ -1,22 +1,14 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
nohup ./target/release/wasmer run examples/nginx/nginx.wasm --disable-cache -- -p integration_tests/nginx/ -c nginx.conf &
|
nohup ./target/release/wasmer run examples/nginx/nginx.wasm --disable-cache -- -v
|
||||||
sleep 10s
|
|
||||||
|
|
||||||
curl localhost:8080 > ./nginx.out
|
if grep "nginx version: nginx/1.15.3" ./nohup.out
|
||||||
|
|
||||||
|
|
||||||
if grep "wasmer" ./nginx.out
|
|
||||||
then
|
then
|
||||||
echo "nginx integration test succeeded"
|
echo "nginx integration test succeeded"
|
||||||
rm ./nohup.out
|
rm ./nohup.out
|
||||||
rm ./nginx.out
|
|
||||||
rm -rf ./integration_tests/nginx/*_temp
|
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "nginx integration test failed"
|
echo "nginx integration test failed"
|
||||||
rm ./nohup.out
|
rm ./nohup.out
|
||||||
rm ./nginx.out
|
|
||||||
rm -rf ./integration_tests/nginx/*_temp
|
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user