about summary refs log tree commit diff homepage
path: root/test/TestRunner.sh
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2014-01-21 05:41:25 -0800
committerCristian Cadar <c.cadar@imperial.ac.uk>2014-01-21 05:41:25 -0800
commite49c1e1958e863195b01d99c92194289b4034bbb (patch)
treeee305c933ea7b653f769fe209601ca963938e16d /test/TestRunner.sh
parentf626bdb1905c4d56fdcca04cd6ee84acb7597431 (diff)
parentebc387f1181ca39cd72fe8ef27a535cd0c674bcf (diff)
downloadklee-e49c1e1958e863195b01d99c92194289b4034bbb.tar.gz
Merge pull request #92 from delcypher/fix_llvm-lit
Move testing infrastructure to llvm-lit and completly remove all DejaGNU support
Diffstat (limited to 'test/TestRunner.sh')
-rwxr-xr-xtest/TestRunner.sh38
1 files changed, 4 insertions, 34 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index 3e2cace4..3a69604b 100755
--- a/test/TestRunner.sh
+++ b/test/TestRunner.sh
@@ -1,36 +1,6 @@
 #!/bin/sh
-#
-#  TestRunner.sh - This script is used to run the deja-gnu tests exactly like
-#  deja-gnu does, by executing the Tcl script specified in the test case's 
-#  RUN: lines. This is made possible by a simple make target supported by the
-#  test/Makefile. All this script does is invoke that make target. 
-#
-#  Usage:
-#     TestRunner.sh {script_names}
-#
-#     This script is typically used by cd'ing to a test directory and then
-#     running TestRunner.sh with a list of test file names you want to run.
-#
-TESTPATH=`pwd`
-SUBDIR=""
-if test `dirname $1` = "." ; then
-  while test `basename $TESTPATH` != "test" -a ! -z "$TESTPATH" ; do
-    tmp=`basename $TESTPATH`
-    SUBDIR="$tmp/$SUBDIR"
-    TESTPATH=`dirname $TESTPATH`
-  done
-fi
+# Deprecated, use 'llvm-lit'.
 
-for TESTFILE in "$@" ; do 
-  if test `dirname $TESTFILE` = . ; then
-    if test -d "$TESTPATH" ; then
-      cd $TESTPATH
-      make check-one TESTONE="$SUBDIR$TESTFILE"
-      cd $PWD
-    else
-      echo "Can't find klee/test directory in " `pwd`
-    fi
-  else
-    make check-one TESTONE=$TESTFILE
-  fi
-done
+echo "warning: '$0' is deprecated, use 'llvm-lit' instead."
+# FIXME: Make test suite work in parallel.
+exec llvm-lit --threads=1 "$@"