forked from OSchip/llvm-project
Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'.
llvm-svn: 199318
This commit is contained in:
parent
b2e10a5459
commit
9f4be3fa4f
|
@ -80,9 +80,9 @@ IMPLEMENTED_PASS=0
|
||||||
afunc() {
|
afunc() {
|
||||||
fail=0
|
fail=0
|
||||||
pass=0
|
pass=0
|
||||||
if (ls *.fail.cpp > /dev/null 2>&1)
|
if (ls ${TEST_PREFIX}*fail.cpp > /dev/null 2>&1)
|
||||||
then
|
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
|
if $CC $OPTIONS $HEADER_INCLUDE $SOURCE_LIB $FILE $LIBS -o ./$TEST_EXE > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
rm ./$TEST_EXE
|
rm ./$TEST_EXE
|
||||||
|
@ -94,9 +94,9 @@ afunc() {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (ls *.pass.cpp > /dev/null 2>&1)
|
if (ls ${TEST_PREFIX}*pass.cpp > /dev/null 2>&1)
|
||||||
then
|
then
|
||||||
for FILE in $(ls *.pass.cpp); do
|
for FILE in $(ls ${TEST_PREFIX}*pass.cpp); do
|
||||||
if [ "$VERBOSE" ]
|
if [ "$VERBOSE" ]
|
||||||
then
|
then
|
||||||
echo "Running test: " $FILE
|
echo "Running test: " $FILE
|
||||||
|
|
Loading…
Reference in New Issue