rust/tests
bors 52372f9c71 Auto merge of #105924 - TimNN:ui-remap, r=Mark-Simulacrum
Remap paths in UI tests by default

If you think this needs further discussions / something RFC-like, please let me know the best forum for that.

This PR runs UI tests with a remapped "src base" directory by default.

Why? Because some UI tests currently depend on the length of the absolute path to the `src/test/ui` directory. Remapping makes the tests independent of the absolute path.

The path to the source file (which is absolute on CI) is part of the type name of closures. `rustc` diagnostic output depends on the length of type names (long type names are truncated). So a long absolute path leads to long closure type names, which leads to truncation and changed diagnostics.

(I initially tried just disabling type name truncation, but that made some error messages stupid long (thousands of characters, IIRC)).

Additional changes:

* All boolean `compiletest` directives now support explicit `no-` versions to disable them.
* Adapt existing tests when necessary:
  * Disable remapping for individual tests that fail with it enabled (when there's no obvious alternative fix).
  * For tests that already check something remapping related switch to the new option unless we gain something significant by keeping the manual remap.

Passed Windows CI in https://github.com/rust-lang/rust/actions/runs/3933100590
2023-01-21 17:44:20 +00:00
..
assembly bump failing assembly & codegen tests from LLVM 14 to LLVM 15 2023-01-17 20:02:01 +01:00
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
codegen Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm 2023-01-19 08:04:26 +00:00
codegen-units Move /src/test to /tests 2023-01-11 09:32:08 +00:00
debuginfo Move /src/test to /tests 2023-01-11 09:32:08 +00:00
incremental Move /src/test to /tests 2023-01-11 09:32:08 +00:00
mir-opt Rollup merge of #107067 - tmiasko:custom-mir-storage-statements, r=oli-obk 2023-01-20 07:16:11 +01:00
pretty Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
run-make-fulldeps Fix run-make-fulldeps test 2023-01-16 14:46:44 +00:00
run-pass-valgrind Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc Revert "Add regression test for impl blocks in const expr" 2023-01-19 20:27:37 +01:00
rustdoc-gui Rollup merge of #107045 - notriddle:notriddle/settings-css-setting-line, r=GuillaumeGomez 2023-01-18 18:00:31 -05:00
rustdoc-js rustdoc: update search test cases 2023-01-14 12:04:12 -07:00
rustdoc-js-std rustdoc: update search test cases 2023-01-14 12:04:12 -07:00
rustdoc-json Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-ui Revert "Update newly failing UI tests" 2023-01-19 20:27:00 +01:00
ui Auto merge of #105924 - TimNN:ui-remap, r=Mark-Simulacrum 2023-01-21 17:44:20 +00:00
ui-fulldeps ui tests: Remap test base directory by default. 2023-01-16 18:33:25 +00:00
COMPILER_TESTS.md Move /src/test to /tests 2023-01-11 09:32:08 +00:00