When specifying another ksh to test using e.g. KSH=/bin/ksh to test
the system's stock ksh, the pty command was not found because it
resides in the arch/*/bin directory. The main shtests script bases
its $PATH on $INSTALLROOT, but does not set INSTALLROOT itself if
the shell to test is outside the installation hierarchy. Setting it
would allow the pty.sh regresssion tests to run on a shell
specified on the command line.
bin/shtests:
- Set and export INSTALLROOT to our default installation hierarchy
if it wasn't already set on entry.
Passing a SHELL=/path/to/ksh assignment-argument after the
bin/shtest command (as documented in 'shtest --man') made the
wrapper script produce inconsistent results: it would launch and
claim to test the default shell, but src/cmd/ksh93/tests/shtests
would actually test the shell indicated in the argument.
bin/shtests:
- Scan arguments for a SHELL= (or KSH=) assignment-argument,
setting $KSH (and then exporting $SHELL) based on that if found.
(cherry picked from commit 1e78fbbd094dfc84989ecadf06231c6515fb7412)
This new wrapper script sets up the correct environment for running
the ksh93 regression test suite. It allows running the tests
without AST nmake, which is not maintained in this repository.
An alternative ksh to test may be passed in the $KSH env var.
bin/shtests:
- Added. Sets up environment before passing control to
'src/cmd/ksh93/tests/shtest'. Passes on any options given.
NEWS:
- Updated.
(cherry picked from commit 14ced94ed83991687c645a09bd2e45a5c2ffe8dc)