Commits


define GEMINI_SEARCH_STRING for CGI scripts too it's redundant since gmid already fills the script argv with the words extracted from the search string, but 2.0 won't have cgi support and not all fastcgi <-> cgi wrappers follow RFC3875 ยง 4.4. This can help in preparing scripts for a future when they'll be run under for e.g. slowcgi(8).


fix test_auto_index


check for the expected page in test_auto_index not just the number of lines, check the full page!


use the types block instead of `map' in the tests too


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.


add tests for the type block


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.)


add set_proxy to simplify testing + more checks in test_proxy_with_certs


parethesize `proxy', I'm about to change the syntax


add proxying with client certificate test


typo


add a test for the `proxy relay-to' rule


rename variable


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'.


re-add sha script; it's used in the Makefile While there, use it in the tests too