[cfe-commits] r73298 - /cfe/trunk/test/Makefile
Daniel Dunbar
daniel at zuster.org
Sat Jun 13 11:28:49 PDT 2009
Author: ddunbar
Date: Sat Jun 13 13:28:48 2009
New Revision: 73298
URL: http://llvm.org/viewvc/llvm-project?rev=73298&view=rev
Log:
Switch to the new test runner.
- TestRunner.sh still needs to be moved over.
- Please let me know if you find problems / missing features.
Modified:
cfe/trunk/test/Makefile
Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=73298&r1=73297&r2=73298&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Sat Jun 13 13:28:48 2009
@@ -4,42 +4,17 @@
# Test in all immediate subdirectories if unset.
TESTDIRS ?= $(shell echo $(PROJ_SRC_DIR)/*/)
-# Only run rewriter tests on darwin.
-ifeq ($(OS),Darwin)
-TESTDIRS +=
-endif
-
+ifndef TESTARGS
ifdef VERBOSE
-ifeq ($(VERBOSE),0)
-PROGRESS = :
-REPORTFAIL = echo 'FAIL: clang' $(TARGET_TRIPLE) $(subst $(LLVM_SRC_ROOT)/tools/clang/,,$<)
-DONE = $(LLVMToolDir)/clang -v
+TESTARGS = -v
else
-PROGRESS = echo $<
-REPORTFAIL = cat $@
-DONE = true
+TESTARGS = -s
endif
-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' -or -name '*.mm' -or -name '*.S' \) | grep -v "Output/")))
-Output/%.testresults: %
- @ $(PROGRESS)
- @ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH VG=$(VG) $(PROJ_SRC_DIR)/TestRunner.sh $< > $@ || $(REPORTFAIL)
-
all::
- @ mkdir -p $(addprefix Output/, $(TESTDIRS))
- @ rm -f $(TESTS)
@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
- @ $(MAKE) $(TESTS)
- @ $(DONE)
- @ !(cat $(TESTS) | grep -q " FAILED! ")
-
-report: $(TESTS)
- @ cat $^
+ @ PATH=$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$$PATH VG=$(VG) ../utils/test/MultiTestRunner.py $(TESTARGS) $(TESTDIRS)
clean::
@ rm -rf Output/
More information about the cfe-commits
mailing list