summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-03-17 15:07:59 +0000
committerGabor Greif <ggreif@gmail.com>2008-03-17 15:07:59 +0000
commit2fc473069d7e145455df3a752d8ead64b0a7e253 (patch)
treeece5ee0793bab4156a03e69b08787fa6dbc21cee /clang/test
parentd8d1b60237d003cbc62a34d0c28ff849c4b9ea69 (diff)
downloadbcm5719-llvm-2fc473069d7e145455df3a752d8ead64b0a7e253.tar.gz
bcm5719-llvm-2fc473069d7e145455df3a752d8ead64b0a7e253.zip
More review feedback implemented:
Get rid of "awk" dependence by using same "make" functionality: <http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080310/004727.html> llvm-svn: 48455
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Makefile.parallel12
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/test/Makefile.parallel b/clang/test/Makefile.parallel
index 5ab240ba8bc..28daebf0b37 100644
--- a/clang/test/Makefile.parallel
+++ b/clang/test/Makefile.parallel
@@ -1,8 +1,6 @@
LEVEL = ../../..
include $(LEVEL)/Makefile.common
-AWK = awk
-
TESTDIRS = CodeGen Lexer Preprocessor Parser Sema Analysis Serialization
# Only run rewriter tests on darwin.
@@ -10,16 +8,14 @@ ifeq ($(OS),Darwin)
TESTDIRS += Rewriter
endif
+TESTS = $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \)))
Makefile.tests:
@ echo '%.testresults: %' > $@
@ echo "^@ printf '.'" | tr "^" "\t" >> $@
@ echo "^@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh &< > &@ || (echo; echo '----' &! 'failed ----')" | tr '^!&' '\t^$$' >> $@
@ echo >> $@
- @ echo "TESTS =" \\ >> $@
- @ find $(TESTDIRS) \
- \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) \
- | $(AWK) '{print " " $$0 ".testresults \\"}' >> $@
+ @ echo "TESTS = $(TESTS)" >> $@
@ echo ' ' >> $@
@ echo >> $@
@ echo "all:: &(TESTS)" | tr "&" '$$' >> $@
@@ -35,7 +31,9 @@ Makefile.tests:
all:: Makefile.tests
@ echo '--- Running clang tests ---'
@ $(MAKE) -f $< clean
- @ $(MAKE) -f $< all report
+ @ $(MAKE) -f $< all
+ @ echo "^@ echo" | tr "^" "\t" >> $@
+ @ $(MAKE) -f $< report
@ $(MAKE) -f $< clean
@ rm $<
OpenPOWER on IntegriCloud