[Lldb-commits] [lldb] r353700 - [lldb] [test] Skip lldb-mi test if LLDB_DISABLE_PYTHON is used

Michal Gorny via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 11 06:09:43 PST 2019


Author: mgorny
Date: Mon Feb 11 06:09:43 2019
New Revision: 353700

URL: http://llvm.org/viewvc/llvm-project?rev=353700&view=rev
Log:
[lldb] [test] Skip lldb-mi test if LLDB_DISABLE_PYTHON is used

Skip running lldb-mi tests when Python support is disabled.  This causes
lldb-mi to unconditionally fail, and therefore all the relevant tests
fail as well.

Differential Revision: https://reviews.llvm.org/D58000

Added:
    lldb/trunk/lit/tools/lldb-mi/lit.local.cfg
Modified:
    lldb/trunk/lit/helper/toolchain.py
    lldb/trunk/lit/lit.site.cfg.py.in

Modified: lldb/trunk/lit/helper/toolchain.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/helper/toolchain.py?rev=353700&r1=353699&r2=353700&view=diff
==============================================================================
--- lldb/trunk/lit/helper/toolchain.py (original)
+++ lldb/trunk/lit/helper/toolchain.py Mon Feb 11 06:09:43 2019
@@ -52,7 +52,8 @@ def use_lldb_substitutions(config):
 
     llvm_config.add_tool_substitutions(primary_tools,
                                        [config.lldb_tools_dir])
-    if lldbmi.was_resolved:
+    # lldb-mi always fails without Python support
+    if lldbmi.was_resolved and not config.lldb_disable_python:
         config.available_features.add('lldb-mi')
 
 def _use_msvc_substitutions(config):

Modified: lldb/trunk/lit/lit.site.cfg.py.in
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/lit.site.cfg.py.in?rev=353700&r1=353699&r2=353700&view=diff
==============================================================================
--- lldb/trunk/lit/lit.site.cfg.py.in (original)
+++ lldb/trunk/lit/lit.site.cfg.py.in Mon Feb 11 06:09:43 2019
@@ -17,6 +17,7 @@ config.python_executable = "@PYTHON_EXEC
 config.have_zlib = @LLVM_ENABLE_ZLIB@
 config.host_triple = "@LLVM_HOST_TRIPLE@"
 config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32
+config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
 
 # 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.

Added: lldb/trunk/lit/tools/lldb-mi/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/lit.local.cfg?rev=353700&view=auto
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/lit.local.cfg (added)
+++ lldb/trunk/lit/tools/lldb-mi/lit.local.cfg Mon Feb 11 06:09:43 2019
@@ -0,0 +1,2 @@
+if not "lldb-mi" in config.available_features:
+    config.unsupported = True




More information about the lldb-commits mailing list