summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-21 02:48:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-21 02:48:23 +0000
commit10a230ded99927cdef9f4996a2505c004713eca2 (patch)
tree75809b23465734175f5fc4305385be726d278d5e
parent744299382f65fde6adc2316a33945098d4e84f7e (diff)
downloadbcm5719-llvm-10a230ded99927cdef9f4996a2505c004713eca2.tar.gz
bcm5719-llvm-10a230ded99927cdef9f4996a2505c004713eca2.zip
Update test/Makefile to allow testing when using a separate obj
directory. - Also, return proper error code if testing fails. llvm-svn: 55103
-rw-r--r--clang/test/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Makefile b/clang/test/Makefile
index 5971b61de05..fb1ccfc4b6b 100644
--- a/clang/test/Makefile
+++ b/clang/test/Makefile
@@ -1,8 +1,8 @@
LEVEL = ../../..
include $(LEVEL)/Makefile.common
-# Test in all non .svn or Output directories below this one.
-TESTDIRS = $(shell find . -name . -o -name .svn -prune -o -name Output -prune -o -type d -print)
+# Test in all immediate subdirectories.
+TESTDIRS = $(shell echo $(PROJ_SRC_DIR)/*/)
# Only run rewriter tests on darwin.
ifeq ($(OS),Darwin)
@@ -23,7 +23,7 @@ TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS)
Output/%.testresults: %
@ $(PROGRESS)
- @ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=$(VG) ./TestRunner.sh $< > $@ || $(REPORTFAIL)
+ @ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=$(VG) $(PROJ_SRC_DIR)/TestRunner.sh $< > $@ || $(REPORTFAIL)
all::
@ mkdir -p $(addprefix Output/, $(TESTDIRS))
@@ -31,6 +31,7 @@ all::
@ echo '--- Running clang tests ---'
@ $(MAKE) $(TESTS)
@ $(DONE)
+ @ cat $(TESTS) | count 0
report: $(TESTS)
@ cat $^
OpenPOWER on IntegriCloud