diff --git a/Cargo.lock b/Cargo.lock index 9298509..73fa2e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -299,6 +299,7 @@ name = "filegen" version = "0.4.0" dependencies = [ "anyhow", + "assert_cmd", "async-recursion", "bytesize", "env_logger", @@ -792,6 +793,7 @@ name = "rcp" version = "0.4.0" dependencies = [ "anyhow", + "assert_cmd", "bytesize", "common", "env_logger", @@ -837,6 +839,7 @@ name = "rlink" version = "0.4.0" dependencies = [ "anyhow", + "assert_cmd", "bytesize", "common", "env_logger", @@ -850,6 +853,7 @@ name = "rrm" version = "0.4.0" dependencies = [ "anyhow", + "assert_cmd", "async-recursion", "common", "env_logger", @@ -1022,13 +1026,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "tests" -version = "0.4.0" -dependencies = [ - "assert_cmd", -] - [[package]] name = "textwrap" version = "0.11.0" diff --git a/Cargo.toml b/Cargo.toml index 12fe879..67513d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,6 @@ members = [ "rcp", "rlink", "rrm", - "tests", ] [profile.dev] diff --git a/filegen/Cargo.toml b/filegen/Cargo.toml index 02e2bf8..a2cb2f9 100644 --- a/filegen/Cargo.toml +++ b/filegen/Cargo.toml @@ -3,6 +3,9 @@ name = "filegen" version = "0.4.0" edition = "2021" +[dev-dependencies] +assert_cmd = "2" + [dependencies] anyhow = "1.0" async-recursion = "1.0" diff --git a/filegen/tests/tests.rs b/filegen/tests/tests.rs new file mode 100644 index 0000000..2a1ca33 --- /dev/null +++ b/filegen/tests/tests.rs @@ -0,0 +1,5 @@ +#[test] +fn check_filegen_help() { + let mut cmd = assert_cmd::Command::cargo_bin("filegen").unwrap(); + cmd.arg("--help").assert(); +} diff --git a/rcp/Cargo.toml b/rcp/Cargo.toml index 20669ba..ea4d4b0 100644 --- a/rcp/Cargo.toml +++ b/rcp/Cargo.toml @@ -3,6 +3,9 @@ name = "rcp" version = "0.4.0" edition = "2021" +[dev-dependencies] +assert_cmd = "2" + [dependencies] anyhow = "1.0" bytesize = "1.3" diff --git a/rcp/tests/tests.rs b/rcp/tests/tests.rs new file mode 100644 index 0000000..acc621a --- /dev/null +++ b/rcp/tests/tests.rs @@ -0,0 +1,5 @@ +#[test] +fn check_rcp_help() { + let mut cmd = assert_cmd::Command::cargo_bin("rcp").unwrap(); + cmd.arg("--help").assert(); +} diff --git a/rlink/Cargo.toml b/rlink/Cargo.toml index 91c06da..d34aad5 100644 --- a/rlink/Cargo.toml +++ b/rlink/Cargo.toml @@ -3,6 +3,9 @@ name = "rlink" version = "0.4.0" edition = "2021" +[dev-dependencies] +assert_cmd = "2" + [dependencies] anyhow = "1.0" bytesize = "1.3" diff --git a/rlink/tests/tests.rs b/rlink/tests/tests.rs new file mode 100644 index 0000000..0a9fb56 --- /dev/null +++ b/rlink/tests/tests.rs @@ -0,0 +1,5 @@ +#[test] +fn check_rlink_help() { + let mut cmd = assert_cmd::Command::cargo_bin("rlink").unwrap(); + cmd.arg("--help").assert(); +} diff --git a/rrm/Cargo.toml b/rrm/Cargo.toml index d1b7f5a..7e3ee80 100644 --- a/rrm/Cargo.toml +++ b/rrm/Cargo.toml @@ -3,7 +3,8 @@ name = "rrm" version = "0.4.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[dev-dependencies] +assert_cmd = "2" [dependencies] anyhow = "1.0" diff --git a/rrm/tests/tests.rs b/rrm/tests/tests.rs new file mode 100644 index 0000000..8b5829f --- /dev/null +++ b/rrm/tests/tests.rs @@ -0,0 +1,5 @@ +#[test] +fn check_rrm_help() { + let mut cmd = assert_cmd::Command::cargo_bin("rrm").unwrap(); + cmd.arg("--help").assert(); +} diff --git a/tests/Cargo.toml b/tests/Cargo.toml deleted file mode 100644 index 8a9f339..0000000 --- a/tests/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[package] -name = "tests" -version = "0.4.0" -edition = "2021" - -[dev-dependencies] -assert_cmd = "2" - -[[test]] -name = "tests" -path = "tests.rs" \ No newline at end of file diff --git a/tests/tests.rs b/tests/tests.rs deleted file mode 100644 index fbdfd26..0000000 --- a/tests/tests.rs +++ /dev/null @@ -1,23 +0,0 @@ -#[test] -fn check_filegen_help() { - let mut cmd = assert_cmd::Command::cargo_bin("filegen").unwrap(); - cmd.arg("--help").assert(); -} - -#[test] -fn check_rcp_help() { - let mut cmd = assert_cmd::Command::cargo_bin("rcp").unwrap(); - cmd.arg("--help").assert(); -} - -#[test] -fn check_rlink_help() { - let mut cmd = assert_cmd::Command::cargo_bin("rlink").unwrap(); - cmd.arg("--help").assert(); -} - -#[test] -fn check_rrm_help() { - let mut cmd = assert_cmd::Command::cargo_bin("rrm").unwrap(); - cmd.arg("--help").assert(); -}