diff options
author | Omar Polo <op@omarpolo.com> | 2023-08-03 22:37:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-08-03 22:37:05 +0000 |
commit | 56054fe197b01c5e4e2ee433c752fcec79a09fd3 (patch) | |
tree | 269f9c2f47558f4d38cd898d8a30612e5036fdf0 /regress | |
parent | f736c9579c7c69cd124839bb61cfa9b26588aa9d (diff) |
use the legacy style in the tests for now
Diffstat (limited to 'regress')
-rw-r--r-- | regress/tests.sh | 10 |
1 files changed, 6 insertions, 4 deletions
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 |