diff options
author | Bryan Drewery <bryan@shatow.net> | 2017-02-19 03:43:53 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2017-02-19 03:43:53 +0300 |
commit | 761f31c7683698b361da40c67dff13066bbd6ff6 (patch) | |
tree | 013ca0be38d7618b43b333bc5b54165b40efd1b5 /test/runtests.sh | |
parent | f7b3c349b1338b2c400ae2ac6338b2be07cb53e4 (diff) |
Run tests against stock and modified sh
Diffstat (limited to 'test/runtests.sh')
-rwxr-xr-x | test/runtests.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/runtests.sh b/test/runtests.sh index 2de26363..3873bdb8 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -2,13 +2,15 @@ export PATH=..:${PATH} +SH="$1" +shift TESTS="$@" FAILED_TESTS= for test in ${TESTS}; do status=0 echo -n "Running ${test} ... " - timeout 20 sh ${test} > ${test}.stdout.log 2> ${test}.stderr.log || status=$? + timeout 20 ${SH} ${test} > ${test}.stdout.log 2> ${test}.stderr.log || status=$? if [ ${status} -ne 0 ]; then if [ ${status} -eq 124 ]; then status="124 (timeout)" |