aboutsummaryrefslogtreecommitdiff
path: root/tests/imap_features.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/imap_features.rs')
-rw-r--r--tests/imap_features.rs17
1 files changed, 17 insertions, 0 deletions
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");
+}