From e1d2647da73637af85a4ba638bd371ccb5fdd4e7 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Mon, 17 Mar 2008 15:58:58 +0000 Subject: [PATCH] Simplify further by creating *.testresults files inside of the Output/ directory. The testclean target could be removed now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48457 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Makefile.parallel | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/Makefile.parallel b/test/Makefile.parallel index c110edb608..bc4209c5dc 100644 --- a/test/Makefile.parallel +++ b/test/Makefile.parallel @@ -8,24 +8,20 @@ ifeq ($(OS),Darwin) TESTDIRS += Rewriter endif -TESTS = $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \))) +TESTS = $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \)))) -%.testresults: % +Output/%.testresults: % @ printf '.' @ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh $< > $@ || (echo; echo '----' $< 'failed ----') all:: + @ rm -f $(TESTS) @ echo '--- Running clang tests ---' - @ $(MAKE) -f Makefile.parallel testclean @ $(MAKE) -f Makefile.parallel $(TESTS) @ echo @ $(MAKE) -f Makefile.parallel report - @ $(MAKE) -f Makefile.parallel testclean report: $(TESTS) @ cat $^ -testclean: - @ rm -f $(TESTS) - -.PHONY: all report testclean +.PHONY: all report -- 2.40.0