diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Renumber the test scripts into themed ranges
t000x the ground the suite stands on: git version, html validity,
the cache
t01xx page content, one script per page
t02xx features that cut across pages: filters, submodule links,
dates, limits
t03xx defence, the security regressions and the $HOME promise
t04xx the helper tools under tools/
Diffstat (limited to 'tests/t0401-serve.sh')
| -rwxr-xr-x | tests/t0401-serve.sh | 20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 20 insertions, 0 deletions
diff --git a/tests/t0401-serve.sh b/tests/t0401-serve.sh new file mode 100755 index 0000000..513c33a --- /dev/null +++ b/tests/t0401-serve.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Checks how tools/serve.py, the preview server that runs the built binary and +# hands its output back over HTTP, tells the CGI headers from the body. That +# split once keyed on the wrong blank line and swallowed the document head, +# which left a page that still validated but arrived with no stylesheet and no +# chrome. The cases live in serve-split-check.py beside this file. + +test_description='Check the preview server splits CGI output correctly' +. ./setup.sh + +if ! command -v python3 >/dev/null 2>&1; then + test_done +fi + +test_expect_success 'CGI headers and body are split at the first blank line' ' + python3 "$PWD/../serve-split-check.py" "$PWD/../.." +' + +test_done |
