diff --git a/tests/testsuite/cargo/help/mod.rs b/tests/testsuite/cargo/help/mod.rs new file mode 100644 index 000000000000..559377b278ac --- /dev/null +++ b/tests/testsuite/cargo/help/mod.rs @@ -0,0 +1,12 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo/help/stderr.log b/tests/testsuite/cargo/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo/help/stdout.log b/tests/testsuite/cargo/help/stdout.log new file mode 100644 index 000000000000..3ff857ccdfc8 --- /dev/null +++ b/tests/testsuite/cargo/help/stdout.log @@ -0,0 +1,38 @@ +Rust's package manager + +Usage: cargo[EXE] [+toolchain] [OPTIONS] [COMMAND] + +Options: + -V, --version Print version info and exit + --list List installed commands + --explain Run `rustc --explain CODE` + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + -q, --quiet Do not print cargo log messages + --color Coloring: auto, always, never + -C Change to DIRECTORY before doing anything + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Some common cargo commands are (see all commands with --list): + build, b Compile the current package + check, c Analyze the current package and report errors, but don't build object files + clean Remove the target directory + doc, d Build this package's and its dependencies' documentation + new Create a new cargo package + init Create a new cargo package in an existing directory + add Add dependencies to a manifest file + remove Remove dependencies from a manifest file + run, r Run a binary or example of the local package + test, t Run the tests + bench Run the benchmarks + update Update dependencies listed in Cargo.lock + search Search registry for crates + publish Package and upload this package to the registry + install Install a Rust binary. Default location is $HOME/.cargo/bin + uninstall Uninstall a Rust binary + +See 'cargo help ' for more information on a specific command. diff --git a/tests/testsuite/cargo/mod.rs b/tests/testsuite/cargo/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_add/help/mod.rs b/tests/testsuite/cargo_add/help/mod.rs new file mode 100644 index 000000000000..0962047f8efb --- /dev/null +++ b/tests/testsuite/cargo_add/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("add") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_add/help/stderr.log b/tests/testsuite/cargo_add/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_add/help/stdout.log b/tests/testsuite/cargo_add/help/stdout.log new file mode 100644 index 000000000000..1dab9fc3fb33 --- /dev/null +++ b/tests/testsuite/cargo_add/help/stdout.log @@ -0,0 +1,117 @@ +Add dependencies to a Cargo.toml manifest file + +Usage: cargo[EXE] add [OPTIONS] [@] ... + cargo[EXE] add [OPTIONS] --path ... + cargo[EXE] add [OPTIONS] --git ... + +Arguments: + [DEP_ID]... + Reference to a package to add as a dependency + + You can reference a package by: + - ``, like `cargo add serde` (latest version will be used) + - `@`, like `cargo add serde@1` or `cargo add serde@=1.0.38` + +Options: + --no-default-features + Disable the default features + + --default-features + Re-enable the default features + + -F, --features + Space or comma separated list of features to activate + + --optional + Mark the dependency as optional + + The package name will be exposed as feature of your crate. + + -v, --verbose... + Use verbose output (-vv very verbose/build.rs output) + + --no-optional + Mark the dependency as required + + The package will be removed from your features. + + --color + Coloring: auto, always, never + + --rename + Rename the dependency + + Example uses: + - Depending on multiple versions of a crate + - Depend on crates with the same name from different registries + + --manifest-path + Path to Cargo.toml + + --frozen + Require Cargo.lock and cache are up to date + + -p, --package [] + Package to modify + + --locked + Require Cargo.lock is up to date + + -q, --quiet + Do not print cargo log messages + + --dry-run + Don't actually write the manifest + + --offline + Run without accessing the network + + --config + Override a configuration value + + -Z + Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + + -h, --help + Print help (see a summary with '-h') + +Source: + --path + Filesystem path to local crate to add + + --git + Git repository location + + Without any other information, cargo will use latest commit on the main branch. + + --branch + Git branch to download the crate from + + --tag + Git tag to download the crate from + + --rev + Git reference to download the crate from + + This is the catch all, handling hashes to named references in remote repositories. + + --registry + Package registry for this dependency + +Section: + --dev + Add as development dependency + + Dev-dependencies are not used when compiling a package for building, but are used for compiling tests, examples, and benchmarks. + + These dependencies are not propagated to other packages which depend on this package. + + --build + Add as build dependency + + Build-dependencies are the only dependencies available for use by build scripts (`build.rs` files). + + --target + Add as dependency to the given target platform + +Run `cargo help add` for more detailed information. diff --git a/tests/testsuite/cargo_add/mod.rs b/tests/testsuite/cargo_add/mod.rs index ca58474d2196..1296ebd85074 100644 --- a/tests/testsuite/cargo_add/mod.rs +++ b/tests/testsuite/cargo_add/mod.rs @@ -33,6 +33,7 @@ mod git_normalized_name; mod git_registry; mod git_rev; mod git_tag; +mod help; mod infer_prerelease; mod invalid_arg; mod invalid_git_external; diff --git a/tests/testsuite/cargo_bench/help/mod.rs b/tests/testsuite/cargo_bench/help/mod.rs new file mode 100644 index 000000000000..9338664e5cb1 --- /dev/null +++ b/tests/testsuite/cargo_bench/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("bench") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_bench/help/stderr.log b/tests/testsuite/cargo_bench/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_bench/help/stdout.log b/tests/testsuite/cargo_bench/help/stdout.log new file mode 100644 index 000000000000..5a2e09bc721e --- /dev/null +++ b/tests/testsuite/cargo_bench/help/stdout.log @@ -0,0 +1,49 @@ +Execute all benchmarks of a local package + +Usage: cargo[EXE] bench [OPTIONS] [BENCHNAME] [-- [args]...] + +Arguments: + [BENCHNAME] If specified, only run benches containing this string in their names + [args]... Arguments for the bench binary + +Options: + -q, --quiet Do not print cargo log messages + --lib Benchmark only this package's library + --bin [] Benchmark only the specified binary + --bins Benchmark all binaries + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --example [] Benchmark only the specified example + --color Coloring: auto, always, never + --examples Benchmark all examples + --test [] Benchmark only the specified test target + --frozen Require Cargo.lock and cache are up to date + --tests Benchmark all tests + --bench [] Benchmark only the specified bench target + --locked Require Cargo.lock is up to date + --benches Benchmark all benches + --offline Run without accessing the network + --all-targets Benchmark all targets + --config Override a configuration value + --no-run Compile, but don't run benchmarks + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -p, --package [] Package to run benchmarks for + --workspace Benchmark all packages in the workspace + --exclude Exclude packages from the benchmark + --all Alias for --workspace (deprecated) + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Build for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --ignore-rust-version Ignore `rust-version` specification in packages + --message-format Error format + --no-fail-fast Run all benchmarks regardless of failure + --unit-graph Output build graph in JSON (unstable) + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help bench` for more detailed information. diff --git a/tests/testsuite/cargo_bench/mod.rs b/tests/testsuite/cargo_bench/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_bench/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_build/help/mod.rs b/tests/testsuite/cargo_build/help/mod.rs new file mode 100644 index 000000000000..9ca23b478b5e --- /dev/null +++ b/tests/testsuite/cargo_build/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("build") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_build/help/stderr.log b/tests/testsuite/cargo_build/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_build/help/stdout.log b/tests/testsuite/cargo_build/help/stdout.log new file mode 100644 index 000000000000..f0061de4a33f --- /dev/null +++ b/tests/testsuite/cargo_build/help/stdout.log @@ -0,0 +1,47 @@ +Compile a local package and all of its dependencies + +Usage: cargo[EXE] build [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package to build (see `cargo help pkgid`) + --workspace Build all packages in the workspace + --exclude Exclude packages from the build + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --all Alias for --workspace (deprecated) + --color Coloring: auto, always, never + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + --frozen Require Cargo.lock and cache are up to date + --lib Build only this package's library + --bin [] Build only the specified binary + --locked Require Cargo.lock is up to date + --bins Build all binaries + --offline Run without accessing the network + --config Override a configuration value + --example [] Build only the specified example + --examples Build all examples + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --test [] Build only the specified test target + --tests Build all tests + --bench [] Build only the specified bench target + --benches Build all benches + --all-targets Build all targets + -r, --release Build artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Build for the target triple + --target-dir Directory for all generated artifacts + --out-dir Copy final artifacts to this directory (unstable) + --manifest-path Path to Cargo.toml + --ignore-rust-version Ignore `rust-version` specification in packages + --message-format Error format + --build-plan Output the build plan in JSON (unstable) + --unit-graph Output build graph in JSON (unstable) + --future-incompat-report Outputs a future incompatibility report at the end of the build + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help build` for more detailed information. diff --git a/tests/testsuite/cargo_build/mod.rs b/tests/testsuite/cargo_build/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_build/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_check/help/mod.rs b/tests/testsuite/cargo_check/help/mod.rs new file mode 100644 index 000000000000..71571bc95868 --- /dev/null +++ b/tests/testsuite/cargo_check/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("check") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_check/help/stderr.log b/tests/testsuite/cargo_check/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_check/help/stdout.log b/tests/testsuite/cargo_check/help/stdout.log new file mode 100644 index 000000000000..39eda43e07b0 --- /dev/null +++ b/tests/testsuite/cargo_check/help/stdout.log @@ -0,0 +1,45 @@ +Check a local package and all of its dependencies for errors + +Usage: cargo[EXE] check [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package(s) to check + --workspace Check all packages in the workspace + --exclude Exclude packages from the check + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --all Alias for --workspace (deprecated) + --color Coloring: auto, always, never + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + --frozen Require Cargo.lock and cache are up to date + --lib Check only this package's library + --bin [] Check only the specified binary + --locked Require Cargo.lock is up to date + --bins Check all binaries + --offline Run without accessing the network + --config Override a configuration value + --example [] Check only the specified example + --examples Check all examples + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --test [] Check only the specified test target + --tests Check all tests + --bench [] Check only the specified bench target + --benches Check all benches + --all-targets Check all targets + -r, --release Check artifacts in release mode, with optimizations + --profile Check artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Check for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --ignore-rust-version Ignore `rust-version` specification in packages + --message-format Error format + --unit-graph Output build graph in JSON (unstable) + --future-incompat-report Outputs a future incompatibility report at the end of the build + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help check` for more detailed information. diff --git a/tests/testsuite/cargo_check/mod.rs b/tests/testsuite/cargo_check/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_check/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_clean/help/mod.rs b/tests/testsuite/cargo_clean/help/mod.rs new file mode 100644 index 000000000000..7225292b80f8 --- /dev/null +++ b/tests/testsuite/cargo_clean/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("clean") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_clean/help/stderr.log b/tests/testsuite/cargo_clean/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_clean/help/stdout.log b/tests/testsuite/cargo_clean/help/stdout.log new file mode 100644 index 000000000000..ca93987b157c --- /dev/null +++ b/tests/testsuite/cargo_clean/help/stdout.log @@ -0,0 +1,23 @@ +Remove artifacts that cargo has generated in the past + +Usage: cargo[EXE] clean [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package to clean artifacts for + --manifest-path Path to Cargo.toml + --target Target triple to clean output for + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --target-dir Directory for all generated artifacts + --color Coloring: auto, always, never + -r, --release Whether or not to clean release artifacts + --profile Clean artifacts of the specified profile + --doc Whether or not to clean just the documentation directory + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help clean` for more detailed information. diff --git a/tests/testsuite/cargo_clean/mod.rs b/tests/testsuite/cargo_clean/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_clean/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_config/help/mod.rs b/tests/testsuite/cargo_config/help/mod.rs new file mode 100644 index 000000000000..070238ef009c --- /dev/null +++ b/tests/testsuite/cargo_config/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("config") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_config/help/stderr.log b/tests/testsuite/cargo_config/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_config/help/stdout.log b/tests/testsuite/cargo_config/help/stdout.log new file mode 100644 index 000000000000..5b841d711edf --- /dev/null +++ b/tests/testsuite/cargo_config/help/stdout.log @@ -0,0 +1,16 @@ +Inspect configuration values + +Usage: cargo[EXE] config [OPTIONS] + +Commands: + get + +Options: + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help diff --git a/tests/testsuite/cargo_config/mod.rs b/tests/testsuite/cargo_config/mod.rs index e367f8e06457..dc0a40ed8bf0 100644 --- a/tests/testsuite/cargo_config/mod.rs +++ b/tests/testsuite/cargo_config/mod.rs @@ -5,6 +5,8 @@ use cargo_test_support::paths; use std::fs; use std::path::PathBuf; +mod help; + fn cargo_process(s: &str) -> cargo_test_support::Execs { let mut p = cargo_test_support::cargo_process(s); // Clear out some of the environment added by the default cargo_process so diff --git a/tests/testsuite/cargo_doc/help/mod.rs b/tests/testsuite/cargo_doc/help/mod.rs new file mode 100644 index 000000000000..b0fd4f3e8f2e --- /dev/null +++ b/tests/testsuite/cargo_doc/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("doc") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_doc/help/stderr.log b/tests/testsuite/cargo_doc/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_doc/help/stdout.log b/tests/testsuite/cargo_doc/help/stdout.log new file mode 100644 index 000000000000..c3909693f4bc --- /dev/null +++ b/tests/testsuite/cargo_doc/help/stdout.log @@ -0,0 +1,42 @@ +Build a package's documentation + +Usage: cargo[EXE] doc [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --open Opens the docs in a browser after the operation + -p, --package [] Package to document + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --workspace Document all packages in the workspace + --exclude Exclude packages from the build + --all Alias for --workspace (deprecated) + --color Coloring: auto, always, never + --no-deps Don't build documentation for dependencies + --document-private-items Document private items + --frozen Require Cargo.lock and cache are up to date + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --locked Require Cargo.lock is up to date + --keep-going Do not abort the build as soon as there is an error (unstable) + --offline Run without accessing the network + --config Override a configuration value + --lib Document only this package's library + --bin [] Document only the specified binary + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --bins Document all binaries + --example [] Document only the specified example + --examples Document all examples + -r, --release Build artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Build for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --message-format Error format + --ignore-rust-version Ignore `rust-version` specification in packages + --unit-graph Output build graph in JSON (unstable) + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help doc` for more detailed information. diff --git a/tests/testsuite/cargo_doc/mod.rs b/tests/testsuite/cargo_doc/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_doc/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_fetch/help/mod.rs b/tests/testsuite/cargo_fetch/help/mod.rs new file mode 100644 index 000000000000..79025bc32c11 --- /dev/null +++ b/tests/testsuite/cargo_fetch/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("fetch") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_fetch/help/stderr.log b/tests/testsuite/cargo_fetch/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_fetch/help/stdout.log b/tests/testsuite/cargo_fetch/help/stdout.log new file mode 100644 index 000000000000..1bdad88a5e0c --- /dev/null +++ b/tests/testsuite/cargo_fetch/help/stdout.log @@ -0,0 +1,18 @@ +Fetch dependencies of a package from the network + +Usage: cargo[EXE] fetch [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + --target Fetch dependencies for the target triple + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help fetch` for more detailed information. diff --git a/tests/testsuite/cargo_fetch/mod.rs b/tests/testsuite/cargo_fetch/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_fetch/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_fix/help/mod.rs b/tests/testsuite/cargo_fix/help/mod.rs new file mode 100644 index 000000000000..2c67e1556027 --- /dev/null +++ b/tests/testsuite/cargo_fix/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("fix") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_fix/help/stderr.log b/tests/testsuite/cargo_fix/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_fix/help/stdout.log b/tests/testsuite/cargo_fix/help/stdout.log new file mode 100644 index 000000000000..6a4043e4c72d --- /dev/null +++ b/tests/testsuite/cargo_fix/help/stdout.log @@ -0,0 +1,49 @@ +Automatically fix lint warnings reported by rustc + +Usage: cargo[EXE] fix [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package(s) to fix + --workspace Fix all packages in the workspace + --exclude Exclude packages from the fixes + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --all Alias for --workspace (deprecated) + --color Coloring: auto, always, never + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + --frozen Require Cargo.lock and cache are up to date + --lib Fix only this package's library + --bin [] Fix only the specified binary + --locked Require Cargo.lock is up to date + --bins Fix all binaries + --offline Run without accessing the network + --config Override a configuration value + --example [] Fix only the specified example + --examples Fix all examples + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --test [] Fix only the specified test target + --tests Fix all tests + --bench [] Fix only the specified bench target + --benches Fix all benches + --all-targets Fix all targets (default) + -r, --release Fix artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Fix for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --message-format Error format + --broken-code Fix code even if it already has compiler errors + --edition Fix in preparation for the next edition + --edition-idioms Fix warnings to migrate to the idioms of an edition + --allow-no-vcs Fix code even if a VCS was not detected + --allow-dirty Fix code even if the working directory is dirty + --allow-staged Fix code even if the working directory has staged changes + --ignore-rust-version Ignore `rust-version` specification in packages + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help fix` for more detailed information. diff --git a/tests/testsuite/cargo_fix/mod.rs b/tests/testsuite/cargo_fix/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_fix/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_generate_lockfile/help/mod.rs b/tests/testsuite/cargo_generate_lockfile/help/mod.rs new file mode 100644 index 000000000000..0408ce06b7a3 --- /dev/null +++ b/tests/testsuite/cargo_generate_lockfile/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("generate-lockfile") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_generate_lockfile/help/stderr.log b/tests/testsuite/cargo_generate_lockfile/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_generate_lockfile/help/stdout.log b/tests/testsuite/cargo_generate_lockfile/help/stdout.log new file mode 100644 index 000000000000..fb4f1de03122 --- /dev/null +++ b/tests/testsuite/cargo_generate_lockfile/help/stdout.log @@ -0,0 +1,17 @@ +Generate the lockfile for a package + +Usage: cargo[EXE] generate-lockfile [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help generate-lockfile` for more detailed information. diff --git a/tests/testsuite/cargo_generate_lockfile/mod.rs b/tests/testsuite/cargo_generate_lockfile/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_generate_lockfile/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_git_checkout/help/mod.rs b/tests/testsuite/cargo_git_checkout/help/mod.rs new file mode 100644 index 000000000000..5ff877fbb240 --- /dev/null +++ b/tests/testsuite/cargo_git_checkout/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("git-checkout") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_git_checkout/help/stderr.log b/tests/testsuite/cargo_git_checkout/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_git_checkout/help/stdout.log b/tests/testsuite/cargo_git_checkout/help/stdout.log new file mode 100644 index 000000000000..675090fd344a --- /dev/null +++ b/tests/testsuite/cargo_git_checkout/help/stdout.log @@ -0,0 +1 @@ +The `git-checkout` command has been removed. diff --git a/tests/testsuite/cargo_git_checkout/mod.rs b/tests/testsuite/cargo_git_checkout/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_git_checkout/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_help/help/mod.rs b/tests/testsuite/cargo_help/help/mod.rs new file mode 100644 index 000000000000..af445cda1396 --- /dev/null +++ b/tests/testsuite/cargo_help/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("help") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_help/help/stderr.log b/tests/testsuite/cargo_help/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_help/help/stdout.log b/tests/testsuite/cargo_help/help/stdout.log new file mode 100644 index 000000000000..24092586d400 --- /dev/null +++ b/tests/testsuite/cargo_help/help/stdout.log @@ -0,0 +1,16 @@ +Displays help for a cargo subcommand + +Usage: cargo[EXE] help [OPTIONS] [COMMAND] + +Arguments: + [COMMAND] + +Options: + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help diff --git a/tests/testsuite/cargo_help/mod.rs b/tests/testsuite/cargo_help/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_help/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_init/help/mod.rs b/tests/testsuite/cargo_init/help/mod.rs new file mode 100644 index 000000000000..7f00d347a62a --- /dev/null +++ b/tests/testsuite/cargo_init/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("init") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_init/help/stderr.log b/tests/testsuite/cargo_init/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_init/help/stdout.log b/tests/testsuite/cargo_init/help/stdout.log new file mode 100644 index 000000000000..0337c66ede2e --- /dev/null +++ b/tests/testsuite/cargo_init/help/stdout.log @@ -0,0 +1,25 @@ +Create a new cargo package in an existing directory + +Usage: cargo[EXE] init [OPTIONS] [path] + +Arguments: + [path] [default: .] + +Options: + -q, --quiet Do not print cargo log messages + --registry Registry to use + --vcs Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration. [possible values: git, hg, pijul, fossil, none] + --bin Use a binary (application) template [default] + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --lib Use a library template + --color Coloring: auto, always, never + --edition Edition to set for the crate generated [possible values: 2015, 2018, 2021] + --name Set the resulting package name, defaults to the directory name + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help init` for more detailed information. diff --git a/tests/testsuite/cargo_init/mod.rs b/tests/testsuite/cargo_init/mod.rs index 99df9d39d581..95cbb3615aca 100644 --- a/tests/testsuite/cargo_init/mod.rs +++ b/tests/testsuite/cargo_init/mod.rs @@ -18,6 +18,7 @@ mod formats_source; mod fossil_autodetect; mod git_autodetect; mod git_ignore_exists_no_conflicting_entries; +mod help; mod ignores_failure_to_format_source; mod inferred_bin_with_git; mod inferred_lib_with_git; diff --git a/tests/testsuite/cargo_install/help/mod.rs b/tests/testsuite/cargo_install/help/mod.rs new file mode 100644 index 000000000000..a2c1c724b596 --- /dev/null +++ b/tests/testsuite/cargo_install/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("install") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_install/help/stderr.log b/tests/testsuite/cargo_install/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_install/help/stdout.log b/tests/testsuite/cargo_install/help/stdout.log new file mode 100644 index 000000000000..062c10ce2cb3 --- /dev/null +++ b/tests/testsuite/cargo_install/help/stdout.log @@ -0,0 +1,47 @@ +Install a Rust binary. Default location is $HOME/.cargo/bin + +Usage: cargo[EXE] install [OPTIONS] [crate]... + +Arguments: + [crate]... + +Options: + -q, --quiet Do not print cargo log messages + --version Specify a version to install + --git Git URL to install the specified crate from + --branch Branch to use when installing from git + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --tag Tag to use when installing from git + --color Coloring: auto, always, never + --rev Specific commit to use when installing from git + --path Filesystem path to local crate to install + --frozen Require Cargo.lock and cache are up to date + --list list all installed packages and their versions + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --locked Require Cargo.lock is up to date + --keep-going Do not abort the build as soon as there is an error (unstable) + --offline Run without accessing the network + --config Override a configuration value + -f, --force Force overwriting existing crates or binaries + --no-track Do not save tracking information + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --profile Install artifacts with the specified profile + --debug Build in debug mode (with the 'dev' profile) instead of release mode + --bin [] Install only the specified binary + --bins Install all binaries + --example [] Install only the specified example + --examples Install all examples + --target Build for the target triple + --target-dir Directory for all generated artifacts + --root Directory to install packages into + --index Registry index to install from + --registry Registry to use + --ignore-rust-version Ignore `rust-version` specification in packages + --message-format Error format + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help install` for more detailed information. diff --git a/tests/testsuite/cargo_install/mod.rs b/tests/testsuite/cargo_install/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_install/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_locate_project/help/mod.rs b/tests/testsuite/cargo_locate_project/help/mod.rs new file mode 100644 index 000000000000..f6b7e8eafd2d --- /dev/null +++ b/tests/testsuite/cargo_locate_project/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("locate-project") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_locate_project/help/stderr.log b/tests/testsuite/cargo_locate_project/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_locate_project/help/stdout.log b/tests/testsuite/cargo_locate_project/help/stdout.log new file mode 100644 index 000000000000..a979dc8acae7 --- /dev/null +++ b/tests/testsuite/cargo_locate_project/help/stdout.log @@ -0,0 +1,19 @@ +Print a JSON representation of a Cargo.toml file's location + +Usage: cargo[EXE] locate-project [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + --message-format Output representation [possible values: json, plain] + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --workspace Locate Cargo.toml of the workspace root + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help locate-project` for more detailed information. diff --git a/tests/testsuite/cargo_locate_project/mod.rs b/tests/testsuite/cargo_locate_project/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_locate_project/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_login/help/mod.rs b/tests/testsuite/cargo_login/help/mod.rs new file mode 100644 index 000000000000..86b95da155cf --- /dev/null +++ b/tests/testsuite/cargo_login/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("login") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_login/help/stderr.log b/tests/testsuite/cargo_login/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_login/help/stdout.log b/tests/testsuite/cargo_login/help/stdout.log new file mode 100644 index 000000000000..5ff2488adebc --- /dev/null +++ b/tests/testsuite/cargo_login/help/stdout.log @@ -0,0 +1,23 @@ +Save an api token from the registry locally. If token is not specified, it will be read from stdin. + +Usage: cargo[EXE] login [OPTIONS] [token] + +Arguments: + [token] + +Options: + -q, --quiet Do not print cargo log messages + --registry Registry to use + --generate-keypair Generate a public/secret keypair (unstable) + --secret-key Prompt for secret key (unstable) + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --key-subject Set the key subject for this registry (unstable) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help login` for more detailed information. diff --git a/tests/testsuite/cargo_login/mod.rs b/tests/testsuite/cargo_login/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_login/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_logout/help/mod.rs b/tests/testsuite/cargo_logout/help/mod.rs new file mode 100644 index 000000000000..f895b60dd3f1 --- /dev/null +++ b/tests/testsuite/cargo_logout/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("logout") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_logout/help/stderr.log b/tests/testsuite/cargo_logout/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_logout/help/stdout.log b/tests/testsuite/cargo_logout/help/stdout.log new file mode 100644 index 000000000000..28f73961452b --- /dev/null +++ b/tests/testsuite/cargo_logout/help/stdout.log @@ -0,0 +1,17 @@ +Remove an API token from the registry locally + +Usage: cargo[EXE] logout [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --registry Registry to use + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help logout` for more detailed information. diff --git a/tests/testsuite/cargo_logout/mod.rs b/tests/testsuite/cargo_logout/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_logout/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_metadata/help/mod.rs b/tests/testsuite/cargo_metadata/help/mod.rs new file mode 100644 index 000000000000..a88c374fedba --- /dev/null +++ b/tests/testsuite/cargo_metadata/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("metadata") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_metadata/help/stderr.log b/tests/testsuite/cargo_metadata/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_metadata/help/stdout.log b/tests/testsuite/cargo_metadata/help/stdout.log new file mode 100644 index 000000000000..cc286a99911e --- /dev/null +++ b/tests/testsuite/cargo_metadata/help/stdout.log @@ -0,0 +1,23 @@ +Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format + +Usage: cargo[EXE] metadata [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --filter-platform Only include resolve dependencies matching the given target-triple + --color Coloring: auto, always, never + --no-deps Output information only about the workspace members and don't fetch dependencies + --manifest-path Path to Cargo.toml + --format-version Format version [possible values: 1] + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help metadata` for more detailed information. diff --git a/tests/testsuite/cargo_metadata/mod.rs b/tests/testsuite/cargo_metadata/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_metadata/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_new/help/mod.rs b/tests/testsuite/cargo_new/help/mod.rs new file mode 100644 index 000000000000..6a1721deb79d --- /dev/null +++ b/tests/testsuite/cargo_new/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("new") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_new/help/stderr.log b/tests/testsuite/cargo_new/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_new/help/stdout.log b/tests/testsuite/cargo_new/help/stdout.log new file mode 100644 index 000000000000..dec90c513ba2 --- /dev/null +++ b/tests/testsuite/cargo_new/help/stdout.log @@ -0,0 +1,25 @@ +Create a new cargo package at + +Usage: cargo[EXE] new [OPTIONS] + +Arguments: + + +Options: + -q, --quiet Do not print cargo log messages + --registry Registry to use + --vcs Initialize a new repository for the given version control system (git, hg, pijul, or fossil) or do not initialize any version control at all (none), overriding a global configuration. [possible values: git, hg, pijul, fossil, none] + --bin Use a binary (application) template [default] + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --lib Use a library template + --color Coloring: auto, always, never + --edition Edition to set for the crate generated [possible values: 2015, 2018, 2021] + --name Set the resulting package name, defaults to the directory name + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help new` for more detailed information. diff --git a/tests/testsuite/cargo_new/mod.rs b/tests/testsuite/cargo_new/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_new/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_owner/help/mod.rs b/tests/testsuite/cargo_owner/help/mod.rs new file mode 100644 index 000000000000..20583e5b1bca --- /dev/null +++ b/tests/testsuite/cargo_owner/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("owner") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_owner/help/stderr.log b/tests/testsuite/cargo_owner/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_owner/help/stdout.log b/tests/testsuite/cargo_owner/help/stdout.log new file mode 100644 index 000000000000..81844f88fe01 --- /dev/null +++ b/tests/testsuite/cargo_owner/help/stdout.log @@ -0,0 +1,25 @@ +Manage the owners of a crate on the registry + +Usage: cargo[EXE] owner [OPTIONS] [crate] + +Arguments: + [crate] + +Options: + -q, --quiet Do not print cargo log messages + -a, --add Name of a user or team to invite as an owner + -r, --remove Name of a user or team to remove as an owner + -l, --list List owners of a crate + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --index Registry index to modify owners for + --color Coloring: auto, always, never + --token API token to use when authenticating + --registry Registry to use + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help owner` for more detailed information. diff --git a/tests/testsuite/cargo_owner/mod.rs b/tests/testsuite/cargo_owner/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_owner/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_package/help/mod.rs b/tests/testsuite/cargo_package/help/mod.rs new file mode 100644 index 000000000000..4e2f28e4fc79 --- /dev/null +++ b/tests/testsuite/cargo_package/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("package") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_package/help/stderr.log b/tests/testsuite/cargo_package/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_package/help/stdout.log b/tests/testsuite/cargo_package/help/stdout.log new file mode 100644 index 000000000000..a19f29c86be4 --- /dev/null +++ b/tests/testsuite/cargo_package/help/stdout.log @@ -0,0 +1,31 @@ +Assemble the local package into a distributable tarball + +Usage: cargo[EXE] package [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -l, --list Print files included in a package without making one + --no-verify Don't verify the contents by building them + --no-metadata Ignore warnings about a lack of human-usable metadata + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --allow-dirty Allow dirty working directories to be packaged + --color Coloring: auto, always, never + --target Build for the target triple + --target-dir Directory for all generated artifacts + -F, --features Space or comma separated list of features to activate + --frozen Require Cargo.lock and cache are up to date + --all-features Activate all available features + --locked Require Cargo.lock is up to date + --no-default-features Do not activate the `default` feature + --offline Run without accessing the network + --config Override a configuration value + -p, --package [] Package(s) to assemble + --workspace Assemble all packages in the workspace + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --exclude Don't assemble specified packages + --manifest-path Path to Cargo.toml + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + -h, --help Print help + +Run `cargo help package` for more detailed information. diff --git a/tests/testsuite/cargo_package/mod.rs b/tests/testsuite/cargo_package/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_package/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_pkgid/help/mod.rs b/tests/testsuite/cargo_pkgid/help/mod.rs new file mode 100644 index 000000000000..6d182d116579 --- /dev/null +++ b/tests/testsuite/cargo_pkgid/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("pkgid") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_pkgid/help/stderr.log b/tests/testsuite/cargo_pkgid/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_pkgid/help/stdout.log b/tests/testsuite/cargo_pkgid/help/stdout.log new file mode 100644 index 000000000000..c06fdde779ae --- /dev/null +++ b/tests/testsuite/cargo_pkgid/help/stdout.log @@ -0,0 +1,21 @@ +Print a fully qualified package specification + +Usage: cargo[EXE] pkgid [OPTIONS] [spec] + +Arguments: + [spec] + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Argument to get the package ID specifier for + --manifest-path Path to Cargo.toml + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help pkgid` for more detailed information. diff --git a/tests/testsuite/cargo_pkgid/mod.rs b/tests/testsuite/cargo_pkgid/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_pkgid/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_publish/help/mod.rs b/tests/testsuite/cargo_publish/help/mod.rs new file mode 100644 index 000000000000..183b6aac4934 --- /dev/null +++ b/tests/testsuite/cargo_publish/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("publish") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_publish/help/stderr.log b/tests/testsuite/cargo_publish/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_publish/help/stdout.log b/tests/testsuite/cargo_publish/help/stdout.log new file mode 100644 index 000000000000..6c2212a61ebe --- /dev/null +++ b/tests/testsuite/cargo_publish/help/stdout.log @@ -0,0 +1,31 @@ +Upload a package to the registry + +Usage: cargo[EXE] publish [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --index Registry index URL to upload the package to + --token Token to use when uploading + --no-verify Don't verify the contents by building them + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --allow-dirty Allow dirty working directories to be packaged + --color Coloring: auto, always, never + --target Build for the target triple + --target-dir Directory for all generated artifacts + --frozen Require Cargo.lock and cache are up to date + -p, --package [] Package to publish + --locked Require Cargo.lock is up to date + --manifest-path Path to Cargo.toml + -F, --features Space or comma separated list of features to activate + --offline Run without accessing the network + --all-features Activate all available features + --config Override a configuration value + --no-default-features Do not activate the `default` feature + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + --dry-run Perform all checks without uploading + --registry Registry to publish to + -h, --help Print help + +Run `cargo help publish` for more detailed information. diff --git a/tests/testsuite/cargo_publish/mod.rs b/tests/testsuite/cargo_publish/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_publish/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_read_manifest/help/mod.rs b/tests/testsuite/cargo_read_manifest/help/mod.rs new file mode 100644 index 000000000000..d0055f6d8d20 --- /dev/null +++ b/tests/testsuite/cargo_read_manifest/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("read-manifest") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_read_manifest/help/stderr.log b/tests/testsuite/cargo_read_manifest/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_read_manifest/help/stdout.log b/tests/testsuite/cargo_read_manifest/help/stdout.log new file mode 100644 index 000000000000..01ae80f4b9a6 --- /dev/null +++ b/tests/testsuite/cargo_read_manifest/help/stdout.log @@ -0,0 +1,17 @@ +Print a JSON representation of a Cargo.toml manifest. + +Deprecated, use `cargo metadata --no-deps` instead. + +Usage: cargo[EXE] read-manifest [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help diff --git a/tests/testsuite/cargo_read_manifest/mod.rs b/tests/testsuite/cargo_read_manifest/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_read_manifest/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_remove/help/mod.rs b/tests/testsuite/cargo_remove/help/mod.rs new file mode 100644 index 000000000000..69fb60f038e3 --- /dev/null +++ b/tests/testsuite/cargo_remove/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("remove") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_remove/help/stderr.log b/tests/testsuite/cargo_remove/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_remove/help/stdout.log b/tests/testsuite/cargo_remove/help/stdout.log new file mode 100644 index 000000000000..9f25b944fdeb --- /dev/null +++ b/tests/testsuite/cargo_remove/help/stdout.log @@ -0,0 +1,25 @@ +Remove dependencies from a Cargo.toml manifest file + +Usage: cargo[EXE] remove [OPTIONS] ... + +Arguments: + ... Dependencies to be removed + +Options: + -p, --package [] Package to remove from + --manifest-path Path to Cargo.toml + -q, --quiet Do not print cargo log messages + --dry-run Don't actually write the manifest + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Section: + --dev Remove as development dependency + --build Remove as build dependency + --target Remove as dependency from the given target platform diff --git a/tests/testsuite/cargo_remove/mod.rs b/tests/testsuite/cargo_remove/mod.rs index fd8b4a233194..1870597d4f58 100644 --- a/tests/testsuite/cargo_remove/mod.rs +++ b/tests/testsuite/cargo_remove/mod.rs @@ -5,6 +5,7 @@ mod dry_run; mod gc_patch; mod gc_profile; mod gc_replace; +mod help; mod invalid_arg; mod invalid_dep; mod invalid_package; diff --git a/tests/testsuite/cargo_report/help/mod.rs b/tests/testsuite/cargo_report/help/mod.rs new file mode 100644 index 000000000000..3d29757694ba --- /dev/null +++ b/tests/testsuite/cargo_report/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("report") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_report/help/stderr.log b/tests/testsuite/cargo_report/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_report/help/stdout.log b/tests/testsuite/cargo_report/help/stdout.log new file mode 100644 index 000000000000..282a08cd298f --- /dev/null +++ b/tests/testsuite/cargo_report/help/stdout.log @@ -0,0 +1,18 @@ +Generate and display various kinds of reports + +Usage: cargo[EXE] report [OPTIONS] + +Commands: + future-incompatibilities Reports any crates which will eventually stop compiling + +Options: + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help report` for more detailed information. diff --git a/tests/testsuite/cargo_report/mod.rs b/tests/testsuite/cargo_report/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_report/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_run/help/mod.rs b/tests/testsuite/cargo_run/help/mod.rs new file mode 100644 index 000000000000..0a8a6bde076e --- /dev/null +++ b/tests/testsuite/cargo_run/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("run") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_run/help/stderr.log b/tests/testsuite/cargo_run/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_run/help/stdout.log b/tests/testsuite/cargo_run/help/stdout.log new file mode 100644 index 000000000000..785a5c62d92a --- /dev/null +++ b/tests/testsuite/cargo_run/help/stdout.log @@ -0,0 +1,36 @@ +Run a binary or example of the local package + +Usage: cargo[EXE] run [OPTIONS] [args]... + +Arguments: + [args]... Arguments for the binary or example to run + +Options: + -q, --quiet Do not print cargo log messages + --bin [] Name of the bin target to run + --example [] Name of the example target to run + -p, --package [] Package with the target to run + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --color Coloring: auto, always, never + --keep-going Do not abort the build as soon as there is an error (unstable) + -r, --release Build artifacts in release mode, with optimizations + --frozen Require Cargo.lock and cache are up to date + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --locked Require Cargo.lock is up to date + --all-features Activate all available features + --offline Run without accessing the network + --config Override a configuration value + --no-default-features Do not activate the `default` feature + --target Build for the target triple + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --message-format Error format + --unit-graph Output build graph in JSON (unstable) + --ignore-rust-version Ignore `rust-version` specification in packages + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help run` for more detailed information. diff --git a/tests/testsuite/cargo_run/mod.rs b/tests/testsuite/cargo_run/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_run/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_rustc/help/mod.rs b/tests/testsuite/cargo_rustc/help/mod.rs new file mode 100644 index 000000000000..0a3b3168642f --- /dev/null +++ b/tests/testsuite/cargo_rustc/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("rustc") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_rustc/help/stderr.log b/tests/testsuite/cargo_rustc/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_rustc/help/stdout.log b/tests/testsuite/cargo_rustc/help/stdout.log new file mode 100644 index 000000000000..88cfecf03e6f --- /dev/null +++ b/tests/testsuite/cargo_rustc/help/stdout.log @@ -0,0 +1,47 @@ +Compile a package, and pass extra options to the compiler + +Usage: cargo[EXE] rustc [OPTIONS] [args]... + +Arguments: + [args]... Extra rustc flags + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package to build + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --lib Build only this package's library + --bin [] Build only the specified binary + --color Coloring: auto, always, never + --bins Build all binaries + --example [] Build only the specified example + --frozen Require Cargo.lock and cache are up to date + --examples Build all examples + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --test [] Build only the specified test target + --config Override a configuration value + --tests Build all tests + --bench [] Build only the specified bench target + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --benches Build all benches + --all-targets Build all targets + -r, --release Build artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Target triple which compiles will be for + --print Output compiler information without compiling + --crate-type Comma separated list of types of crates for the compiler to emit + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --message-format Error format + --unit-graph Output build graph in JSON (unstable) + --ignore-rust-version Ignore `rust-version` specification in packages + --future-incompat-report Outputs a future incompatibility report at the end of the build + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help rustc` for more detailed information. diff --git a/tests/testsuite/cargo_rustc/mod.rs b/tests/testsuite/cargo_rustc/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_rustc/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_rustdoc/help/mod.rs b/tests/testsuite/cargo_rustdoc/help/mod.rs new file mode 100644 index 000000000000..88652749f9cb --- /dev/null +++ b/tests/testsuite/cargo_rustdoc/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("rustdoc") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_rustdoc/help/stderr.log b/tests/testsuite/cargo_rustdoc/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_rustdoc/help/stdout.log b/tests/testsuite/cargo_rustdoc/help/stdout.log new file mode 100644 index 000000000000..910823fbcbf1 --- /dev/null +++ b/tests/testsuite/cargo_rustdoc/help/stdout.log @@ -0,0 +1,45 @@ +Build a package's documentation, using specified custom flags. + +Usage: cargo[EXE] rustdoc [OPTIONS] [args]... + +Arguments: + [args]... Extra rustdoc flags + +Options: + -q, --quiet Do not print cargo log messages + --open Opens the docs in a browser after the operation + -p, --package [] Package to document + -j, --jobs Number of parallel jobs, defaults to # of CPUs + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --keep-going Do not abort the build as soon as there is an error (unstable) + --color Coloring: auto, always, never + --lib Build only this package's library + --bin [] Build only the specified binary + --bins Build all binaries + --frozen Require Cargo.lock and cache are up to date + --example [] Build only the specified example + --locked Require Cargo.lock is up to date + --examples Build all examples + --offline Run without accessing the network + --config Override a configuration value + --test [] Build only the specified test target + --tests Build all tests + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --bench [] Build only the specified bench target + --benches Build all benches + --all-targets Build all targets + -r, --release Build artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Build for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --message-format Error format + --unit-graph Output build graph in JSON (unstable) + --ignore-rust-version Ignore `rust-version` specification in packages + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help rustdoc` for more detailed information. diff --git a/tests/testsuite/cargo_rustdoc/mod.rs b/tests/testsuite/cargo_rustdoc/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_rustdoc/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_search/help/mod.rs b/tests/testsuite/cargo_search/help/mod.rs new file mode 100644 index 000000000000..b580816e722d --- /dev/null +++ b/tests/testsuite/cargo_search/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("search") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_search/help/stderr.log b/tests/testsuite/cargo_search/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_search/help/stdout.log b/tests/testsuite/cargo_search/help/stdout.log new file mode 100644 index 000000000000..16699b69edb5 --- /dev/null +++ b/tests/testsuite/cargo_search/help/stdout.log @@ -0,0 +1,22 @@ +Search packages in crates.io + +Usage: cargo[EXE] search [OPTIONS] [query]... + +Arguments: + [query]... + +Options: + -q, --quiet Do not print cargo log messages + --index Registry index URL to upload the package to + --limit Limit the number of results (default: 10, max: 100) + --registry Registry to use + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help search` for more detailed information. diff --git a/tests/testsuite/cargo_search/mod.rs b/tests/testsuite/cargo_search/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_search/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_test/help/mod.rs b/tests/testsuite/cargo_test/help/mod.rs new file mode 100644 index 000000000000..ae5b092b774f --- /dev/null +++ b/tests/testsuite/cargo_test/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("test") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_test/help/stderr.log b/tests/testsuite/cargo_test/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_test/help/stdout.log b/tests/testsuite/cargo_test/help/stdout.log new file mode 100644 index 000000000000..87aa4729b878 --- /dev/null +++ b/tests/testsuite/cargo_test/help/stdout.log @@ -0,0 +1,53 @@ +Execute all unit and integration tests and build examples of a local package + +Usage: cargo[EXE] test [OPTIONS] [TESTNAME] [-- [args]...] + +Arguments: + [TESTNAME] If specified, only run tests containing this string in their names + [args]... Arguments for the test binary + +Options: + -q, --quiet Display one character per test instead of one line + --lib Test only this package's library unit tests + --bin [] Test only the specified binary + --bins Test all binaries + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --example [] Test only the specified example + --color Coloring: auto, always, never + --examples Test all examples + --test [] Test only the specified test target + --frozen Require Cargo.lock and cache are up to date + --tests Test all tests + --bench [] Test only the specified bench target + --locked Require Cargo.lock is up to date + --benches Test all benches + --offline Run without accessing the network + --all-targets Test all targets + --config Override a configuration value + --doc Test only this library's documentation + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + --no-run Compile, but don't run tests + --no-fail-fast Run all tests regardless of failure + -p, --package [] Package to run tests for + --workspace Test all packages in the workspace + --exclude Exclude packages from the test + --all Alias for --workspace (deprecated) + -j, --jobs Number of parallel jobs, defaults to # of CPUs + --keep-going Do not abort the build as soon as there is an error (unstable) + -r, --release Build artifacts in release mode, with optimizations + --profile Build artifacts with the specified profile + -F, --features Space or comma separated list of features to activate + --all-features Activate all available features + --no-default-features Do not activate the `default` feature + --target Build for the target triple + --target-dir Directory for all generated artifacts + --manifest-path Path to Cargo.toml + --ignore-rust-version Ignore `rust-version` specification in packages + --message-format Error format + --unit-graph Output build graph in JSON (unstable) + --future-incompat-report Outputs a future incompatibility report at the end of the build + --timings[=] Timing output formats (unstable) (comma separated): html, json + -h, --help Print help + +Run `cargo help test` for more detailed information. +Run `cargo test -- --help` for test binary options. diff --git a/tests/testsuite/cargo_test/mod.rs b/tests/testsuite/cargo_test/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_test/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_tree/help/mod.rs b/tests/testsuite/cargo_tree/help/mod.rs new file mode 100644 index 000000000000..269ac2cdc31b --- /dev/null +++ b/tests/testsuite/cargo_tree/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("tree") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_tree/help/stderr.log b/tests/testsuite/cargo_tree/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_tree/help/stdout.log b/tests/testsuite/cargo_tree/help/stdout.log new file mode 100644 index 000000000000..376d122e7694 --- /dev/null +++ b/tests/testsuite/cargo_tree/help/stdout.log @@ -0,0 +1,33 @@ +Display a tree visualization of a dependency graph + +Usage: cargo[EXE] tree [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + -p, --package [] Package to be used as the root of the tree + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --workspace Display the tree for all packages in the workspace + --exclude Exclude specific workspace members + --color Coloring: auto, always, never + -F, --features Space or comma separated list of features to activate + --frozen Require Cargo.lock and cache are up to date + --all-features Activate all available features + --locked Require Cargo.lock is up to date + --no-default-features Do not activate the `default` feature + --offline Run without accessing the network + --config Override a configuration value + --target Filter dependencies matching the given target-triple (default host platform). Pass `all` to include all targets. + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -e, --edges The kinds of dependencies to display (features, normal, build, dev, all, no-normal, no-build, no-dev, no-proc-macro) + -i, --invert [] Invert the tree direction and focus on the given package + --prune Prune the given package from the display of the dependency tree + --depth Maximum display depth of the dependency tree + --prefix Change the prefix (indentation) of how each entry is displayed [default: indent] [possible values: depth, indent, none] + --no-dedupe Do not de-duplicate (repeats all shared dependencies) + -d, --duplicates Show only dependencies which come in multiple versions (implies -i) + --charset Character set to use in output [default: utf8] [possible values: utf8, ascii] + -f, --format Format string used for printing dependencies [default: {p}] + -h, --help Print help + +Run `cargo help tree` for more detailed information. diff --git a/tests/testsuite/cargo_tree/mod.rs b/tests/testsuite/cargo_tree/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_tree/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_uninstall/help/mod.rs b/tests/testsuite/cargo_uninstall/help/mod.rs new file mode 100644 index 000000000000..60c4faed0c82 --- /dev/null +++ b/tests/testsuite/cargo_uninstall/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("uninstall") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_uninstall/help/stderr.log b/tests/testsuite/cargo_uninstall/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_uninstall/help/stdout.log b/tests/testsuite/cargo_uninstall/help/stdout.log new file mode 100644 index 000000000000..fe969b66fbd2 --- /dev/null +++ b/tests/testsuite/cargo_uninstall/help/stdout.log @@ -0,0 +1,22 @@ +Remove a Rust binary + +Usage: cargo[EXE] uninstall [OPTIONS] [spec]... + +Arguments: + [spec]... + +Options: + -q, --quiet Do not print cargo log messages + -p, --package [] Package to uninstall + --bin Only uninstall the binary NAME + --root Directory to uninstall packages from + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help uninstall` for more detailed information. diff --git a/tests/testsuite/cargo_uninstall/mod.rs b/tests/testsuite/cargo_uninstall/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_uninstall/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_update/help/mod.rs b/tests/testsuite/cargo_update/help/mod.rs new file mode 100644 index 000000000000..ae310977c451 --- /dev/null +++ b/tests/testsuite/cargo_update/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("update") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_update/help/stderr.log b/tests/testsuite/cargo_update/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_update/help/stdout.log b/tests/testsuite/cargo_update/help/stdout.log new file mode 100644 index 000000000000..3c44549deec5 --- /dev/null +++ b/tests/testsuite/cargo_update/help/stdout.log @@ -0,0 +1,22 @@ +Update dependencies as recorded in the local lock file + +Usage: cargo[EXE] update [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -w, --workspace Only update the workspace packages + -p, --package [] Package to update + --aggressive Force updating all dependencies of SPEC as well when used with -p + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --dry-run Don't actually write the lockfile + --color Coloring: auto, always, never + --precise Update a single dependency to exactly PRECISE when used with -p + --manifest-path Path to Cargo.toml + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help update` for more detailed information. diff --git a/tests/testsuite/cargo_update/mod.rs b/tests/testsuite/cargo_update/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_update/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_vendor/help/mod.rs b/tests/testsuite/cargo_vendor/help/mod.rs new file mode 100644 index 000000000000..c111b99c0f75 --- /dev/null +++ b/tests/testsuite/cargo_vendor/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("vendor") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_vendor/help/stderr.log b/tests/testsuite/cargo_vendor/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_vendor/help/stdout.log b/tests/testsuite/cargo_vendor/help/stdout.log new file mode 100644 index 000000000000..975767ff1e4e --- /dev/null +++ b/tests/testsuite/cargo_vendor/help/stdout.log @@ -0,0 +1,24 @@ +Vendor all dependencies for a project locally + +Usage: cargo[EXE] vendor [OPTIONS] [path] + +Arguments: + [path] Where to vendor crates (`vendor` by default) + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + --no-delete Don't delete older crates in the vendor directory + -s, --sync Additional `Cargo.toml` to sync and vendor + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --respect-source-config Respect `[source]` config in `.cargo/config` + --color Coloring: auto, always, never + --versioned-dirs Always include version in subdir name + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help vendor` for more detailed information. diff --git a/tests/testsuite/cargo_vendor/mod.rs b/tests/testsuite/cargo_vendor/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_vendor/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_verify_project/help/mod.rs b/tests/testsuite/cargo_verify_project/help/mod.rs new file mode 100644 index 000000000000..8f6c9bab1414 --- /dev/null +++ b/tests/testsuite/cargo_verify_project/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("verify-project") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_verify_project/help/stderr.log b/tests/testsuite/cargo_verify_project/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_verify_project/help/stdout.log b/tests/testsuite/cargo_verify_project/help/stdout.log new file mode 100644 index 000000000000..e10f99803700 --- /dev/null +++ b/tests/testsuite/cargo_verify_project/help/stdout.log @@ -0,0 +1,17 @@ +Check correctness of crate manifest + +Usage: cargo[EXE] verify-project [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + --manifest-path Path to Cargo.toml + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help verify-project` for more detailed information. diff --git a/tests/testsuite/cargo_verify_project/mod.rs b/tests/testsuite/cargo_verify_project/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_verify_project/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_version/help/mod.rs b/tests/testsuite/cargo_version/help/mod.rs new file mode 100644 index 000000000000..daa8548c67da --- /dev/null +++ b/tests/testsuite/cargo_version/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("version") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_version/help/stderr.log b/tests/testsuite/cargo_version/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_version/help/stdout.log b/tests/testsuite/cargo_version/help/stdout.log new file mode 100644 index 000000000000..29fce1dd3697 --- /dev/null +++ b/tests/testsuite/cargo_version/help/stdout.log @@ -0,0 +1,16 @@ +Show version information + +Usage: cargo[EXE] version [OPTIONS] + +Options: + -q, --quiet Do not print cargo log messages + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --color Coloring: auto, always, never + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help version` for more detailed information. diff --git a/tests/testsuite/cargo_version/mod.rs b/tests/testsuite/cargo_version/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_version/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/cargo_yank/help/mod.rs b/tests/testsuite/cargo_yank/help/mod.rs new file mode 100644 index 000000000000..12034f1524f6 --- /dev/null +++ b/tests/testsuite/cargo_yank/help/mod.rs @@ -0,0 +1,13 @@ +use cargo_test_support::curr_dir; +use cargo_test_support::prelude::*; + +#[cargo_test] +fn case() { + snapbox::cmd::Command::cargo_ui() + .arg("yank") + .arg("--help") + .assert() + .success() + .stdout_matches_path(curr_dir!().join("stdout.log")) + .stderr_matches_path(curr_dir!().join("stderr.log")); +} diff --git a/tests/testsuite/cargo_yank/help/stderr.log b/tests/testsuite/cargo_yank/help/stderr.log new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/testsuite/cargo_yank/help/stdout.log b/tests/testsuite/cargo_yank/help/stdout.log new file mode 100644 index 000000000000..1706cd76ec93 --- /dev/null +++ b/tests/testsuite/cargo_yank/help/stdout.log @@ -0,0 +1,24 @@ +Remove a pushed crate from the index + +Usage: cargo[EXE] yank [OPTIONS] [crate] + +Arguments: + [crate] + +Options: + -q, --quiet Do not print cargo log messages + --version The version to yank or un-yank + --undo Undo a yank, putting a version back into the index + --index Registry index to yank from + -v, --verbose... Use verbose output (-vv very verbose/build.rs output) + --token API token to use when authenticating + --color Coloring: auto, always, never + --registry Registry to use + --frozen Require Cargo.lock and cache are up to date + --locked Require Cargo.lock is up to date + --offline Run without accessing the network + --config Override a configuration value + -Z Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details + -h, --help Print help + +Run `cargo help yank` for more detailed information. diff --git a/tests/testsuite/cargo_yank/mod.rs b/tests/testsuite/cargo_yank/mod.rs new file mode 100644 index 000000000000..c0ce11180711 --- /dev/null +++ b/tests/testsuite/cargo_yank/mod.rs @@ -0,0 +1 @@ +mod help; diff --git a/tests/testsuite/main.rs b/tests/testsuite/main.rs index 28b0c328bf90..ffff81f70662 100644 --- a/tests/testsuite/main.rs +++ b/tests/testsuite/main.rs @@ -18,15 +18,50 @@ mod build_script; mod build_script_env; mod build_script_extra_link_arg; mod cache_messages; +mod cargo; mod cargo_add; mod cargo_alias_config; +mod cargo_bench; +mod cargo_build; +mod cargo_check; +mod cargo_clean; mod cargo_command; mod cargo_config; +mod cargo_doc; mod cargo_env_config; mod cargo_features; +mod cargo_fetch; +mod cargo_fix; +mod cargo_generate_lockfile; +mod cargo_git_checkout; +mod cargo_help; mod cargo_init; +mod cargo_install; +mod cargo_locate_project; +mod cargo_login; +mod cargo_logout; +mod cargo_metadata; +mod cargo_new; +mod cargo_owner; +mod cargo_package; +mod cargo_pkgid; +mod cargo_publish; +mod cargo_read_manifest; mod cargo_remove; +mod cargo_report; +mod cargo_run; +mod cargo_rustc; +mod cargo_rustdoc; +mod cargo_search; mod cargo_targets; +mod cargo_test; +mod cargo_tree; +mod cargo_uninstall; +mod cargo_update; +mod cargo_vendor; +mod cargo_verify_project; +mod cargo_version; +mod cargo_yank; mod cfg; mod check; mod check_cfg;