rust/tests
bors ab45885dec Auto merge of #114843 - Zalathar:test-coverage-map, r=oli-obk
coverage: Explicitly test the coverage maps produced by codegen/LLVM

Our existing coverage tests verify the output of end-to-end coverage reports, but we don't have any way to test the specific mapping information (code regions and their associated counters) that are emitted by `rustc_codegen_llvm` and LLVM. That makes it harder to to be confident in changes that would modify those mappings (whether deliberately or accidentally).

This PR addresses that by adding a new `coverage-map` test suite that does the following:
- Compiles test files to LLVM IR assembly (`.ll`)
- Feeds those IR files to a custom tool (`src/tools/coverage-dump`) that extracts and decodes coverage mappings, and prints them in a more human-readable format
- Checks the output of that tool against known-good snapshots

---

I recommend excluding the last commit while reviewing the main changes, because that last commit is just ~40 test files copied over from `tests/run-coverage`, plus their blessed coverage-map snapshots and a readme file. Those snapshots aren't really intended to be checked by hand; they're mostly there to increase the chances that an unintended change to coverage maps will be observable (even if it requires relatively specific circumstances to manifest).
2023-09-05 15:30:59 +00:00
..
assembly
auxiliary
codegen Auto merge of #115273 - the8472:take-fold, r=cuviper 2023-09-02 12:40:16 +00:00
codegen-units
coverage-map Copy most of tests/run-coverage into tests/coverage-map/status-quo 2023-09-05 11:55:34 +10:00
debuginfo
incremental
mir-opt Rollup merge of #115540 - cjgillot:custom-debuginfo, r=oli-obk 2023-09-05 15:16:51 +02:00
pretty
run-coverage
run-coverage-rustdoc
run-make
run-make-fulldeps
run-pass-valgrind
rustdoc Auto merge of #115286 - saethlin:detangler, r=petrochenkov 2023-09-02 04:53:19 +00:00
rustdoc-gui Migrate GUI colors test to original CSS color format 2023-09-03 12:49:22 +02:00
rustdoc-js Correctly handle paths from foreign items 2023-09-02 23:04:37 +02:00
rustdoc-js-std
rustdoc-json
rustdoc-ui
ui Auto merge of #115553 - matthiaskrgr:rollup-c0045hz, r=matthiaskrgr 2023-09-05 05:34:18 +00:00
ui-fulldeps Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
COMPILER_TESTS.md