diff options
author | Walter Erquinigo <wallace@fb.com> | 2020-04-03 19:42:58 -0700 |
---|---|---|
committer | Walter Erquinigo <wallace@fb.com> | 2020-04-15 17:52:36 -0700 |
commit | acfee72a053575f52a0922d2182d76eb42edff76 (patch) | |
tree | c3bf8e833f4050ffc9c380bf2a3950fc2ec9499a /lldb/packages/Python/lldbsuite/test | |
parent | 4f37450b2cb2dfc3c201a1b87f25062560ef3327 (diff) | |
download | llvm-acfee72a053575f52a0922d2182d76eb42edff76.zip llvm-acfee72a053575f52a0922d2182d76eb42edff76.tar.gz llvm-acfee72a053575f52a0922d2182d76eb42edff76.tar.bz2 |
Another attempt of D77452 - da0e91fee614e8686f48db28e6507c8abe061fc2
[intel-pt] Improve the way the test determines whether to run
- Now I'm creating a default value for the new test parameter
- I fixed a small mistake in the skipping logic of the test
... I forgot to clear the cmake cache when testing my diff
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/configuration.py | 3 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 3 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest_args.py | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py index 9d69438..ddae780 100644 --- a/lldb/packages/Python/lldbsuite/test/configuration.py +++ b/lldb/packages/Python/lldbsuite/test/configuration.py @@ -137,6 +137,9 @@ all_tests = set() # LLDB library directory. lldb_libs_dir = None +# A plugin whose tests will be enabled, like intel-pt. +enabled_plugins = [] + def shouldSkipBecauseOfCategories(test_categories): if use_categories: diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index b5666ec..c4e4b61 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -467,6 +467,9 @@ def parseOptionsAndInitTestdirs(): if args.lldb_libs_dir: configuration.lldb_libs_dir = args.lldb_libs_dir + if args.enabled_plugins: + configuration.enabled_plugins = args.enabled_plugins + # Gather all the dirs passed on the command line. if len(args.args) > 0: configuration.testdirs = [os.path.realpath(os.path.abspath(x)) for x in args.args] diff --git a/lldb/packages/Python/lldbsuite/test/dotest_args.py b/lldb/packages/Python/lldbsuite/test/dotest_args.py index ad9508d..410097f 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest_args.py +++ b/lldb/packages/Python/lldbsuite/test/dotest_args.py @@ -177,6 +177,13 @@ def create_parser(): dest='lldb_libs_dir', metavar='path', help='The path to LLDB library directory (containing liblldb)') + group.add_argument( + '--enable-plugin', + dest='enabled_plugins', + action='append', + type=str, + metavar='A plugin whose tests will be enabled', + help='A plugin whose tests will be enabled. The only currently supported plugin is intel-pt.') # Configuration options group = parser.add_argument_group('Remote platform options') |