]> git.ipfire.org Git - thirdparty/curl.git/commit
runtests: support buffering log messages in runner & servers 11016/head
authorDan Fandrich <dan@coneharvesters.com>
Fri, 21 Apr 2023 21:07:31 +0000 (14:07 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 24 Apr 2023 23:28:23 +0000 (16:28 -0700)
commit189f9e23b6d730968166c462e4daddcce2d9024f
tree890b1133f30e645e6074ccf5fa73b8252aa4fd7a
parentc3453dcb9d17db2f8b5ff211f4c84949e920377c
runtests: support buffering log messages in runner & servers

Log messages generated with logmsg can now be buffered and returned from
the runner as a return value.  This will be needed with parallel testing
to allow all messages for one test to be displayed together instead of
interspersed with messages of multiple tests. Buffering can be disabled
by setting a logging callback function with setlogfunc, which is
currently being done to preserve existing logging behaviour for now.

Some additional output is generated in verbose and debugprotocol modes,
which don't always use logmsg. These modes also impact some servers
which generate extra messages. No attempt is made to buffer everything
if these modes are enabled.

Ref: #10818
Closes #11016
tests/devtest.pl
tests/runner.pm
tests/runtests.pl
tests/servers.pm
tests/testutil.pm