Add {{target}} to header substitutions

This commit is contained in:
Lukas Wirth 2024-06-12 10:35:36 +02:00 committed by Tshepang Mbambo
parent cf49c91585
commit 93acb2dd7f
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ described below:
- `{{build-base}}`: The base directory where the test's output goes. This is - `{{build-base}}`: The base directory where the test's output goes. This is
equivalent to `$TEST_BUILD_DIR` for [output normalization]. equivalent to `$TEST_BUILD_DIR` for [output normalization].
- Example: `/path/to/rust/build/x86_64-unknown-linux-gnu/test/ui` - Example: `/path/to/rust/build/x86_64-unknown-linux-gnu/test/ui`
- `{{target}}`: The target the test is compiling for
- Example: `x86_64-unknown-linux-gnu`
See [`tests/ui/commandline-argfile.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/commandline-argfile.rs) See [`tests/ui/commandline-argfile.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/commandline-argfile.rs)
for an example of a test that uses this substitution. for an example of a test that uses this substitution.