diff options
-rw-r--r-- | test/Makefile.parallel | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/Makefile.parallel b/test/Makefile.parallel index bc4209c5dc..710fb4cce2 100644 --- a/test/Makefile.parallel +++ b/test/Makefile.parallel @@ -8,18 +8,24 @@ ifeq ($(OS),Darwin) TESTDIRS += Rewriter endif +ifdef VERBOSE +PROGRESS = echo $< +REPORTFAIL = cat $@ +else +PROGRESS = printf '.' +REPORTFAIL = (echo; echo '----' $< 'failed ----') +endif + TESTS = $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \)))) Output/%.testresults: % - @ printf '.' - @ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh $< > $@ || (echo; echo '----' $< 'failed ----') + @ $(PROGRESS) + @ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh $< > $@ || $(REPORTFAIL) all:: @ rm -f $(TESTS) @ echo '--- Running clang tests ---' @ $(MAKE) -f Makefile.parallel $(TESTS) - @ echo - @ $(MAKE) -f Makefile.parallel report report: $(TESTS) @ cat $^ |