diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-03-17 15:07:59 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-03-17 15:07:59 +0000 |
commit | 947a8b59b771130741ad65522da1841cd4752b32 (patch) | |
tree | 46625983e62d5feb1f56f02e24744019f2aeb800 | |
parent | 0f23303f48af540777a3324fd04d63d13a9d3d2a (diff) |
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>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48455 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Makefile.parallel | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/Makefile.parallel b/test/Makefile.parallel index 5ab240ba8b..28daebf0b3 100644 --- a/test/Makefile.parallel +++ b/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 $< |