diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-14 19:54:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-14 19:54:07 +0000 |
commit | 1b2bde96510c7e557405a488db437797908b0b47 (patch) | |
tree | 2ae2361387b76c4a903e62c7d339ed33b75c9e5f | |
parent | 995d7aeefafbe4a365ea91e087d48c221d137c01 (diff) |
Ulimit the test, and print out a more interesting output if failure occurs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6216 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | test/TestRunner.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh index fbf174c2ee..5e898c6d15 100755 --- a/test/TestRunner.sh +++ b/test/TestRunner.sh @@ -11,6 +11,7 @@ # FILENAME=$1 +TESTNAME=$1 SUBST=$1 OUTPUT=Output/$FILENAME.out @@ -20,19 +21,22 @@ if test $# != 1; then # and the file to output to. SUBST=$2 OUTPUT=$3 + TESTNAME=$3 fi +ulimit -t 40 + SCRIPT=$OUTPUT.script grep 'RUN:' $FILENAME | sed "s|^.*RUN:\(.*\)$|\1|g;s|%s|$SUBST|g" > $SCRIPT /bin/sh $SCRIPT > $OUTPUT 2>&1 || ( - echo "******************** TEST '$FILENAME' FAILED! ********************" + echo "******************** TEST '$TESTNAME' FAILED! ********************" echo "Command: " cat $SCRIPT echo "Output:" cat $OUTPUT rm $OUTPUT - echo "******************** TEST '$FILENAME' FAILED! ********************" + echo "******************** TEST '$TESTNAME' FAILED! ********************" ) |