Age | Commit message (Collapse) | Author |
|
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.
|
|
matches found with
% grep -R '=[ ]*{' . | fgrep -v const
|
|
it's specified by POSIX AFAIK and requires less redirections.
|
|
|
|
|
|
IRI and Punycode tests don't run gmid binary and can be safely executed.
|
|
|
|
|
|
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.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forgot to rename variable in lib.sh: dont_check ->
dont_check_server_alive.
|
|
while there also kill an unused rule `regress', it's now redundant since
all the tests are run together.
|
|
|
|
while there also change the dependency in the makefile: iri_test should
be alone, not as deps of `data'.
|
|
|
|
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 :)
|
|
While there, use it in the tests too
|
|
|
|
It's now possible to run only a subset of the tests with:
./runtime test1 test2 ...
|
|
|
|
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.
|
|
|
|
* 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
|
|
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!
|
|
|
|
An un-initialized field in the configless code path leads to a crash
on the first request.
|
|
some [ implementation will warn about "bad number"
|
|
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.
|
|
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"
|
|
|
|
|
|
|
|
|
|
`printf | openssl` is ugly :/
|
|
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.
|
|
and while there reorder the targets in the Makefile a bit
|
|
|
|
|
|
|
|
with the recent changes, sometimes the path may not start with a '/'.
This ensures that %s is ALWAYS an absolute path.
|
|
|