summaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-08 16:39:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-08 16:39:23 +0000
commit724827ff93b2c563c4a90ea43aed959f4af35e54 (patch)
tree6654ef4be4fb6934653057f2449db8781df392e0 /test/Makefile
parente0be8b1729d8978de433d229c065830b95d0ae68 (diff)
Support running tests using the new 'lit', via 'make test LIT2=1'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 3fb103effc..12d713b516 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -22,6 +22,14 @@ else
VGARG=
endif
+ifdef LIT2
+all::
+ @ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
+ @ $(LLVM_SRC_ROOT)/utils/lit/lit.py \
+ --path $(ToolDir) \
+ --path $(LLVM_SRC_ROOT)/test/Scripts \
+ $(TESTARGS) $(TESTDIRS) $(VGARG)
+else
all::
@ echo '--- Running clang tests for $(TARGET_TRIPLE) ---'
@ $(PROJ_SRC_DIR)/../utils/test/MultiTestRunner.py \
@@ -29,6 +37,7 @@ all::
--path $(ToolDir) \
--path $(LLVM_SRC_ROOT)/test/Scripts \
$(TESTARGS) $(TESTDIRS) $(VGARG)
+endif
clean::
@ rm -rf Output/