aboutsummaryrefslogtreecommitdiff
path: root/regress
AgeCommit message (Collapse)Author
2023-07-01add some ideasOmar Polo
2023-06-23use REGRESS_HOST to specify the host to listen to; use in CIOmar Polo
some CI envs don't like `listen on localhost' but tolerate INADDR_ANY or IN6ADDR_ANY_INIT.
2023-06-23implement `listen on'Omar Polo
Listening by default on all the addresses is so bad I don't know why I haven't changed this before. Anyway. Add a `listen on $hostname port $port' syntax to the config file and deprecate the old "port" and "ipv6" global setting. Still try to honour them when no "listen on" directive is used for backward compatibily, but this will go away in the next next version hopefully. At the moment the `listen on' in server context don't filter the host, i.e. one can still reach a host from a address not specified in the corresponding `liste on', this will be added later.
2023-06-13more avoiding of void pointer arithmeticsOmar Polo
This time with a temporary variable to avoid not to trigger -Wpointer-sign, sigh.
2023-06-13rework the configure scriptOmar Polo
now it resembles less oconfigure and more the configure scripts I'm using in my recent projects. I'd argue it's more easy to use it.
2023-06-13remove regress/shaOmar Polo
we can use cmp to tell if two files are different, which also has the benefit of being available everywhere and reporting the byte offset of the first difference. Reduces the test dependencies on some systems.
2023-06-12use the default prefork in testsOmar Polo
2023-06-09don't have the config being a globalOmar Polo
2023-06-09ignore and clean fcgi.sockOmar Polo
2023-06-09fcgi-test: be less verboseOmar Polo
2023-06-09re-establish fastcgi testOmar Polo
2023-06-09rework fcgi-test so that it binds a local socketOmar Polo
still not re-enabled.
2023-06-09readd proxy certs and `require client ca' supportOmar Polo
Was temporarly disabled during the transition to real privsep. While here, fix a memory leak when using `require client ca'. Also, avoid leaking info about the parent address space layout to server processes by not sending pointer values.
2023-06-08make ge work againOmar Polo
2023-06-08rework the daemon to do fork+execOmar Polo
It uses the 'common' proc.c from various OpenBSD-daemons. gmid grew organically bit by bit and it was also the first place where I tried to implement privsep. It wasn't done very well, in fact the parent process (that retains root privileges) just fork()s a generation of servers, all sharing *exactly* the same address space. No good! Now, we fork() and re-exec() ourselves, so that each process has a fresh address space. Some features (require client ca for example) are temporarly disabled, will be fixed in subsequent commits. The "ge" program is also temporarly disabled as it needs tweaks to do privsep too.
2023-06-08regress: use -P with an absolute pathOmar Polo
2023-06-06rename PROC_MAX to PREFORK_MAXOmar Polo
2023-06-05revert aae8f6bf2bOmar Polo
it's just not worth it to inflict this breaking change to the users.
2022-10-31disable test_unknown_host temporarlyOmar Polo
breaks on some distro and needs further investigations; it's not that interesting fortunately.
2022-10-31rework `make dist'Omar Polo
2022-10-05make the various strings in the config fixed-lengthOmar Polo
will help in future restructuring to have fixed-size objects.
2022-09-10don't count twice the failing tests on gmid crashOmar Polo
2022-09-08change the flags to be consistent with other OpenBSD daemonsOmar Polo
-d is `debug' (run in the foreground) -f to load the configuration file adjust regress and contrib accordingly
2022-09-08adjust regress to use `ge' for the old configless testOmar Polo
2022-09-06get rid of the CGI supportOmar Polo
I really want to get rid of the `executor' process hack for CGI scripts and its escalation to allow fastcgi and proxying to work on non-OpenBSD. This drops the CGI support and the `executor' process entirely and is the first step towards gmid 2.0. It also allows to have more secure defaults. On non-OpenBSD systems this means that the sandbox will be deactivated as soon as fastcgi or proxying are used: you can't open sockets under FreeBSD' capsicum(4) and I don't want to go thru the pain of making it work under linux' seccomp/landlock. Patches are always welcome however. For folks using CGI scripts (hey, I'm one of you!) not all hope is lost: fcgiwrap or OpenBSD' slowcgi(8) are ways to run CGI scripts as they were FastCGI applications. fixes for the documentation and to the non-OpenBSD sandboxes will follow.
2022-08-29count ran/failed tests numberOmar Polo
2022-07-04fix test_auto_indexOmar Polo
2022-07-04refactor the makefile / configureOmar Polo
steal more (good) stuff from mandoc-portable :)
2022-07-04copyright yearsOmar Polo
2022-07-04add some more regress for the encodingsOmar Polo
2022-07-04check for the expected page in test_auto_indexOmar Polo
not just the number of lines, check the full page!
2022-07-04bugfix: allow @ and : in pathsOmar Polo
gmid would disallow the '@' and ':' characters in paths (unless percent-encoded.) Issue reported by freezr.
2022-04-08document the implicit mapping for text/geminiOmar Polo
and remove the explicit mapping from the documentation and test files.
2022-04-08fix test_include_mime after `types' changeOmar Polo
2022-04-07use the types block instead of `map' in the tests tooOmar Polo
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