[libcxx] r199318 - Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'.

Marshall Clow mclow.lists at gmail.com
Wed Jan 15 08:28:43 PST 2014


Author: marshall
Date: Wed Jan 15 10:28:42 2014
New Revision: 199318

URL: http://llvm.org/viewvc/llvm-project?rev=199318&view=rev
Log:
Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'.

Modified:
    libcxx/trunk/test/testit

Modified: libcxx/trunk/test/testit
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/testit?rev=199318&r1=199317&r2=199318&view=diff
==============================================================================
--- libcxx/trunk/test/testit (original)
+++ libcxx/trunk/test/testit Wed Jan 15 10:28:42 2014
@@ -80,9 +80,9 @@ IMPLEMENTED_PASS=0
 afunc() {
 	fail=0
 	pass=0
-	if (ls *.fail.cpp > /dev/null 2>&1)
+	if (ls ${TEST_PREFIX}*fail.cpp > /dev/null 2>&1)
 	then
-		for FILE in $(ls *.fail.cpp); do
+		for FILE in $(ls ${TEST_PREFIX}*fail.cpp); do
 			if $CC $OPTIONS $HEADER_INCLUDE $SOURCE_LIB $FILE $LIBS -o ./$TEST_EXE > /dev/null 2>&1
 			then
 				rm ./$TEST_EXE
@@ -94,9 +94,9 @@ afunc() {
 		done
 	fi
 
-	if (ls *.pass.cpp > /dev/null 2>&1)
+	if (ls ${TEST_PREFIX}*pass.cpp > /dev/null 2>&1)
 	then
-		for FILE in $(ls *.pass.cpp); do
+		for FILE in $(ls ${TEST_PREFIX}*pass.cpp); do
             if [ "$VERBOSE" ]
             then
              	echo "Running test: " $FILE





More information about the cfe-commits mailing list