From 827cc37cff5940d529ab4fb75fc206f7db94adeb Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sat, 2 Oct 2021 17:20:56 +0000 Subject: [PATCH] update tests * we don't add a space before the lang anymore * we're more strict in CGI handling: the `invalid' CGI script now triggers a 42 CGI ERROR --- regress/runtime | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/runtime b/regress/runtime index cf96d9b..7566a1a 100755 --- a/regress/runtime +++ b/regress/runtime @@ -178,7 +178,7 @@ config '' 'lang "it"' checkconf restart -eq "$(head /)" "20 text/gemini; lang=it" "Unexpected head for /" +eq "$(head /)" "20 text/gemini;lang=it" "Unexpected head for /" echo OK GET / with custom lang check "should be running" @@ -206,8 +206,8 @@ eq "$(head /err)" "42 CGI error" "Unexpected head for /err" eq "$(get /err)" "" "Unexpected body for /err" echo OK GET /err with cgi -eq "$(raw /invalid | wc -c | xargs)" 2048 "Unexpected body for /invalid" -echo OK GET /invalid with cgi +#eq "$(raw /invalid | wc -c | xargs)" 2048 "Unexpected body for /invalid" +#echo OK GET /invalid with cgi eq "$(raw /max-length-reply | wc -c | xargs)" 1029 "Unexpected header for /max-length-reply" echo OK GET /max-length-reply with cgi