3 # TestRunner.sh - This script is used to run the deja-gnu tests exactly like
4 # deja-gnu does, by executing the Tcl script specified in the test case's
5 # RUN: lines. This is made possible by a simple make target supported by the
6 # test/Makefile. All this script does is invoke that make target.
9 # TestRunner.sh {script_names}
11 # This script is typically used by cd'ing to a test directory and then
12 # running TestRunner.sh with a list of test file names you want to run.
14 for TESTFILE in "$@" ; do
15 if test `dirname $TESTFILE` == . ; then
18 while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
19 tmp=`basename $TESTPATH`
21 TESTPATH=`dirname $TESTPATH`
23 if test -d "$TESTPATH" ; then
25 make check-one TESTONE="$SUBDIR$TESTFILE"
27 echo "Can't find llvm/test directory in " `pwd`
30 make check-one TESTONE=$TESTFILE