From 52e61043bcb716af42f9fd167aa2bb280bde5b5b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 31 Mar 2023 21:34:47 +0300 Subject: Updated test scripts --- api/tests/default_route.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 100644 => 100755 api/tests/default_route.sh (limited to 'api/tests/default_route.sh') diff --git a/api/tests/default_route.sh b/api/tests/default_route.sh old mode 100644 new mode 100755 index 8e73ae6..1505b68 --- a/api/tests/default_route.sh +++ b/api/tests/default_route.sh @@ -1,2 +1,11 @@ #!/bin/bash -curl http://127.0.0.1:8610 +PROGRAM="$(basename $0)" +printf '[%s]\n' "$PROGRAM" +curl http://127.0.0.1:8610 2>/dev/null | jq > /dev/null +if [ "$?" == "0" ] +then + printf "\t\t\033[0;32mPASSED\033[0;0m" +else + printf "\t\033[0;31mFAILED\033[0;0m" +fi +printf "\n" -- cgit v1.2.3