cargo/tests/testsuite
bors 83a1f66d11 Auto merge of #11210 - epage:publish, r=weihanglo
refactor(tests): Prepare for wait-for-publish test changes

In #11062, we are updating `cargo publish` to wait until a package is published.   The problem is a lot of our tests will block until the timeout.  In finding the tests to update, I was originally relying on test failures from the extra output when timing out.  The problem is not all tests verify the test output so they don't fail.

This tries to update the tests to make the introduction of a timeout more obvious.
- Adding `with_stderr` where it wasn't before
- Moving away from `with_stderr_contains` for publish tests

To help with that, I made the predicates on cargo commands more consistent.

I also moved descriptions of tests to be outside of the test so I can more easily document the `registry::init` calls with what we are doing.
2022-10-11 22:59:06 +00:00
..
cargo_add refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
cargo_remove Use correct version of cargo in test 2022-10-07 17:03:29 -07:00
init refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05: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 Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
alt_registry.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
artifact_dep.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
bad_config.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
bad_manifest_path.rs track_caller on custom assert functions 2021-03-03 17:17:07 +00:00
bench.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
binary_name.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build_plan.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build_script.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
build_script_env.rs when learning target information, run a little fixedpoint iteration loop 2022-09-26 13:22:43 +01:00
build_script_extra_link_arg.rs remove .masquerade_as_nightly_cargo() from build_script_extra_link_arg.rs 2022-07-14 15:05:33 -05:00
cache_messages.rs Deduplicate compiler diagnostics. 2021-07-09 16:20:46 -07:00
cargo_alias_config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
cargo_command.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
cargo_config.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
cargo_env_config.rs remove unneeded nightly flags from various tests 2022-07-14 19:55:44 -05:00
cargo_features.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05: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 fix(cargo): Add a warning on [project] table being used in a manifest 2022-09-26 10:32:48 -06:00
check_cfg.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
clean.rs Use is_symlink() method 2022-01-14 00:36:24 +03:00
collisions.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
concurrent.rs Re-enable killing_cargo_releases_the_lock on windows. 2022-08-02 12:30:42 -07:00
config.rs Dont swallow errors when checking existence of a config key 2022-09-22 10:52:39 +01:00
config_cli.rs test(config_cli): multi-occurrence cli args with paths 2022-09-16 15:32:00 +01:00
config_include.rs test(config-include): fix typo 2022-10-09 16:14:20 +08:00
corrupt_git.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
credential_process.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
cross_compile.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
cross_publish.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
custom_target.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
death.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
dep_info.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
directory.rs Update tests to use registry names 2021-07-22 00:50:30 +08:00
doc.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
edition.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
error.rs Rework internal errors. 2020-02-17 19:03:57 -08:00
features.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
features2.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
features_namespaced.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
fetch.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
fix.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
freshness.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
future_incompat_report.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
generate_lockfile.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
git.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
git_auth.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
git_gc.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
glob_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
help.rs fix panic if an alias is defined to "" 2021-12-12 13:30:31 -07:00
inheritable_workspace_fields.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
install.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
install_upgrade.rs fix(yank): Use '--version' like install 2022-04-19 16:45:13 -05:00
jobserver.rs Auto merge of #10511 - weihanglo:issue-10477, r=ehuss 2022-09-02 14:29:28 +00:00
list_availables.rs test: list availables for clean,tree,update 2020-10-28 02:46:20 +08:00
local_registry.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
locate_project.rs Remove the double-backslash escape for matching. 2021-06-16 09:44:29 -07:00
lockfile_compat.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
login.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
logout.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
lto.rs Merge branch 'master' into yerke/no-run-test-executable-path 2022-01-30 23:13:35 -08:00
main.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
member_discovery.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
member_errors.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
message_format.rs Bump to 0.54.0 2021-03-26 12:28:47 -07:00
messages.rs add short path name for executables 2022-01-31 10:37:02 -08:00
metabuild.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
metadata.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
minimal_versions.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
multitarget.rs Update tests to reflect -Zmultitarget stabilization 2022-07-17 11:02:01 +01:00
net_config.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
new.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
offline.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
old_cargos.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
out_dir.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
owner.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
package.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
package_features.rs remove unneeded nightly flags from various tests 2022-07-14 19:55:44 -05:00
patch.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
path.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
paths.rs Replace deprecated [replace] references with [patch] 2021-06-02 12:30:56 +02:00
pkgid.rs fix some typos 2022-05-08 01:07:28 +08:00
plugins.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
proc_macro.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
profile_config.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_custom.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
profile_overrides.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
profile_targets.rs fix typos found by the typos-cli crate 2022-05-10 16:47:28 -05:00
profiles.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
progress.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
pub_priv.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
publish.rs refactor(tests): Be explicit about publish stderr 2022-10-10 13:03:20 -05:00
publish_lockfile.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
read_manifest.rs Add rust_metadata to SerializedPackage 2021-10-12 14:07:19 +02:00
registry.rs Add configuration option for controlling crates.io protocol 2022-10-11 14:44:09 -05:00
rename_deps.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
replace.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
required_features.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
run.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
rust_version.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
rustc.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -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 Update rustdoc tests with -Cmetadata flag 2021-10-12 19:33:23 -07:00
rustdoc_extern_html.rs Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
rustdocflags.rs test: make tests compatible when force using argfile 2022-04-10 22:23:20 +08:00
rustflags.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
search.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
shell_quoting.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
source_replacement.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
standard_lib.rs Add requirements to cargo_test. 2022-07-30 19:36:58 -07:00
test.rs fix(test): Distinguish 'testname' from escaped arguments 2022-10-07 10:23:55 -05:00
timings.rs Move timing reports to target/cargo-timings 2022-01-30 21:43:52 -08:00
tool_paths.rs Fix test 2022-08-10 23:19:35 +08:00
tree.rs Extend pkgid syntax with @ support 2022-04-19 16:00:15 -05:00
tree_graph_features.rs Do not ignore --features when --all-features is present 2022-01-28 02:49:42 +03:00
unit_graph.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
update.rs Remove useless log deps and add more test for precise update 2022-08-21 17:16:01 +08:00
vendor.rs refactor(cli): Upgrade to clap v4 2022-09-28 13:32:14 -05:00
verify_project.rs add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
version.rs Re-enable version_works_without_rustc on windows. 2022-08-02 12:54:16 -07:00
warn_on_failure.rs Normalize raw string indentation. 2020-09-26 17:59:58 -07:00
weak_dep_features.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00
workspaces.rs refactor(testsuite): Replace [project] with [package] 2022-09-26 09:51:16 -06:00
yank.rs Implement RFC 3289: source replacement ambiguity 2022-10-07 22:30:59 -05:00