Skip to content
Snippets Groups Projects
Commit 9d294b99 authored by Chris Lattner's avatar Chris Lattner
Browse files

remove the old non-parallel test system. 'make' in clang/test now runs

the tests in parallel.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49290 91177308-0d34-0410-b5e6-96231b3b80d8
parent 37c1b78a
No related branches found
No related tags found
No related merge requests found
...@@ -4,12 +4,12 @@ DIRS := lib Driver ...@@ -4,12 +4,12 @@ DIRS := lib Driver
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common
test:: test::
@ $(MAKE) -C test -f Makefile.parallel @ $(MAKE) -C test
report:: report::
@ $(MAKE) -C test -f Makefile.parallel report @ $(MAKE) -C test report
clean:: clean::
@ $(MAKE) -C test -f Makefile.parallel clean @ $(MAKE) -C test clean
.PHONY: test report clean .PHONY: test report clean
LEVEL = ../../.. LEVEL = ../../..
include $(LEVEL)/Makefile.common include $(LEVEL)/Makefile.common
TESTDIRS := CodeGen Lexer Preprocessor Parser Sema Analysis Serialization TESTDIRS = CodeGen Lexer Preprocessor Parser Sema Analysis Serialization
# Only run rewriter tests on darwin. # Only run rewriter tests on darwin.
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
TESTDIRS += Rewriter Analysis-Apple TESTDIRS += Rewriter Analysis-Apple
endif endif
ifdef VERBOSE
PROGRESS = echo $<
REPORTFAIL = cat $@
DONE = true
else
PROGRESS = printf '.'
REPORTFAIL = (echo; echo '----' $< 'failed ----')
DONE = echo
endif
TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \))))
Output/%.testresults: %
@ $(PROGRESS)
@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=$(VG) ./TestRunner.sh $< > $@ || $(REPORTFAIL)
all:: all::
PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=$(VG) \ @ mkdir -p $(addprefix Output/, $(TESTDIRS))
find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) \ @ rm -f $(TESTS)
-print -exec ./TestRunner.sh {} \; @ echo '--- Running clang tests ---'
@ $(MAKE) $(TESTS)
@ $(DONE)
report: $(TESTS)
@ cat $^
clean:: clean::
@ rm -rf Output/ @ rm -rf Output/
.PHONY: all clean .PHONY: all report clean
LEVEL = ../../..
include $(LEVEL)/Makefile.common
TESTDIRS = CodeGen Lexer Preprocessor Parser Sema Analysis Serialization
# Only run rewriter tests on darwin.
ifeq ($(OS),Darwin)
TESTDIRS += Rewriter Analysis-Apple
endif
ifdef VERBOSE
PROGRESS = echo $<
REPORTFAIL = cat $@
DONE = true
else
PROGRESS = printf '.'
REPORTFAIL = (echo; echo '----' $< 'failed ----')
DONE = echo
endif
TESTS := $(addprefix Output/, $(addsuffix .testresults, $(shell find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \))))
Output/%.testresults: %
@ $(PROGRESS)
@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts VG=$(VG) ./TestRunner.sh $< > $@ || $(REPORTFAIL)
all::
@ mkdir -p $(addprefix Output/, $(TESTDIRS))
@ rm -f $(TESTS)
@ echo '--- Running clang tests ---'
@ $(MAKE) -f Makefile.parallel $(TESTS)
@ $(DONE)
report: $(TESTS)
@ cat $^
clean::
@ rm -rf Output/
.PHONY: all report clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment