]> granicus.if.org Git - clang/commitdiff
Make the information about disabled ARCMT/Rewriter/StaticAnalyzer available
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 27 Aug 2013 19:27:35 +0000 (19:27 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 27 Aug 2013 19:27:35 +0000 (19:27 +0000)
to lit and use this info to disable Analysis/FixIt/Rewriter/Analysis tests
when those are not compiled into clang.

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

test/ARCMT/lit.local.cfg [new file with mode: 0644]
test/Analysis/lit.local.cfg [new file with mode: 0644]
test/FixIt/lit.local.cfg [new file with mode: 0644]
test/Makefile
test/Rewriter/lit.local.cfg [new file with mode: 0644]
test/lit.site.cfg.in

diff --git a/test/ARCMT/lit.local.cfg b/test/ARCMT/lit.local.cfg
new file mode 100644 (file)
index 0000000..4b28d6d
--- /dev/null
@@ -0,0 +1,2 @@
+if config.root.clang_arcmt == 0:
+    config.unsupported = True
diff --git a/test/Analysis/lit.local.cfg b/test/Analysis/lit.local.cfg
new file mode 100644 (file)
index 0000000..da2a68b
--- /dev/null
@@ -0,0 +1,2 @@
+if config.root.clang_staticanalyzer == 0:
+    config.unsupported = True
diff --git a/test/FixIt/lit.local.cfg b/test/FixIt/lit.local.cfg
new file mode 100644 (file)
index 0000000..5bbc711
--- /dev/null
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+    config.unsupported = True
index 4fdafe1481b1c3c591be073eeb906b60e3c18fd8..dbfa52177b7184c1a6a6bf08c7e36a22fb730dc1 100644 (file)
@@ -45,6 +45,9 @@ lit.site.cfg: FORCE
        @$(ECHOPATH) s=@CLANG_SOURCE_DIR@=$(PROJ_SRC_DIR)/..=g >> lit.tmp
        @$(ECHOPATH) s=@CLANG_BINARY_DIR@=$(PROJ_OBJ_DIR)/..=g >> lit.tmp
        @$(ECHOPATH) s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)=g >> lit.tmp
+       @$(ECHOPATH) s=@ENABLE_CLANG_ARCMT@=$(ENABLE_CLANG_ARCMT)=g >> lit.tmp
+       @$(ECHOPATH) s=@ENABLE_CLANG_REWRITER@=$(ENABLE_CLANG_REWRITER)=g >> lit.tmp
+       @$(ECHOPATH) s=@ENABLE_CLANG_STATIC_ANALYZER@=$(ENABLE_CLANG_STATIC_ANALYZER)=g >> lit.tmp
        @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
        @-rm -f lit.tmp
 
diff --git a/test/Rewriter/lit.local.cfg b/test/Rewriter/lit.local.cfg
new file mode 100644 (file)
index 0000000..5bbc711
--- /dev/null
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+    config.unsupported = True
index 39f432205a5c97c07fadcec5cc2d9f0eaf0198f9..1b0b09ae96ff409a55e2884b9161773613d88aba 100644 (file)
@@ -10,6 +10,9 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
 config.clang_obj_root = "@CLANG_BINARY_DIR@"
 config.target_triple = "@TARGET_TRIPLE@"
 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
+config.clang_arcmt = @ENABLE_CLANG_ARCMT@
+config.clang_staticanalyzer = @ENABLE_CLANG_STATIC_ANALYZER@
+config.clang_rewriter = @ENABLE_CLANG_REWRITER@
 
 # Support substitution of the tools and libs dirs with user parameters. This is
 # used when we can't determine the tool dir at configuration time.