diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-19 16:04:21 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-19 16:04:21 +0000 |
commit | 8880ac648ceb337868b7c4949776e50f5fd1cad0 (patch) | |
tree | f0036ffea1e66f392ed2f1b9389c69aadd8f7c27 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | ec4540d8a62cfef017173ce7309adcb9beca4e53 (diff) | |
download | bcm5719-llvm-8880ac648ceb337868b7c4949776e50f5fd1cad0.tar.gz bcm5719-llvm-8880ac648ceb337868b7c4949776e50f5fd1cad0.zip |
[dotest] Add --dwarf-version to override the tested DWARF version.
On the matrix bot on GreenDragon [1] we want to run the test suite
against different DWARF versions. The idea here is not to replace
targeted tests for certain DWARF features, but rather to provide an easy
way to support this configuration.
[1] http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-matrix/
Differential revision: https://reviews.llvm.org/D66370
llvm-svn: 369272
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index ce585889f1e..7593c0da4aa 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -342,9 +342,15 @@ def parseOptionsAndInitTestdirs(): configuration.skipCategories += test_categories.validate( args.skipCategories, False) + cflags_extras = "" if args.E: - cflags_extras = args.E - os.environ['CFLAGS_EXTRAS'] = cflags_extras + cflags_extras += args.E + + if args.dwarf_version: + configuration.dwarf_version = args.dwarf_version + cflags_extras += '-gdwarf-{}'.format(args.dwarf_version) + + os.environ['CFLAGS_EXTRAS'] = cflags_extras if args.d: sys.stdout.write( |