Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Test the preview server's request handling
Only split_cgi_output was ever run. The handler, which builds the CGI environment, guards the asset directory, caps the body, times cgit out, turns a failed run into a 500 and answers HEAD, ran in no test at all. The server listens on a port the system picks, so parallel runs cannot collide.
Diffstat (limited to 'tests')
-rw-r--r--tests/serve-handler-check.py179
-rwxr-xr-xtests/t0401-serve.sh52
2 files changed, 227 insertions, 4 deletions