Commit Briefs

Omar Polo

fix test_auto_index


Omar Polo

check for the expected page in test_auto_index

not just the number of lines, check the full page!



Omar Polo

break out if check_reply fails

it's not a problem when we have only one check_reply at then end, since $? is kept across function boundaries, but when we have multiple checks we need to quit on the first error.


Omar Polo

add tests for the type block


Omar Polo

bail out of client_read if we've already decide what to do

libevent2 can still somehowe call client_read even in code paths that never enable reading from the evbuffer. Can't reproduce on the libevent in base on OpenBSD. It's a bit ugly, but it's a small workaround for something that otherwise *always* make gmid crash when linked against libevent2. (client_read works under the assumption that c->host != NULL, matched_proxy crashes otherwise.)





Omar Polo

typo



Omar Polo

rename variable


Omar Polo

run all kinds of tests via tests.sh/runtime

while there also change the dependency in the makefile: iri_test should be alone, not as deps of `data'.


Omar Polo

re-add sha script; it's used in the Makefile

While there, use it in the tests too


Omar Polo

rework the regression suite

The tests are still there, the suite is equivalent to the old one, but this one is better structured. The biggest annoyance I had with the old one was that it wasn't straightforward to test only a specific set of tests. It's still impossible, but it's way easier to do it now. This extract all the tests to their own functions. It's overall better in all possible regards.