]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #68391 - tmiasko:compiletest-debuginfo, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 23 Jan 2020 19:39:07 +0000 (19:39 +0000)
committerbors <bors@rust-lang.org>
Thu, 23 Jan 2020 19:39:07 +0000 (19:39 +0000)
commit41f41b2354778375dc72f7ed1d9323626580dc4d
tree43cd87fbf04e08797e7fea8d20d8d5f0eaf83a3b
parente0bbe7915e2b663ac84244918d6d06e0747ed33e
parent5c384ab00c7b4b39e457b75d385e9cbe12e699f5
Auto merge of #68391 - tmiasko:compiletest-debuginfo, r=alexcrichton

compiletest: Simplify multi-debugger support

Previous implementation used a single mode type to store various pieces
of otherwise loosely related information:

* Whether debuginfo mode is in use or not.
* Which debuggers should run in general.
* Which debuggers are enabled for particular test case.

The new implementation introduces a separation between those aspects.
There is a single debuginfo mode parametrized by a debugger type.
The debugger detection is performed first and a separate configuration
is created for each detected debugger. The test cases are gathered
independently for each debugger which makes it trivial to implement
support for `ignore` / `only` conditions.

Functional changes:

* A single `debuginfo` entry point (rather than `debuginfo-cdb`, `debuginfo-gdb+lldb`, etc.).
* Debugger name is included in the test name.
* Test outputs are placed in per-debugger directory.
* Fixed spurious hash mismatch. Previously, the config mode would change
  from `DebugInfoGdbLldb` (when collecting tests) to `DebugInfoGdb` or
  `DebugInfoLldb` (when running them) which would affect hash computation.
* PYTHONPATH is additionally included in gdb hash.
* lldb-python and lldb-python-dir are additionally included in lldb hash.
src/tools/compiletest/src/main.rs