r189395 - Make the information about disabled ARCMT/Rewriter/StaticAnalyzer available
Roman Divacky
rdivacky at freebsd.org
Tue Aug 27 12:27:36 PDT 2013
Author: rdivacky
Date: Tue Aug 27 14:27:35 2013
New Revision: 189395
URL: http://llvm.org/viewvc/llvm-project?rev=189395&view=rev
Log:
Make the information about disabled ARCMT/Rewriter/StaticAnalyzer available
to lit and use this info to disable Analysis/FixIt/Rewriter/Analysis tests
when those are not compiled into clang.
Added:
cfe/trunk/test/ARCMT/lit.local.cfg
cfe/trunk/test/Analysis/lit.local.cfg
cfe/trunk/test/FixIt/lit.local.cfg
cfe/trunk/test/Rewriter/lit.local.cfg
Modified:
cfe/trunk/test/Makefile
cfe/trunk/test/lit.site.cfg.in
Added: cfe/trunk/test/ARCMT/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ARCMT/lit.local.cfg?rev=189395&view=auto
==============================================================================
--- cfe/trunk/test/ARCMT/lit.local.cfg (added)
+++ cfe/trunk/test/ARCMT/lit.local.cfg Tue Aug 27 14:27:35 2013
@@ -0,0 +1,2 @@
+if config.root.clang_arcmt == 0:
+ config.unsupported = True
Added: cfe/trunk/test/Analysis/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/lit.local.cfg?rev=189395&view=auto
==============================================================================
--- cfe/trunk/test/Analysis/lit.local.cfg (added)
+++ cfe/trunk/test/Analysis/lit.local.cfg Tue Aug 27 14:27:35 2013
@@ -0,0 +1,2 @@
+if config.root.clang_staticanalyzer == 0:
+ config.unsupported = True
Added: cfe/trunk/test/FixIt/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/lit.local.cfg?rev=189395&view=auto
==============================================================================
--- cfe/trunk/test/FixIt/lit.local.cfg (added)
+++ cfe/trunk/test/FixIt/lit.local.cfg Tue Aug 27 14:27:35 2013
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+ config.unsupported = True
Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=189395&r1=189394&r2=189395&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Tue Aug 27 14:27:35 2013
@@ -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
Added: cfe/trunk/test/Rewriter/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/lit.local.cfg?rev=189395&view=auto
==============================================================================
--- cfe/trunk/test/Rewriter/lit.local.cfg (added)
+++ cfe/trunk/test/Rewriter/lit.local.cfg Tue Aug 27 14:27:35 2013
@@ -0,0 +1,2 @@
+if config.root.clang_rewriter == 0:
+ config.unsupported = True
Modified: cfe/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.site.cfg.in?rev=189395&r1=189394&r2=189395&view=diff
==============================================================================
--- cfe/trunk/test/lit.site.cfg.in (original)
+++ cfe/trunk/test/lit.site.cfg.in Tue Aug 27 14:27:35 2013
@@ -10,6 +10,9 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_
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.
More information about the cfe-commits
mailing list