diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-01-30 23:15:49 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-01-30 23:15:49 +0000 |
commit | dbdda6a1e72e49f74fa1f2faca7364d5d1e7980b (patch) | |
tree | 03b79cd6d5a92d2e2eb8fa737845defe0021b05d /lldb/packages/Python/lldbsuite/test | |
parent | e039d0ee12397dbaaa5ce3e5564030100bdbab25 (diff) | |
download | bcm5719-llvm-dbdda6a1e72e49f74fa1f2faca7364d5d1e7980b.tar.gz bcm5719-llvm-dbdda6a1e72e49f74fa1f2faca7364d5d1e7980b.zip |
Enforce that NO_DEBUG_INFO_TESTCASEs build using buildDefault().
This is a prerequisite for building each test variant in its own subdirectory.
llvm-svn: 323830
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
4 files changed, 18 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index e87dd4c5e60..309227e3b26 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1539,6 +1539,9 @@ class Base(unittest2.TestCase): """Platform specific way to build binaries with dsym info.""" if not testdir: testdir = self.mydir + if self.debug_info <> "dsym": + raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault") + module = builder_module() dictionary = lldbplatformutil.finalize_build_dictionary(dictionary) if not module.buildDsym(self, architecture, compiler, @@ -1555,6 +1558,9 @@ class Base(unittest2.TestCase): """Platform specific way to build binaries with dwarf maps.""" if not testdir: testdir = self.mydir + if self.debug_info <> "dwarf": + raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault") + module = builder_module() dictionary = lldbplatformutil.finalize_build_dictionary(dictionary) if not module.buildDwarf(self, architecture, compiler, @@ -1571,6 +1577,9 @@ class Base(unittest2.TestCase): """Platform specific way to build binaries with dwarf maps.""" if not testdir: testdir = self.mydir + if self.debug_info <> "dwo": + raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault") + module = builder_module() dictionary = lldbplatformutil.finalize_build_dictionary(dictionary) if not module.buildDwo(self, architecture, compiler, @@ -1587,6 +1596,9 @@ class Base(unittest2.TestCase): """Platform specific way to build binaries with gmodules info.""" if not testdir: testdir = self.mydir + if self.debug_info <> "gmodules": + raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault") + module = builder_module() dictionary = lldbplatformutil.finalize_build_dictionary(dictionary) if not module.buildGModules(self, architecture, compiler, diff --git a/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py b/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py index ff22287e537..7e96d90fa1a 100644 --- a/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py +++ b/lldb/packages/Python/lldbsuite/test/macosx/add-dsym/TestAddDsymMidExecutionCommand.py @@ -25,7 +25,7 @@ class AddDsymMidExecutionCommandCase(TestBase): @no_debug_info_test # Prevent the genaration of the dwarf version of this test def test_add_dsym_mid_execution(self): """Test that add-dsym mid-execution loads the symbols at the right place for a slid binary.""" - self.buildDsym(clean=True) + self.buildDefault(clean=True, dictionary={'MAKE_DSYM':'YES'}) exe = self.getBuildArtifact("a.out") self.target = self.dbg.CreateTarget(exe) diff --git a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py index ab9c39acbc3..5114c067899 100644 --- a/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py +++ b/lldb/packages/Python/lldbsuite/test/plugins/builder_base.py @@ -145,7 +145,7 @@ def buildDefault( commands = [] if clean: commands.append(getMake(testdir) + ["clean", getCmdLine(dictionary)]) - commands.append(getMake(testdir) + [getArchSpec(architecture), + commands.append(getMake(testdir) + ["all", getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)]) runBuildCommands(commands, sender=sender) diff --git a/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py b/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py index c75f7f293fa..633b26a0ad6 100644 --- a/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py +++ b/lldb/packages/Python/lldbsuite/test/warnings/uuid/TestAddDsymCommand.py @@ -28,14 +28,14 @@ class AddDsymCommandCase(TestBase): # Call the program generator to produce main.cpp, version 1. self.generate_main_cpp(version=1) - self.buildDsym(clean=True) + self.buildDefault(clean=True, dictionary={'MAKE_DSYM':'YES'}) # Insert some delay and then call the program generator to produce # main.cpp, version 2. time.sleep(5) self.generate_main_cpp(version=101) # Now call make again, but this time don't generate the dSYM. - self.buildDwarf(clean=False) + self.buildDefault(clean=False, dictionary={'MAKE_DSYM':'NO'}) self.exe_name = 'a.out' self.do_add_dsym_with_error(self.exe_name) @@ -46,7 +46,7 @@ class AddDsymCommandCase(TestBase): # Call the program generator to produce main.cpp, version 1. self.generate_main_cpp(version=1) - self.buildDsym(clean=True) + self.buildDefault(clean=True, dictionary={'MAKE_DSYM':'YES'}) self.exe_name = 'a.out' self.do_add_dsym_with_success(self.exe_name) @@ -57,7 +57,7 @@ class AddDsymCommandCase(TestBase): # Call the program generator to produce main.cpp, version 1. self.generate_main_cpp(version=1) - self.buildDsym(clean=True) + self.buildDefault(clean=True, dictionary={'MAKE_DSYM':'YES'}) self.exe_name = 'a.out' self.do_add_dsym_with_dSYM_bundle(self.exe_name) |