build: test-driver.scm: Make output redirection optional.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sat, 16 Jan 2021 19:54:27 +0000 (14:54 -0500)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 1 Feb 2021 03:23:41 +0000 (22:23 -0500)
commit13f299b2c98cce0ede3a8a37dd11832fdb3827bb
tree169726e5722696ba38c16ae4c38f1ebd3d25dd3d
parent85243d0d63e2219d0d376a541fa67efc24e6e2c8
build: test-driver.scm: Make output redirection optional.

This makes it easier (and less surprising) for users to experiment with the
custom Scheme test driver directly.  The behavior is unchanged from Automake's
point of view.

* build-aux/test-driver.scm (main): Make the --log-file and --trs-file
arguments optional and update doc.  Only open, redirect and close a port to a log file when
the --log-file option is provided.  Only open and close a port to a trs file
when the --trs-file option is provided.
(test-runner-gnu): Set OUT-PORT parameter default value to the current output
port.  Set the TRS-PORT parameter default value to a void port.  Update doc.
build-aux/test-driver.scm