]> granicus.if.org Git - clang/commitdiff
Simplify further by creating *.testresults files
authorGabor Greif <ggreif@gmail.com>
Mon, 17 Mar 2008 15:58:58 +0000 (15:58 +0000)
committerGabor Greif <ggreif@gmail.com>
Mon, 17 Mar 2008 15:58:58 +0000 (15:58 +0000)
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

index c110edb6088a0123104420b5cf9e41a04a0d9287..bc4209c5dc212f167a685635c77a48ed57a33ce8 100644 (file)
@@ -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