aboutsummaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2022-03-26break out if check_reply failsOmar Polo
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.
2022-03-19const-ify some tablesOmar Polo
matches found with % grep -R '=[ ]*{' . | fgrep -v const
2022-02-27use shell built-in `command' instead of which(1)Omar Polo
it's specified by POSIX AFAIK and requires less redirections.
2022-02-26add tests for the type blockOmar Polo
2022-02-03typoAnna “CyberTailor”
2022-02-03don't skip unit tests when SKIP_RUNTIME_TESTS is setAnna “CyberTailor”
IRI and Punycode tests don't run gmid binary and can be safely executed.
2022-01-30posixify lib.sh: use = instead of == for test(1)Omar Polo
2022-01-27remove unused functionOmar Polo
2022-01-05bail out of client_read if we've already decide what to doOmar Polo
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.)
2022-01-03add set_proxy to simplify testing + more checks in test_proxy_with_certsOmar Polo
2022-01-03set prefork to 1 during regressOmar Polo
2022-01-03don't print `config OK'Omar Polo
2022-01-02parethesize `proxy', I'm about to change the syntaxOmar Polo
2022-01-01add proxying with client certificate testOmar Polo
2022-01-01typoOmar Polo
2021-12-29add a test for the `proxy relay-to' ruleOmar Polo
2021-12-29retire the old ggOmar Polo
2021-12-29switch to the new gg for the regress suiteOmar Polo
2021-12-29typoOmar Polo
2021-12-09typoOmar Polo
forgot to rename variable in lib.sh: dont_check -> dont_check_server_alive.
2021-12-09rename `runtime' to `regress'Omar Polo
while there also kill an unused rule `regress', it's now redundant since all the tests are run together.
2021-12-09rename variableOmar Polo
2021-12-09run all kinds of tests via tests.sh/runtimeOmar Polo
while there also change the dependency in the makefile: iri_test should be alone, not as deps of `data'.
2021-12-09add ocs stapling checking for ggOmar Polo
2021-10-07allow to run only a subset of the runtime testsOmar Polo
with make TESTS='test_1 test_2 ...' regress now it's possible to run only that specified subset of tests. It's really useful during debugging :)
2021-10-04re-add sha script; it's used in the MakefileOmar Polo
While there, use it in the tests too
2021-10-04reduced the timeout time for single checksOmar Polo
2021-10-04allow running only specific testsOmar Polo
It's now possible to run only a subset of the tests with: ./runtime test1 test2 ...
2021-10-04remove unused scriptOmar Polo
2021-10-04rework the regression suiteOmar Polo
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.
2021-10-02update clean targetOmar Polo
2021-10-02update testsOmar Polo
* we don't add a space before the lang anymore * we're more strict in CGI handling: the `invalid' CGI script now triggers a 42 CGI ERROR
2021-09-24fix possible out-of-bound accessOmar Polo
While computing the parent directory it an out-of-bound access can occur, which usually means the server process dies. In particular, it can be triggered by making a request for a non-existent file in the root of a virtual host if the path matches the `cgi` pattern. Thanks cage for helping in debugging!
2021-07-19use certs from regress/Omar Polo
2021-07-19unbreak configless modeOmar Polo
An un-initialized field in the configless code path leads to a crash on the first request.
2021-07-10provide a fallback value for SKIP_RUNTIME_TESTSOmar Polo
some [ implementation will warn about "bad number"
2021-07-09rename `mime MIME EXT' to `map MIME to-ext EXT'Omar Polo
With the newish automatic string concatenation, options like `mime' that accepts two strings as parameter start to become ambiguous: which strings gets concatenated? Instead of trying to document in the manpage which argument(s) is subject to string concatenation, do the concat always and introduce a separator. In the case of mime, `to-ext' now acts as a separator to distinguish. While there, also use a new keyword because it sounds better. It's dead-easy to upgrade to the new configuration, possibly with some sed magic, but for the moment the old `mime' form is preserved: (with a warning!) Will be dropped in the next release.
2021-07-08provide a means to skip the runtime testsOmar Polo
Setting the environment variable SKIP_RUNTIME_TESTS to 1 will prevent the runtime tests. This is useful when running the tests inside a sandbox. based on a similar diff by Anna "CyberTailor"
2021-07-08regress/Makefile: add missing LDFLAGSAnna “CyberTailor”
2021-07-06add -T timeout to gg; don't let the regress test hangOmar Polo
2021-07-06don't log too much by defaultOmar Polo
2021-07-06test macro expansion tooOmar Polo
2021-07-03use -subj /CN=name when generating the keys for the testsOmar Polo
`printf | openssl` is ugly :/
2021-06-15be quieterOmar Polo
nobody really cares if must_read fails, as it normally shouldn't. It only clutters the regression tests with scary messages that looks like failure but are, in fact, expected.
2021-06-12add some simple test for fastcgiOmar Polo
and while there reorder the targets in the Makefile a bit
2021-06-12add simple fcgi application for test purposesOmar Polo
2021-05-24move gg to regressOmar Polo
2021-04-30make more explicit the per-location roots testOmar Polo
2021-04-30ensure %p (path) is always absoluteOmar Polo
with the recent changes, sometimes the path may not start with a '/'. This ensures that %s is ALWAYS an absolute path.
2021-04-30allow ``root'' rule to be specified per-location blockOmar Polo