Skip to content

Commit

Permalink
Moved the @skipIf to each test, off of the class itself
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfrei committed Apr 4, 2024
1 parent ed4b77f commit f2259b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lldb/test/API/debuginfod/Normal/TestDebuginfod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion lldb/test/API/debuginfod/SplitDWARF/TestDebuginfodDWP.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,27 @@


# 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.
"""
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.
"""
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,
Expand All @@ -50,13 +52,15 @@ 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.
"""
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
Expand All @@ -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
Expand Down

0 comments on commit f2259b4

Please sign in to comment.