Index: lldb/test/CMakeLists.txt =================================================================== --- lldb/test/CMakeLists.txt +++ lldb/test/CMakeLists.txt @@ -167,6 +167,7 @@ LLVM_ENABLE_ZLIB LLVM_ENABLE_SHARED_LIBS LLDB_HAS_LIBCXX + LLDB_TOOL_LLDB_SERVER_BUILD LLDB_USE_SYSTEM_DEBUGSERVER LLDB_IS_64_BITS) Index: lldb/test/Shell/lit.cfg.py =================================================================== --- lldb/test/Shell/lit.cfg.py +++ lldb/test/Shell/lit.cfg.py @@ -132,6 +132,9 @@ if config.lldb_system_debugserver: config.available_features.add('system-debugserver') +if config.have_lldb_server: + config.available_features.add('lldb-server') + # NetBSD permits setting dbregs either if one is root # or if user_set_dbregs is enabled can_set_dbregs = True Index: lldb/test/Shell/lit.site.cfg.py.in =================================================================== --- lldb/test/Shell/lit.site.cfg.py.in +++ lldb/test/Shell/lit.site.cfg.py.in @@ -22,6 +22,7 @@ config.lldb_enable_python = @LLDB_ENABLE_PYTHON@ config.lldb_enable_lua = @LLDB_ENABLE_LUA@ config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@" +config.have_lldb_server = @LLDB_TOOL_LLDB_SERVER_BUILD@ config.lldb_system_debugserver = @LLDB_USE_SYSTEM_DEBUGSERVER@ # The shell tests use their own module caches. config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell") Index: lldb/test/Shell/lldb-server/TestErrorMessages.test =================================================================== --- lldb/test/Shell/lldb-server/TestErrorMessages.test +++ lldb/test/Shell/lldb-server/TestErrorMessages.test @@ -1,3 +1,5 @@ +REQUIRES: lldb-server + RUN: %lldb-server gdbserver --fd 2>&1 | FileCheck --check-prefixes=FD1,ALL %s FD1: error: --fd: missing argument Index: lldb/test/Shell/lldb-server/TestGdbserverPort.test =================================================================== --- lldb/test/Shell/lldb-server/TestGdbserverPort.test +++ lldb/test/Shell/lldb-server/TestGdbserverPort.test @@ -1,4 +1,5 @@ # Windows does not build lldb-server. +# REQUIRES: lldb-server # UNSUPPORTED: system-windows # RUN: %platformserver --server --listen :1234 --min-gdbserver-port 1234 --max-gdbserver-port 1234 2>&1 | FileCheck %s # CHECK: error: --min-gdbserver-port (1234) is not lower than --max-gdbserver-port (1234)