From 4e6153b49ba773e78e1395137fb067e1ba4e25e4 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 17 Sep 2008 18:08:07 +0000 Subject: [PATCH] Another attempt to make test/Makefile return correct error code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56285 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index d8e34b1096..0963fee542 100644 --- a/test/Makefile +++ b/test/Makefile @@ -20,7 +20,6 @@ DONE = echo endif TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' -or -name '*.mm' \)))) - Output/%.testresults: % @ $(PROGRESS) @ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH VG=$(VG) $(PROJ_SRC_DIR)/TestRunner.sh $< > $@ || $(REPORTFAIL) @@ -31,7 +30,7 @@ all:: @ echo '--- Running clang tests ---' @ $(MAKE) $(TESTS) @ $(DONE) - @ cat $(TESTS) | grep -v 'XFAILED' | grep -v ' HAS NO RUN LINE! ****' | $(LLVM_SRC_ROOT)/test/Scripts/count 0 > /dev/null + @ !(cat $(TESTS) | grep -q " FAILED! ") report: $(TESTS) @ cat $^ -- 2.40.0