aboutsummaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-12-16 15:42:33 +0000
committerRobin Krahl <robin.krahl@ireas.org>2018-12-16 17:04:07 +0100
commit7d64de856294a21fa3da560aefbff12271fb0146 (patch)
tree85544119d7ea8f11cac5091819e778c7afc29e49 /tests/util
parent938096dc85715915515e3749e03fdcad4cb98e1b (diff)
downloadnitrokey-rs-7d64de856294a21fa3da560aefbff12271fb0146.tar.gz
nitrokey-rs-7d64de856294a21fa3da560aefbff12271fb0146.tar.bz2
Refactor tests into the top-level tests directory
Newer Rust versions support integration tests in a top-level tests directory. This patch refactors the existing unit tests into integration tests.
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/util/mod.rs b/tests/util/mod.rs
new file mode 100644
index 0000000..257586e
--- /dev/null
+++ b/tests/util/mod.rs
@@ -0,0 +1,11 @@
+pub static ADMIN_PASSWORD: &str = "12345678";
+pub static USER_PASSWORD: &str = "123456";
+
+#[cfg(feature = "test-no-device")]
+pub type Target = nitrokey::Pro;
+
+#[cfg(feature = "test-pro")]
+pub type Target = nitrokey::Pro;
+
+#[cfg(feature = "test-storage")]
+pub type Target = nitrokey::Storage;