tests: propagate errors in libtests

Use the test macros to automatically propagate some errors, and check
and log others while running the tests. This can help in debugging
exactly why a test has failed.
This commit is contained in:
Dan Fandrich 2023-09-29 16:32:48 -07:00
parent 61c8f1edc3
commit 2bee7aeb34
27 changed files with 318 additions and 261 deletions

View file

@ -54,6 +54,14 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
#
# Verify data after the test has been "shot"
<verify>
# hyper doesn't like the bad header in the second request
<errorcode>
%if hyper
1
%else
0
%endif
</errorcode>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT