Ed Page
e7e8d8748a
fix(compiler): Clarify we're showing a profile name
2024-02-08 14:01:39 -06:00
Ed Page
69eb49194b
fix: Switch more notes/warnings to lowercase
...
See https://doc.crates.io/contrib/implementation/console.html#style
By fixing existing cases, we make it more likely people will copy a case
they should.
I left out multi-sentance cases because I was unsure how to handle those
r? @weighanglo
2024-02-06 19:52:12 -06:00
Ed Page
675224b3a0
test(config): Shift to config.toml
2024-01-26 13:40:46 -06:00
hi-rustin
7cbc858b71
Add some tests
2023-08-28 09:29:17 +08:00
hi-rustin
55f0163fb2
Add support for target.'cfg(..)'.linker
2023-08-28 09:28:22 +08:00
hi-rustin
6bb4050552
Fix test
...
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-08-10 23:19:35 +08:00
Chris Denton
93bcd97fc1
Match any error when failing to find executables
...
For Windows targets, Rust now uses a custom resolver to find `process::Command` programs. This has caused some error messages to change.
To allow it to be merged, some tests have been adjusted to match any error.
2021-11-17 11:09:52 +00:00
Eric Huss
0603dc0f20
Bump to 0.58.0
2021-09-10 09:47:06 -07:00
Eric Huss
652c5d9d1f
Update Windows env uppercase key check.
2021-07-05 10:10:51 -07:00
bors
0a38a2138d
Auto merge of #9647 - ehuss:fingerprint-linker, r=alexcrichton
...
Include the linker in the fingerprint.
This adds the linker from the `[target]` config table to the fingerprint. Previously, changing the value would not trigger a rebuild.
2021-07-02 15:10:51 +00:00
Eric Huss
28c3bef71a
Include the linker in the fingerprint.
2021-07-01 20:33:48 -07:00
Eric Huss
c10864a3c4
Temporarily disable windows env test.
2021-07-01 19:41:13 -07:00
Eric Huss
f344f73063
Fix test target_in_environment_contains_lower_case
2021-02-23 19:51:42 -08:00
Eric Huss
0564466f45
Combine target env tests.
2021-02-14 11:32:18 -08:00
Nick Flueckiger
4234077bc2
Re-add backticks
2021-02-14 13:15:35 +01:00
Nick Flueckiger
d3aed3585e
Update wording and use if let
2021-02-14 13:00:20 +01:00
Nick Flueckiger
86c6e42741
Fix windows test case
2021-02-14 00:20:21 +01:00
Nick Flueckiger
c86310210c
Update windows check
2021-02-13 23:20:43 +01:00
Nick Flueckiger
6af31941f3
Adapt implementation with reviewer suggestions and requested changes
2021-02-13 21:17:18 +01:00
Nick Flueckiger
6ea8abc805
Correct target
2021-02-13 12:19:00 +01:00
Nick Flueckiger
dd4b95fb9f
Lint
2021-02-13 12:14:24 +01:00
Nick Flueckiger
a7ae6352a3
Exclude test on windows
2021-02-13 11:59:38 +01:00
Nick Flueckiger
11c82a8af8
Implement uppercase env map for key case mismatch
2021-02-13 11:46:13 +01:00
Eric Huss
6f8c7d5a87
Normalize raw string indentation.
2020-09-26 17:59:58 -07:00
bors
f03698b3f9
Auto merge of #8629 - EmbarkStudios:master, r=ehuss
...
Fix bug with PathAndArg config values
This fixes an issue I noticed when trying to specify a target runner via the [`CARGO_TARGET_{triplet}_RUNNER`](https://doc.rust-lang.org/cargo/reference/config.html#targettriplerunner ) environment variable, expecting it to override the value in our `.cargo/config.toml` file, which was giving quite strange errors until I figured out that cargo was actually merging the config file's values with the environment's values.
This change adds a small hack to use and `UnmergedStringList` from `PathAndArgs` instead of just plain `StringList`, which uses the type in the deserializer to determine if `Config::get_list_or_string` should merge the values from the config file(s) with the environment as it was doing before, or else only use the environment to the exclusion of the config file(s) if the key was set in the environment.
I also added a test for this to confirm both the bug and the fix.
2020-08-18 16:52:45 +00:00
Jake Shadle
ddc7090f49
Remove debug only code
2020-08-17 19:53:16 +02:00
Jake Shadle
a9a154f783
Fix bug with PathAndArg config values
2020-08-17 19:23:49 +02:00
Eric Huss
18bc90cd0e
Show full error context on cargo run
error.
2020-08-17 08:55:37 -07:00
Eric Huss
fd258634c9
Improvements to StringList config handling.
2020-02-16 15:29:59 -08:00
Eric Huss
35b924db5a
Fix CARGO_TARGET_triple_LINKER environment variable.
2020-01-02 11:50:00 -08:00
Eric Huss
00a47302dd
Fixes for some test errors on Windows.
2019-12-19 09:44:02 -08:00
Eric Huss
381251aa1f
Config refactoring.
2019-12-19 09:44:01 -08:00
Matthias Krüger
34f2d4710b
fix a couple of typos
2019-12-11 15:31:26 +01:00
Eric Huss
83571aee56
Minor testsuite organization.
2019-11-24 18:42:45 -08:00
Dan Aloni
375a46f18b
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
2019-09-18 08:56:13 +03:00
Alex Crichton
9115b2c326
Extract support
directory to its own crate
...
Extract out all our test support code to its own standalone crate so it
can be shared between multiple test suites if necessary.
2019-09-16 11:47:09 -07:00
Dan Aloni
27da33c67d
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
2019-07-28 09:24:31 +03:00
Alex Crichton
c2354b9a11
Setup CI with Azure Pipelines
2019-07-23 09:09:41 -07:00
Eric Huss
a4e9611453
Fix some formatting for some strings.
2019-07-13 16:00:47 -07:00
Dan Aloni
87183146d9
Merge remote-tracking branch 'origin/master' into custom-profile-pr-rfc
2019-06-20 16:18:42 +03:00
Jethro Beekman
0e0d968825
Update #[test] attribute on all tests in the testsuite
...
sed -i 's/^#\[test\]/#[cargo_test]/' $(rg -l '^#\[test\]')
Manual fixes:
* proc_macro::proc_macro_doctest
2019-06-07 12:41:26 -07:00
Dan Aloni
e25f6a4255
tests: fix finished line for 'cargo test'
2019-06-07 21:47:45 +03:00
Alex Crichton
f16efff150
Run cargo fmt
2019-04-10 10:42:07 -07:00
Eric Huss
0b2b10b73c
Cleanup: Misc.
2019-03-26 19:06:08 -07:00
Eric Huss
e7124ba262
Testsuite: Make cwd()
relative to project root.
...
It's a fairly common pattern, and it seemed natural to me.
2019-03-20 16:34:56 -07:00
Alex Crichton
fecb724643
Format with cargo fmt
2018-12-08 03:19:47 -08:00
Dale Wijnand
04ddd4d0fc
Upgrade to Rust 2018
2018-12-06 20:18:35 +01:00
Dale Wijnand
dc6b5be30d
Simplify tool_paths::absolute_tools test
...
... by reusing the new [ROOT] macro.
2018-11-18 14:45:28 +00:00
Zach Lute
ad6bc8e4c4
Fixed CWD templates in tool_path tests.
2018-09-09 16:51:23 -07:00
Zach Lute
b020d3789a
Resolve merge conflicts with test string changes.
2018-09-09 16:48:57 -07:00