summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-01-15 16:28:42 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-01-15 16:28:42 +0000
commit9f4be3fa4f7dae5942f206c2ce8ee661296eb279 (patch)
tree8225b6556939687cd2f430ff8e1bccd3a2461dc4
parentb2e10a545902dca0b565379889a0e1e8b34d0e9e (diff)
downloadbcm5719-llvm-9f4be3fa4f7dae5942f206c2ce8ee661296eb279.tar.gz
bcm5719-llvm-9f4be3fa4f7dae5942f206c2ce8ee661296eb279.zip
Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'.
llvm-svn: 199318
-rwxr-xr-xlibcxx/test/testit8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/testit b/libcxx/test/testit
index 096627f69fc..821292efb5a 100755
--- a/libcxx/test/testit
+++ b/libcxx/test/testit
@@ -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
OpenPOWER on IntegriCloud