aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-28 16:37:38 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-28 16:37:38 +0100
commitbf9a5c1757908a031da90a771072ba8f35826980 (patch)
tree51aad25bac883720c32bf8866175ff2c312bd044 /tests
parentccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7 (diff)
downloadaerogramme-bf9a5c1757908a031da90a771072ba8f35826980.tar.gz
aerogramme-bf9a5c1757908a031da90a771072ba8f35826980.zip
add a basic test
Diffstat (limited to 'tests')
-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");
+}