Just a minor tweak so you can run things like:
authorChris Lattner <sabre@nondot.org>
Sat, 17 Jun 2006 08:06:33 +0000 (08:06 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Jun 2006 08:06:33 +0000 (08:06 +0000)
TestRunner.sh Foo/Bar/test.ll

instead of just

TestRunner.sh test.ll

which is convenient in conjunction with find.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28852 91177308-0d34-0410-b5e6-96231b3b80d8

test/TestRunner.sh

index e595527b8b3ac0141db80d03b55ab87662372a42..68091c2188b85bba3177393b8cbaf1de1d7acb15 100755 (executable)
@@ -13,7 +13,8 @@
 FILENAME=$1
 TESTNAME=$1
 SUBST=$1
-OUTPUT=Output/$FILENAME.out
+FILENAME_ONLY=`basename $1`
+OUTPUT=Output/$FILENAME_ONLY.out
 
 # create the output directory if it does not already exist
 mkdir Output > /dev/null 2>&1