1e9611e732
* For **tests that _source_ shell scripts**: **option `-s <shell>`** now tells urchin to invoke test scripts with the specified shell (only shebang-less and `#!/bin/sh` tests scripts). * For **tests that _invoke_ schell scripts**: instruct users to write their tests to always **invoke via environment variable `TEST_SHELL` (e.g., `$TEST_SHELL ../foo`)**, and invoke urchin with that variable defined as needed, e.g., `TEST_SHELL=ksh urchin ./tests`; urchin defaults `TEST_SHELL` to `/bin/sh`. See updated `readme.md` for details.
10 lines
401 B
Bash
Executable File
10 lines
401 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Tests support for either passing through or defining a default value for environment variable TEST_SHELL.
|
|
# (for test scripts that want to invoke shell scripts with a specified shell).
|
|
|
|
# Test if $TEST_SHELL - if *undefined* - is exported with value '/bin/sh' by urchin
|
|
# and thus has that value inside test scripts.
|
|
unset -v TEST_SHELL
|
|
../../urchin ./.test-TEST_SHELL-undefined_or_empty
|