-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Disabling DebugInfoD tests for linux aarch64/arm the right way #87547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-lldb Author: Kevin Frei (kevinfrei) ChangesI moved the @skipIf annotation to each test, off of the class itself, as this is what other API tests look like that disable tests for given platforms. Hopefully this will address the Linux AArch64 buildbot issues. Full diff: https://github.com/llvm/llvm-project/pull/87547.diff 2 Files Affected:
diff --git a/lldb/test/API/debuginfod/Normal/TestDebuginfod.py b/lldb/test/API/debuginfod/Normal/TestDebuginfod.py
index 2e87228c3142f1..f1be1e705ee0cb 100644
--- a/lldb/test/API/debuginfod/Normal/TestDebuginfod.py
+++ b/lldb/test/API/debuginfod/Normal/TestDebuginfod.py
@@ -19,11 +19,11 @@
# It looks like Linux-AArch64 doesn't support build-id's on the LLDB builtbots
-@skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
class DebugInfodTests(TestBase):
# No need to try every flavor of debug inf.
NO_DEBUG_INFO_TESTCASE = True
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_normal_no_symbols(self):
"""
Validate behavior with no symbols or symbol locator.
@@ -32,6 +32,7 @@ def test_normal_no_symbols(self):
test_root = self.config_test(["a.out"])
self.try_breakpoint(False)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_normal_default(self):
"""
Validate behavior with symbols, but no symbol locator.
@@ -40,6 +41,7 @@ def test_normal_default(self):
test_root = self.config_test(["a.out", "a.out.debug"])
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_symbols(self):
"""
Test behavior with the full binary available from Debuginfod as
@@ -48,6 +50,7 @@ def test_debuginfod_symbols(self):
test_root = self.config_test(["a.out"], "a.out.unstripped")
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_executable(self):
"""
Test behavior with the full binary available from Debuginfod as
@@ -56,6 +59,7 @@ def test_debuginfod_executable(self):
test_root = self.config_test(["a.out"], None, "a.out.unstripped")
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_okd_symbols(self):
"""
Test behavior with the 'only-keep-debug' symbols available from Debuginfod.
diff --git a/lldb/test/API/debuginfod/SplitDWARF/TestDebuginfodDWP.py b/lldb/test/API/debuginfod/SplitDWARF/TestDebuginfodDWP.py
index 90db3525725cbe..fec2fa1132d776 100644
--- a/lldb/test/API/debuginfod/SplitDWARF/TestDebuginfodDWP.py
+++ b/lldb/test/API/debuginfod/SplitDWARF/TestDebuginfodDWP.py
@@ -22,11 +22,11 @@
# It looks like Linux-AArch64 doesn't support build-id's on the LLDB builtbots
-@skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
class DebugInfodDWPTests(TestBase):
# No need to try every flavor of debug inf.
NO_DEBUG_INFO_TESTCASE = True
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_normal_stripped(self):
"""
Validate behavior with a stripped binary, no symbols or symbol locator.
@@ -34,6 +34,7 @@ def test_normal_stripped(self):
self.config_test(["a.out"])
self.try_breakpoint(False)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_normal_stripped_split_with_dwp(self):
"""
Validate behavior with symbols, but no symbol locator.
@@ -41,6 +42,7 @@ def test_normal_stripped_split_with_dwp(self):
self.config_test(["a.out", "a.out.debug", "a.out.dwp"])
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_normal_stripped_only_dwp(self):
"""
Validate behavior *with* dwp symbols only, but missing other symbols,
@@ -50,6 +52,7 @@ def test_normal_stripped_only_dwp(self):
self.config_test(["a.out", "a.out.dwp"])
self.try_breakpoint(False)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_dwp_from_service(self):
"""
Test behavior with the unstripped binary, and DWP from the service.
@@ -57,6 +60,7 @@ def test_debuginfod_dwp_from_service(self):
self.config_test(["a.out.debug"], "a.out.dwp")
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_both_symfiles_from_service(self):
"""
Test behavior with a stripped binary, with the unstripped binary and
@@ -65,6 +69,7 @@ def test_debuginfod_both_symfiles_from_service(self):
self.config_test(["a.out"], "a.out.dwp", "a.out.unstripped")
self.try_breakpoint(True)
+ @skipIf(oslist=no_match(["linux"]), archs=no_match(["i386", "x86_64"]))
def test_debuginfod_both_okd_symfiles_from_service(self):
"""
Test behavior with both the only-keep-debug symbols and the dwp symbols
|
I assume this PR is no longer needed, I don't see any issues on the AArch64 lldb bot right now. |
Yes. The original PR this fixed was reverted. I'll put the whole thing together and put up attempt #3 to land. The code hasn't changed, just the tests... |
I moved the @skipIf annotation to each test, off of the class itself, as this is what other API tests look like that disable tests for given platforms. Hopefully this will address the Linux AArch64 buildbot issues.