| 1 | #!/bin/sh |
| 2 | |
| 3 | # A simple wrapper to run shell tests via TEST_SHELL_PATH, |
| 4 | # or exec unit tests directly. |
| 5 | |
| 6 | case "$1" in |
| 7 | *.sh) |
| 8 | if test -z "${TEST_SHELL_PATH}" |
| 9 | then |
| 10 | echo >&2 "ERROR: TEST_SHELL_PATH is empty or not set" |
| 11 | exit 1 |
| 12 | fi |
| 13 | exec "${TEST_SHELL_PATH}" "$@" ${TEST_OPTIONS} |
| 14 | ;; |
| 15 | *) |
| 16 | exec "$@" |
| 17 | ;; |
| 18 | esac |