summaryrefslogtreecommitdiff
path: root/tests/run-tests.sh
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-26 19:46:16 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-26 19:46:16 +0100
commit515dd9d5ca63c70d604bba0938c0099e53ff396b (patch)
tree9735990db967f6cb05dbeed9984f76cd96680e02 /tests/run-tests.sh
parentdbc9083cff1fb4c23ddc97d016184edd4df83daa (diff)
tests: don't shutdown the server immediately to allow for manual testing
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-xtests/run-tests.sh8
1 files changed, 7 insertions, 1 deletions
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."