From 56054fe197b01c5e4e2ee433c752fcec79a09fd3 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Thu, 3 Aug 2023 22:37:05 +0000 Subject: use the legacy style in the tests for now --- regress/tests.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'regress') diff --git a/regress/tests.sh b/regress/tests.sh index 1028f01..640a814 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -380,15 +380,17 @@ test_include_mime() { test_log_file() { rm -f log log.edited - setup_simple_test 'log access "'$PWD'/log"' '' + setup_simple_test ' +log access "'$PWD'/log" +log style legacy' fetch_hdr / check_reply '20 text/gemini' - # remove the date and ip - awk '{$1 = ""; $2 = ""; print substr($0, 3)}' log > log.edited + # remove the ip + awk '{$1 = ""; print substr($0, 2)}' log > log.edited - printf '%s\n' '- localhost gemini://localhost/ 0 0 20 text/gemini' \ + printf '%s\n' 'GET gemini://localhost/ 20 text/gemini' \ | cmp -s - log.edited if [ $? -ne 0 ]; then # keep the log for post-mortem analysis -- cgit v1.2.3