summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/dotest_args.py
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2020-01-14 12:34:13 -0800
committerAdrian Prantl <aprantl@apple.com>2020-01-14 12:35:24 -0800
commitb53d44b17a1685e405415cd32c4b6eb89cc4c3a1 (patch)
tree1bc7e9cff0c9190f0c5eb0c372cfb32ac494cc55 /lldb/packages/Python/lldbsuite/test/dotest_args.py
parent337e4359645ebd0f35136dbec9b51c48b9071f9c (diff)
downloadbcm5719-llvm-b53d44b17a1685e405415cd32c4b6eb89cc4c3a1.tar.gz
bcm5719-llvm-b53d44b17a1685e405415cd32c4b6eb89cc4c3a1.zip
dotest.py: Add option to pass extra lldb settings to dotest
The primary motivation for this is to add another dimension to the Swift LLDB test matrix, but this seems generally useful. Differential Revision: https://reviews.llvm.org/D72662
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest_args.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py
index 41c96e3979c..7ec5fa2a78e 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest_args.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py
@@ -116,6 +116,14 @@ def create_parser():
type=int,
help='Override the DWARF version.')
group.add_argument(
+ '--setting',
+ metavar='SETTING=VALUE',
+ dest='settings',
+ type=str,
+ nargs=1,
+ action='append',
+ help='Run "setting set SETTING VALUE" before executing any test.')
+ group.add_argument(
'-s',
metavar='name',
help='Specify the name of the dir created to store the session files of tests with errored or failed status. If not specified, the test driver uses the timestamp as the session dir name')
OpenPOWER on IntegriCloud