urchin/tests/Cross-shell testing/.test-run-by-specified-shell/With -s, the TEST_SHELL environment variable should be set to the specified shell too.
Thomas Levine 7267239313 start moving cross-shell testing tests
and also make them more cross-shell test style
2016-02-28 22:23:47 +00:00

10 lines
232 B
Bash
Executable File

#!/bin/sh
# Assuming that urchin was invoked with `-s bash`, $TEST_SHELL should contain 'bash'.
echo "Running shell: $(ps -o comm= -p $$ && :)"
echo "\$TEST_SHELL: $TEST_SHELL"
[ "$(basename "$this_shell")" = '.special-shell' ]