From bf9a5c1757908a031da90a771072ba8f35826980 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 28 Dec 2023 16:37:38 +0100 Subject: add a basic test --- tests/imap_features.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/imap_features.rs (limited to 'tests') diff --git a/tests/imap_features.rs b/tests/imap_features.rs new file mode 100644 index 0000000..3333b03 --- /dev/null +++ b/tests/imap_features.rs @@ -0,0 +1,17 @@ +use std::process::Command; +use std::{thread, time}; + +static ONE_SEC: time::Duration = time::Duration::from_secs(1); + +fn main() { + let mut daemon = Command::new(env!("CARGO_BIN_EXE_aerogramme")) + .arg("--dev") + .arg("provider") + .arg("daemon") + .spawn() + .expect("daemon should be started"); + + thread::sleep(ONE_SEC); + + daemon.kill().expect("daemon should be killed"); +} -- cgit v1.2.3