cargo/tests/testsuite
bors 4e143fd131 Auto merge of #9685 - ehuss:named-profile-updates, r=alexcrichton
Named profile updates

A few updates for named profiles to push them closer to stabilization:

- Disable the `dir-name` profile setting. `dir-name` primarily exists for translating the built-in profiles or sharing artifacts between profiles. In order to simplify the UI, we would like to not expose it to the user for the initial stabilization. The code to support it is kept in case we want to add it in the future.
- Reserve some profile names. Just to give a little flexibility in the future in case we want to use these, or that they could cause confusion. Also updated the error text a little.
- Add support for custom profiles to legacy commands. Their old behavior is still retained for backwards compatibility. That is:
    * `cargo check`
        * `--profile=test`: This forces the test mode. For example, `cargo check --lib --profile=test` will check the library as a unit test (with `--test`).
    * `cargo fix`
        * `--profile=test`: Forces test mode, same as above.
    * `cargo rustc`
        * `--profile=test`: Forces test mode, same as above.
        * `--profile=bench`: Forces bench mode.
        * `--profile=check`: Forces check mode.
    - These commands also allow mixing the above options with `--release`, which is normally not allowed.
- Fix `cargo bench` to support the `--profile` option. I think it was just forgotten.
2021-07-20 21:55:45 +00:00
..
mock-std Revert "Check if rust-src contains a vendor dir, and patch it in" 2020-12-11 07:45:27 -08:00
advanced_env.rs Fixes for some test errors on Windows. 2019-12-19 09:44:02 -08:00
alt_registry.rs add default_run to SerializedPackage 2021-06-07 14:59:57 +08:00
bad_config.rs Auto merge of #9685 - ehuss:named-profile-updates, r=alexcrichton 2021-07-20 21:55:45 +00:00
bad_manifest_path.rs track_caller on custom assert functions 2021-03-03 17:17:07 +00:00
bench.rs Remove with_either_contains. 2021-06-16 09:44:29 -07:00
build.rs Combine rustc and cargo's diagnostic summaries 2021-07-06 19:46:27 -04:00
build_plan.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
build_script.rs Auto merge of #9601 - jonhoo:fix-9600, r=ehuss 2021-07-20 21:27:35 +00:00
build_script_env.rs Fix tests 2021-04-17 12:13:30 -04:00
build_script_extra_link_arg.rs Change rustc-cdylib-link-arg error to a warning. 2021-06-09 14:24:12 -07:00
cache_messages.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
cargo_alias_config.rs Implement warning for ignored trailing arguments 2021-06-09 18:50:51 +04:00
cargo_command.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
cargo_config.rs Only normalize paths on windows. 2021-06-16 10:35:26 -07:00
cargo_env_config.rs Don't allow config env to modify vars set by cargo 2021-06-12 08:48:23 -07:00
cargo_features.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
cargo_targets.rs Warn if an "all" target is specified, but we don't match anything 2021-06-09 19:29:24 +02:00
cfg.rs Fix issue with filtering exclusive target dependencies. 2021-03-11 11:41:00 -08:00
check.rs Combine rustc and cargo's diagnostic summaries 2021-07-06 19:46:27 -04:00
clean.rs Disambiguate is_symlink. 2021-06-19 11:27:14 -07:00
collisions.rs Fix collision doc tests randomly failing. 2021-04-29 10:42:42 -07:00
concurrent.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
config.rs Remove got_symlink_permission, we already have one of those. 2021-06-16 09:44:29 -07:00
config_cli.rs Revert misfeatures 2020-07-07 23:38:26 -06:00
config_include.rs Fix config includes not working. 2021-03-24 20:21:09 -07:00
corrupt_git.rs Move paths to cargo-util. 2021-03-20 17:42:41 -07:00
credential_process.rs Move paths to cargo-util. 2021-03-20 17:42:41 -07:00
cross_compile.rs Expose build.target .cargo/config setting as packages.target in Cargo.toml 2021-04-24 19:12:52 +02:00
cross_publish.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
custom_target.rs Detect changes for JSON spec targets. 2021-03-01 12:19:14 -08:00
death.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
dep_info.rs Fix dep-info files including non-local build script paths. 2021-06-17 18:28:42 -07:00
directory.rs Reworking message to not care about an intial offset 2021-07-10 15:07:29 +01:00
doc.rs Auto merge of #9531 - 5225225:cargo-doc-open-fix, r=ehuss 2021-07-01 01:14:50 +00:00
edition.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
error.rs Rework internal errors. 2020-02-17 19:03:57 -08:00
features.rs Refactor feature handling, and improve error messages. 2021-03-19 14:59:53 -07:00
features2.rs fix clippy warnings 2021-04-02 12:30:36 +02:00
features_namespaced.rs Auto merge of #9574 - ehuss:weak-namespaced, r=alexcrichton 2021-06-22 21:02:31 +00:00
fetch.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
fix.rs cargo fix --edition: extend warning when on latest edition 2021-07-15 07:26:26 -07:00
freshness.rs Include the linker in the fingerprint. 2021-07-01 20:33:48 -07:00
future_incompat_report.rs Re-enable future-incompatible tests. 2021-07-16 05:45:29 -07:00
generate_lockfile.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
git.rs add default_run to SerializedPackage 2021-06-07 14:59:57 +08:00
git_auth.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
git_gc.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
glob_targets.rs Change Fixing to Fixed, and add a verbose "Fixing". 2021-02-17 20:41:38 -08:00
help.rs Fix #9350 (cargo build -Z help is missing options) 2021-04-20 21:58:22 +00:00
init.rs change simple quotes with backticks for file names 2021-06-01 20:13:45 +03:00
install.rs Combine rustc and cargo's diagnostic summaries 2021-07-06 19:46:27 -04:00
install_upgrade.rs Add RegistryBuilder to help initializing test registries. 2021-02-02 15:48:48 -08:00
jobserver.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
list_availables.rs test: list availables for clean,tree,update 2020-10-28 02:46:20 +08:00
local_registry.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
locate_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
lockfile_compat.rs Adjust error message with offline and frozen. 2021-07-01 16:59:19 -07:00
login.rs Add RegistryBuilder to help initializing test registries. 2021-02-02 15:48:48 -08:00
logout.rs Add RegistryBuilder to help initializing test registries. 2021-02-02 15:48:48 -08:00
lto.rs testsuite: Use split debuginfo on macos. 2021-02-25 09:06:11 -08:00
main.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
member_discovery.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
member_errors.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
message_format.rs Bump to 0.54.0 2021-03-26 12:28:47 -07:00
messages.rs Add test demonstrating deduplication of errors. 2021-07-15 17:37:21 -07:00
metabuild.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
metadata.rs Fix package_default_run. 2021-06-11 16:09:32 -07:00
minimal_versions.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
multitarget.rs fix clippy warnings 2021-04-02 12:30:36 +02:00
net_config.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
new.rs Test the generated manifest does not contain authors = 2021-03-22 13:39:18 -07:00
offline.rs Adjust error message with offline and frozen. 2021-07-01 16:59:19 -07:00
old_cargos.rs Always use full metadata hash for -C metadata. 2021-04-26 20:18:53 -07:00
out_dir.rs Add split-debuginfo profile option 2021-02-01 09:21:36 -08:00
owner.rs Minor update to registry API error messages. 2021-02-27 12:38:17 -08:00
package.rs Handle git deleted files with dirty worktree. 2021-07-01 18:10:35 -07:00
package_features.rs Auto merge of #9420 - In-line:unknown-features-suggestions-in-workspace, r=ehuss 2021-06-01 15:41:27 +00:00
patch.rs Auto merge of #9639 - djmitche:issue9535, r=Eh2406 2021-07-14 19:14:22 +00:00
path.rs Reworking message to not care about an intial offset 2021-07-10 15:07:29 +01:00
paths.rs Replace deprecated [replace] references with [patch] 2021-06-02 12:30:56 +02:00
pkgid.rs teset(pkgid): suggestion for bad parsing 2021-03-02 16:18:21 +08:00
plugins.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
proc_macro.rs Stabilize -Zfeatures and -Zpackage-features. 2020-12-19 08:26:42 -08:00
profile_config.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
profile_custom.rs Support custom profiles in legacy commands. 2021-07-13 15:22:09 -07:00
profile_overrides.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
profile_targets.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
profiles.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
progress.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
pub_priv.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
publish.rs Don't export lines_match. 2021-06-16 09:44:29 -07:00
publish_lockfile.rs Update nightly failure notification. 2021-07-05 16:08:36 -07:00
read_manifest.rs add default_run to SerializedPackage 2021-06-07 14:59:57 +08:00
registry.rs Only put it on a new line if there's candidates to compare against. 2021-07-14 08:27:52 +01:00
rename_deps.rs Run rustdoc doctests relative to the workspace 2021-02-22 20:33:31 +01:00
replace.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
required_features.rs fix test suite 2021-02-21 14:37:42 -08:00
run.rs tests: Tolerate "exit status" in error messages 2021-03-26 16:18:37 +00:00
rust_version.rs Don't try to parse MSRV if feature is not enabled 2021-01-30 23:14:30 +01:00
rustc.rs Fix usage of assert methods 2021-02-21 22:58:31 -05:00
rustc_info_cache.rs Don't re-use rustc cache when RUSTC_WRAPPER changes 2021-04-16 20:08:11 +03:00
rustdoc.rs test: normalize raw string indentation. 2020-10-10 07:44:57 +08:00
rustdoc_extern_html.rs Move is_ci to cargo-util. 2021-03-20 17:42:32 -07:00
rustdocflags.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
rustflags.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
search.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
shell_quoting.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
standard_lib.rs Fix tests not working with a different CARGO_TARGET_DIR. 2020-12-16 11:19:32 -08:00
test.rs Add the path to the manifest in json output 2021-03-04 20:09:51 +02:00
timings.rs Minor testsuite organization. 2019-11-24 18:42:45 -08:00
tool_paths.rs Update Windows env uppercase key check. 2021-07-05 10:10:51 -07:00
tree.rs Use crate_name() on the library target, update tests. 2021-07-12 13:25:49 -07:00
tree_graph_features.rs Switch --invert to take the package name as an argument. 2020-04-03 19:52:21 -07:00
unit_graph.rs Add split-debuginfo profile option 2021-02-01 09:21:36 -08:00
update.rs add default_run to SerializedPackage 2021-06-07 14:59:57 +08:00
vendor.rs test(vendor): respect to Cargo.toml [package.exclude] 2021-03-01 22:06:57 +08:00
verify_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
version.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
warn_on_failure.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
weak_dep_features.rs use 'writeln' instead of appending newline character 2021-06-23 12:20:18 +01:00
workspaces.rs fix: more error context for missing dep of workspace member 2021-04-17 14:24:29 +08:00
yank.rs Minor update to registry API error messages. 2021-02-27 12:38:17 -08:00