From 9a6bf6a5ec1f61c4eded06ff2cbec6f415a583da Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 29 Nov 2020 16:27:51 +0100 Subject: WIP smoke test --- src/garage/Cargo.toml | 4 ++++ src/garage/tests/smoke.rs | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/garage/tests/smoke.rs (limited to 'src') diff --git a/src/garage/Cargo.toml b/src/garage/Cargo.toml index cb16bcd4..4136d2b7 100644 --- a/src/garage/Cargo.toml +++ b/src/garage/Cargo.toml @@ -37,3 +37,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "rc"] futures = "0.3" futures-util = "0.3" tokio = { version = "0.2", default-features = false, features = ["rt-core", "rt-threaded", "io-driver", "net", "tcp", "time", "macros", "sync", "signal", "fs"] } + +[dev-dependencies] +assert_cmd = "0.10" +predicates = "1" diff --git a/src/garage/tests/smoke.rs b/src/garage/tests/smoke.rs new file mode 100644 index 00000000..40010a0e --- /dev/null +++ b/src/garage/tests/smoke.rs @@ -0,0 +1,8 @@ +use assert_cmd::prelude::*; // Add methods on commands +use predicates::prelude::*; // Used for writing assertions +use std::process::Command; // Run programs + +#[test] +fn smoke() -> Result<(), CargoError> { + let mut cmd = Command::cargo_bin("garage")?; +} -- cgit v1.2.3