aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-28 19:16:54 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-28 19:16:54 +0000
commit6a18c7689bf05279feb42adca9f943d78e15a25b (patch)
tree6436967a82667b8c5673dbe1ddda6bafc3b6beb6
parent83c903f1abb41b661c9d04287613b663dad4fcfd (diff)
Changed TestRunner.sh to dump the output and generated script files in
subdirectories mirroring where the test case file is located For example, for the test case "Sema/stmt_exprs.c", instead of the files "Output/stmt_exprs.c.out" and "Output/stmt_exprs.c.out.script" being created, the files "Output/Sema/stmt_exprs.c.out" and "Output/Sema/stmt_exprs.c.out.script" are created. This prevents any collisions from different test directories that have the same file name for a test case, and also makes it clear where the test case was drawn from. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44410 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtest/TestRunner.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/TestRunner.sh b/test/TestRunner.sh
index 2c96fd5b48..07a49890aa 100755
--- a/test/TestRunner.sh
+++ b/test/TestRunner.sh
@@ -16,11 +16,11 @@
FILENAME=$1
TESTNAME=$1
SUBST=$1
-FILENAME_ONLY=`basename $1`
-OUTPUT=Output/$FILENAME_ONLY.out
+
+OUTPUT=Output/$1.out
# create the output directory if it does not already exist
-mkdir Output > /dev/null 2>&1
+mkdir -p `dirname $OUTPUT` > /dev/null 2>&1
if test $# != 1; then
# If more than one parameter is passed in, there must be three parameters: