summaryrefslogtreecommitdiff
path: root/test/TestRunner.sh
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-17 08:06:33 +0000
committerChris Lattner <sabre@nondot.org>2006-06-17 08:06:33 +0000
commitdfc0375ec35ffa966abca572ed994fa581efed95 (patch)
treed81b531c29957a45bf4742451056494f06a2eddb /test/TestRunner.sh
parent61496683b3c688032328119c83ea87df3093bc08 (diff)
downloadllvm-dfc0375ec35ffa966abca572ed994fa581efed95.tar.gz
llvm-dfc0375ec35ffa966abca572ed994fa581efed95.tar.bz2
llvm-dfc0375ec35ffa966abca572ed994fa581efed95.tar.xz
Just a minor tweak so you can run things like:
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
Diffstat (limited to 'test/TestRunner.sh')
-rwxr-xr-xtest/TestRunner.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index e595527b8b..68091c2188 100755
--- a/test/TestRunner.sh
+++ b/test/TestRunner.sh
@@ -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