[all-commits] [llvm/llvm-project] da0e91: [intel-pt] Improve the way the test determines whe...

walter erquinigo via All-commits all-commits at lists.llvm.org
Wed Apr 15 16:20:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da0e91fee614e8686f48db28e6507c8abe061fc2
      https://github.com/llvm/llvm-project/commit/da0e91fee614e8686f48db28e6507c8abe061fc2
  Author: Walter Erquinigo <wallace at fb.com>
  Date:   2020-04-15 (Wed, 15 Apr 2020)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/configuration.py
    M lldb/packages/Python/lldbsuite/test/dotest.py
    M lldb/packages/Python/lldbsuite/test/dotest_args.py
    M lldb/test/API/lit.cfg.py
    M lldb/test/API/lit.site.cfg.py.in
    M lldb/test/API/tools/intel-features/intel-pt/test/TestIntelPTSimpleBinary.py
    M lldb/test/CMakeLists.txt
    M lldb/utils/lldb-dotest/CMakeLists.txt
    M lldb/utils/lldb-dotest/lldb-dotest.in

  Log Message:
  -----------
  [intel-pt] Improve the way the test determines whether to run

Summary:
@labath raised a concern on the way I was skipping this test. I think that was
fair and I found a better way.
Now I'm skipping if the CMAKE flag LLDB_BUILD_INTEL_PT is false.
I added an enabled_plugins entry in the dotest configuration, which gets
set by lit or lldb-dotest. The only available plugin right now is
'intel-pt', but I imagine it will be useful in the future for other
kinds of plugins that get determined at configuration time. I didn't
want to add a new argument option --enable-intel-pt or something or the
sort, as it wouldn't be useful for other cases.

Reviewers: labath, clayborg

Subscribers: lldb-commits, labath

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D77452




More information about the All-commits mailing list