[cfe-commits] r48457 - /cfe/trunk/test/Makefile.parallel

Gabor Greif ggreif at gmail.com
Mon Mar 17 08:58:58 PDT 2008


Author: ggreif
Date: Mon Mar 17 10:58:58 2008
New Revision: 48457

URL: http://llvm.org/viewvc/llvm-project?rev=48457&view=rev
Log:
Simplify further by creating *.testresults files
inside of the Output/ directory.
The testclean target could be removed now.

Modified:
    cfe/trunk/test/Makefile.parallel

Modified: cfe/trunk/test/Makefile.parallel
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile.parallel?rev=48457&r1=48456&r2=48457&view=diff

==============================================================================
--- cfe/trunk/test/Makefile.parallel (original)
+++ cfe/trunk/test/Makefile.parallel Mon Mar 17 10:58:58 2008
@@ -8,24 +8,20 @@
 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





More information about the cfe-commits mailing list