diff options
author | Vedant Kumar <vsk@apple.com> | 2018-09-18 19:31:47 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-09-18 19:31:47 +0000 |
commit | 9b13bea61a576a41eda7c88d1628f9914bfc02b4 (patch) | |
tree | e3664f582263814503176f9237fa2a3b02b0f469 /lldb/packages/Python/lldbsuite/test/dotest_args.py | |
parent | ee679e10bbd2f9d66ecc04cac0678ffe7082f83a (diff) | |
download | bcm5719-llvm-9b13bea61a576a41eda7c88d1628f9914bfc02b4.tar.gz bcm5719-llvm-9b13bea61a576a41eda7c88d1628f9914bfc02b4.zip |
Allow use of self.filecheck in LLDB tests (c.f self.expect)
Add a "filecheck" method to the LLDB test base. This allows test authors
to pattern match command output using FileCheck, making it possible to
write stricter tests than what `self.expect` allows.
For context (motivation, examples of stricter checking, etc), see the
lldb-dev thread: "Using FileCheck in lldb inline tests".
Differential Revision: https://reviews.llvm.org/D50751
llvm-svn: 342508
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_args.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest_args.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py index 58190d8c75e..225ccf1181c 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest_args.py +++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py @@ -85,6 +85,8 @@ def create_parser(): group.add_argument('--dsymutil', metavar='dsymutil', dest='dsymutil', help=textwrap.dedent('Specify which dsymutil to use.')) + group.add_argument('--filecheck', metavar='filecheck', dest='filecheck', help=textwrap.dedent('Specify which FileCheck binary to use.')) + # Test filtering options group = parser.add_argument_group('Test filtering options') group.add_argument( |