]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
upstream: Rework logging for the regression tests.
authordtucker@openbsd.org <dtucker@openbsd.org>
Wed, 1 Mar 2023 09:29:32 +0000 (09:29 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 1 Mar 2023 11:02:47 +0000 (22:02 +1100)
commita6f4ac8a2baf77e5361cfa017d0dc250d1409bec
tree7828e9f6bdf6f6594fa3c5b9c7611e2058cf2063
parent8ead62ed5e86c7df597d8604f332f49cd1527b85
upstream: Rework logging for the regression tests.

Previously we would log to ssh.log and sshd.log, but that is insufficient
for tests that have more than one concurent ssh/sshd.

Instead, we'll log to separate datestamped files in a $OBJ/log/ and
leave a symlink at the previous location pointing at the most recent
instance with an entry in regress.log showing which files were created
at each point.  This should be sufficient to reconstruct what happened
even for tests that use multiple instances of each program.  If the test
fails, tar up all of the logs for later analysis.

This will let us also capture the output from some of the other tools
which was previously sent to /dev/null although most of those will be
in future commits.

OpenBSD-Regress-ID: f802aa9e7fa51d1a01225c05fb0412d015c33e24
Makefile.in
regress/Makefile
regress/agent-restrict.sh
regress/agent.sh
regress/integrity.sh
regress/multiplex.sh
regress/sshd-log-wrapper.sh [deleted file]
regress/test-exec.sh
regress/timestamp.c [new file with mode: 0644]