1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update ci-test.sh

This commit is contained in:
niansa 2018-07-15 08:48:01 +00:00
parent 6205888968
commit ebbe1cf65a

View file

@ -16,5 +16,6 @@ mkdir -p /var/www/html &&
simpsh-httpd-socat -d &&
echo "Creating test document..." &&
(echo "This is a test!" > /var/www/html/testdocument.txt) &&
echo "Loading test document from server..."
testdoc="$(curl http://localhost:8888/testdocument.txt)" &&
(if [[ $testdoc == "This is a test!" ]]; then echo "Server returned expected document"; else echo "Something went wrong... Server returned: $testdoc"; exit 1; fi)