diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2016-05-26 13:57:03 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2016-05-26 13:57:03 +0000 |
commit | 94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee (patch) | |
tree | 2aea2a6d3dfc5666cbd1632322540c572fa1a5df /lldb/packages/Python/lldbsuite/test/lldbinline.py | |
parent | a8f9cf18ad13b2cb3aa8b05c2d8cf771c0b979b5 (diff) | |
download | bcm5719-llvm-94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee.tar.gz bcm5719-llvm-94eb010fe9a6cfe8bf1f03b8ce4cc406d56472ee.zip |
Add "-gmodules" support to the test suite.
This change adds the capability of building test inferiors
with the -gmodules flag to enable module debug info support.
Windows is excluded per @zturner.
Reviewers: granata.enrico, aprantl, zturner, labath
Subscribers: zturner, labath, lldb-commits
Differential Revision: http://reviews.llvm.org/D19998
llvm-svn: 270848
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbinline.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbinline.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py index 010298cb2b8..6a61b2eaf55 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbinline.py +++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py @@ -9,6 +9,7 @@ import os # LLDB modules import lldb from .lldbtest import * +from . import configuration from . import lldbutil from .decorators import * @@ -141,6 +142,12 @@ class InlineTest(TestBase): self.buildDwo() self.do_test() + def __test_with_gmodules(self): + self.using_dsym = False + self.BuildMakefile() + self.buildGModules() + self.do_test() + def execute_user_command(self, __command): exec(__command, globals(), locals()) @@ -205,12 +212,14 @@ def MakeInlineTest(__file, __globals, decorators=None): test.name = test_name target_platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2] - if test_categories.is_supported_on_platform("dsym", target_platform): + if test_categories.is_supported_on_platform("dsym", target_platform, configuration.compilers): test.test_with_dsym = ApplyDecoratorsToFunction(test._InlineTest__test_with_dsym, decorators) - if test_categories.is_supported_on_platform("dwarf", target_platform): + if test_categories.is_supported_on_platform("dwarf", target_platform, configuration.compilers): test.test_with_dwarf = ApplyDecoratorsToFunction(test._InlineTest__test_with_dwarf, decorators) - if test_categories.is_supported_on_platform("dwo", target_platform): + if test_categories.is_supported_on_platform("dwo", target_platform, configuration.compilers): test.test_with_dwo = ApplyDecoratorsToFunction(test._InlineTest__test_with_dwo, decorators) + if test_categories.is_supported_on_platform("gmodules", target_platform, configuration.compilers): + test.test_with_gmodules = ApplyDecoratorsToFunction(test._InlineTest__test_with_gmodules, decorators) # Add the test case to the globals, and hide InlineTest __globals.update({test_name : test}) |