Teach the LLVM test makefile to run the extra Clang tools' test suites
authorChandler Carruth <chandlerc@gmail.com>
Thu, 9 Aug 2012 20:26:41 +0000 (20:26 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 9 Aug 2012 20:26:41 +0000 (20:26 +0000)
as part of check-all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161610 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile

index f5e9ff52bfcce50ef922131f7297320d31fa4383..9ddfabfb9a8e79540ed0babe9b028f959c615fa9 100644 (file)
@@ -62,6 +62,15 @@ clang-site-cfg: FORCE
        $(MAKE) -C $(PROJ_OBJ_DIR)/../tools/clang/test lit.site.cfg Unit/lit.site.cfg
 extra-site-cfgs:: clang-site-cfg
 endif
+
+ifeq ($(shell test -f $(PROJ_OBJ_DIR)/../tools/clang/tools/extra/Makefile && echo OK), OK)
+LIT_ALL_TESTSUITES += $(PROJ_OBJ_DIR)/../tools/clang/tools/extra/test
+
+# Force creation of Clang Tools' lit.site.cfg.
+clang-tools-site-cfg: FORCE
+       $(MAKE) -C $(PROJ_OBJ_DIR)/../tools/clang/tools/extra/test lit.site.cfg
+extra-site-cfgs:: clang-tools-site-cfg
+endif
 endif
 endif