setup: merge configuration of repository formats
[git/gitster.git] / t / run-test.sh
blob13c353b91b460761524f03b7b6d7efb7a37c4afe
1 #!/bin/sh
3 # A simple wrapper to run shell tests via TEST_SHELL_PATH,
4 # or exec unit tests directly.
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
13 exec "${TEST_SHELL_PATH}" "$@"
16 exec "$@"
18 esac