[cfe-commits] r44410 - /cfe/trunk/test/TestRunner.sh
Ted Kremenek
kremenek at apple.com
Wed Nov 28 11:16:54 PST 2007
Author: kremenek
Date: Wed Nov 28 13:16:54 2007
New Revision: 44410
URL: http://llvm.org/viewvc/llvm-project?rev=44410&view=rev
Log:
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.
Modified:
cfe/trunk/test/TestRunner.sh
Modified: cfe/trunk/test/TestRunner.sh
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/TestRunner.sh?rev=44410&r1=44409&r2=44410&view=diff
==============================================================================
--- cfe/trunk/test/TestRunner.sh (original)
+++ cfe/trunk/test/TestRunner.sh Wed Nov 28 13:16:54 2007
@@ -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:
More information about the cfe-commits
mailing list