mirror of https://github.com/omar-polo/gmid.git
use the legacy style in the tests for now
This commit is contained in:
parent
f736c9579c
commit
56054fe197
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue