From 515dd9d5ca63c70d604bba0938c0099e53ff396b Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sun, 26 Feb 2023 19:46:16 +0100 Subject: tests: don't shutdown the server immediately to allow for manual testing --- tests/run-tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 6588a41..4fbfb43 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -29,11 +29,14 @@ PORTS[rss]=8083 PORTS[openpgpkey]=8084 for SERVICE in "${!PORTS[@]}" do + URL="http://$IP:${PORTS[$SERVICE]}/" echo Checking connection to container version of $SERVICE.aristote.fr ... - RESULT=$(curl "http://$IP:${PORTS[$SERVICE]}/" $CURL_FLAGS --output /dev/null --write-out '%{http_code}\n') + RESULT=$(curl "$URL" $CURL_FLAGS --output /dev/null --write-out '%{http_code}\n') if [[ ! "$RESULT" = 200 ]] then echo "Connection failed." + else + echo "Up and running at $URL !" fi done echo Done. @@ -95,3 +98,6 @@ then echo "Connection failed." fi echo Done. + +echo +read -n1 -srp "Press any key to stop the server." -- cgit v1.2.3