aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-12-10 14:52:20 +0100
committerPavel Labath <pavel@labath.sk>2020-12-10 16:21:28 +0100
commitdb8420825073371ddc077b020634e71e315e38a1 (patch)
tree89f0fa9266c34ac4cb5532c33085bdf8c6b45702 /lldb/packages/Python/lldbsuite/test/dotest.py
parenta7b2847216b4f7a84ef75461fd47a5adfbb63e27 (diff)
downloadllvm-db8420825073371ddc077b020634e71e315e38a1.zip
llvm-db8420825073371ddc077b020634e71e315e38a1.tar.gz
llvm-db8420825073371ddc077b020634e71e315e38a1.tar.bz2
[lldb/test] Replace ad-hoc server test choice with test categories
This makes things consistent, and enables further simplifications down the road.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 64a1978..86ea34e 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -850,6 +850,14 @@ def checkDebugInfoSupport():
if skipped:
print("Skipping following debug info categories:", skipped)
+def checkDebugServerSupport():
+ from lldbsuite.test import lldbplatformutil
+
+ if lldbplatformutil.platformIsDarwin():
+ configuration.skip_categories.append("llgs")
+ else:
+ configuration.skip_categories.append("debugserver")
+
def run_suite():
# On MacOS X, check to make sure that domain for com.apple.DebugSymbols defaults
# does not exist before proceeding to running the test suite.
@@ -944,15 +952,9 @@ def run_suite():
checkLibstdcxxSupport()
checkWatchpointSupport()
checkDebugInfoSupport()
+ checkDebugServerSupport()
checkObjcSupport()
- # Perform LLGS tests only on platforms using it.
- configuration.llgs_platform = (
- target_platform in ["freebsd", "linux", "netbsd", "windows"])
-
- # Perform debugserver tests elsewhere (i.e. on Darwin platforms).
- configuration.debugserver_platform = not configuration.llgs_platform
-
for testdir in configuration.testdirs:
for (dirpath, dirnames, filenames) in os.walk(testdir):
visit('Test', dirpath, filenames)