From 017e8cb048305fda338863caa588a6019ef470f6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 11 Mar 2022 22:59:05 +0500 Subject: test/test.sh: use the port variable --- test/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.sh b/test/test.sh index 77a15e2..1662eed 100755 --- a/test/test.sh +++ b/test/test.sh @@ -27,7 +27,7 @@ dump() { run_server() { dump "Starting up server..." - "$script_dir/../server.py" --port 18101 & + "$script_dir/../server.py" --port "$server_port" & server_pid="$!" dump "Its PID is $server_pid" sleep 5 -- cgit v1.2.3 From f9cd23215addf09af0c0ef44e5efe1b0840150cb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 12 Mar 2022 11:10:21 +0500 Subject: test: catch possible undetected failures --- test/test.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test.sh b/test/test.sh index 1662eed..1c2ce66 100755 --- a/test/test.sh +++ b/test/test.sh @@ -108,6 +108,9 @@ curl_check_keyword() { if ! grep --fixed-strings --quiet -- "$keyword" "$curl_output_file"; then dump "The following pattern hasn't been found:" dump "$keyword" + dump "The output was:" + cat -- "$curl_output_file" + return 1 fi done } -- cgit v1.2.3 From 8baa2bf421503b1ac6cb5d16a2ad0a46311ff547 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 01:28:09 +0200 Subject: test: fix paths --- test/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test.sh b/test/test.sh index 1c2ce66..8597a24 100755 --- a/test/test.sh +++ b/test/test.sh @@ -27,7 +27,7 @@ dump() { run_server() { dump "Starting up server..." - "$script_dir/../server.py" --port "$server_port" & + "$script_dir/../src/server.py" --port "$server_port" & server_pid="$!" dump "Its PID is $server_pid" sleep 5 @@ -172,7 +172,7 @@ run_cgi_test() { local query_string="what=$what" dump "Running CGI test for query string: $query_string" - QUERY_STRING="$query_string" "$script_dir/../app.py" > "$curl_output_file" + QUERY_STRING="$query_string" "$script_dir/../src/app.py" > "$curl_output_file" cgi_check_header -- cgit v1.2.3