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
diff --git a/test/Makefile b/test/Makefile
index 3fb103e..12d713b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -22,6 +22,14 @@
   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 @@
 	  --path $(ToolDir) \
 	  --path $(LLVM_SRC_ROOT)/test/Scripts \
 	  $(TESTARGS) $(TESTDIRS) $(VGARG)
+endif
 
 clean::
 	@ rm -rf Output/