OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-378-g9dd6fa9
Gerrit Code Review
gerrit@openafs.org
Thu, 27 Jun 2024 09:10:45 -0400
The following commit has been merged in the master branch:
commit 9dd6fa97b6c21543ac95cd268f2c5a17a9e3571e
Author: Michael Meffie <mmeffie@sinenomine.net>
Date: Thu Apr 4 15:51:07 2024 -0400
tests: Add make shell target
Add a makefile target to start an interactive subshell with the
environment required to run tests directly from the command line. Tests
can also be run from a debugger or from the "runtests" front-end test
runner.
Example usage:
$ make shell
...
Starting a shell to run tests. Run 'exit' when done.
# Set the subshell prompt (optional).
$ PS1="(tests) $PS1"
# Run tests directly or with a debugger.
(tests) $ rx/perf-t
...
(tests) $ file rx/perf-t
rx/perf-t: Perl script text executable
(tests) $ perl -d rx/perf-t
...
# End the subshell.
(tests) $ exit
$
The shell started will be the one discovered by configure, which may not
be the preferred shell for interactive use. To specify a different
shell, define SHELL when running make:
$ make shell SHELL=/path/to/my/shell
If you use this feature often, you may want to update your shell profile
to automatically set the PS1 when running the test subshell. For
example, you can append this to your bashrc file:
# OpenAFS unit test subshell.
if [[ $MAKECHECK -eq 1 ]]; then
PS1="(tests) $PS1"
fi
Thanks to Ben Kaduk for the suggestion.
Change-Id: I8d949d21153396c0da8db186fd35477ad0383f12
Reviewed-on: https://gerrit.openafs.org/15730
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
tests/Makefile.in | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
--
OpenAFS Master Repository