]> git.ipfire.org Git - thirdparty/git.git/blame - t/run-test.sh
t/Makefile: run unit tests alongside shell tests
[thirdparty/git.git] / t / run-test.sh
CommitLineData
cc75e4a0
JK
1#!/bin/sh
2
3# A simple wrapper to run shell tests via TEST_SHELL_PATH,
4# or exec unit tests directly.
5
6case "$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}" "$@"
14 ;;
15*)
16 exec "$@"
17 ;;
18esac