/tests/runtests.sh
Shell | 29 lines | 26 code | 2 blank | 1 comment | 1 complexity | 0947413819fe19274ae04dc840e74925 MD5 | raw file
1#!/bin/sh 2rm -rf test-results trash-directory* 3 4SHELL_PATH="/bin/sh" 5 6uname_s=$(uname -s) 7case "${uname_s}" in 8 AIX) # AIX /bin/sh is not functional with the testsuite 9 SHELL_PATH=$(which bash) 10 if [ -z "$SHELL_PATH" ]; then 11 echo "This is AIX and I can't find bash. HELP!" 12 fi 13 GIT_TEST_CMP="cmp" 14 export GIT_TEST_CMP SHELL_PATH 15 ;; 16esac 17 18code=0 19for test in t[0-9]*.sh; do 20 echo "*** $test ***" 21 $SHELL_PATH ./$test 22 if [ $? -ne 0 ]; then 23 code=1 24 fi 25done 26 27$SHELL_PATH aggregate-results.sh test-results/* 28 29exit $code