diff --git a/lldb/docs/resources/test.rst b/lldb/docs/resources/test.rst index d0e94fbe1f9dc..2ecce85fd9dbf 100644 --- a/lldb/docs/resources/test.rst +++ b/lldb/docs/resources/test.rst @@ -173,9 +173,9 @@ but often it's easier to find an existing ``Makefile`` that does something similar to what you want to do. Another thing this enables is having different variants for the same test -case. By default, we run every test for all 3 debug info formats, so once with -DWARF from the object files, once with gmodules and finally with a dSYM on -macOS or split DWARF (DWO) on Linux. But there are many more things we can test +case. By default, we run every test for two debug info formats, once with +DWARF from the object files and another with a dSYM on macOS or split +DWARF (DWO) on Linux. But there are many more things we can test that are orthogonal to the test itself. On GreenDragon we have a matrix bot that runs the test suite under different configurations, with older host compilers and different DWARF versions. diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 5c058769ff3f9..1ea29b3f5a39d 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1664,14 +1664,16 @@ def __new__(cls, name, bases, attrs): # If any debug info categories were explicitly tagged, assume that list to be # authoritative. If none were specified, try with all debug # info formats. - all_dbginfo_categories = set(test_categories.debug_info_categories) + all_dbginfo_categories = set(test_categories.debug_info_categories.keys()) categories = set( getattr( attrvalue, "categories", [])) & all_dbginfo_categories if not categories: - categories = all_dbginfo_categories + categories = [category for category, can_replicate \ + in test_categories.debug_info_categories.items() \ + if can_replicate] for cat in categories: @decorators.add_test_categories([cat]) diff --git a/lldb/packages/Python/lldbsuite/test/test_categories.py b/lldb/packages/Python/lldbsuite/test/test_categories.py index a396741ccf8f3..f3d8b0749f2f6 100644 --- a/lldb/packages/Python/lldbsuite/test/test_categories.py +++ b/lldb/packages/Python/lldbsuite/test/test_categories.py @@ -13,10 +13,14 @@ # LLDB modules from lldbsuite.support import gmodules - -debug_info_categories = [ - 'dwarf', 'dwo', 'dsym', 'gmodules' -] +# Key: Category name +# Value: should be used in lldbtest's debug-info replication +debug_info_categories = { + 'dwarf' : True, + 'dwo' : True, + 'dsym' : True, + 'gmodules' : False +} all_categories = { 'basic_process': 'Basic process execution sniff tests.',