From 7d64de856294a21fa3da560aefbff12271fb0146 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 16 Dec 2018 15:42:33 +0000 Subject: 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. --- tests/util/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/util/mod.rs (limited to 'tests/util') 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; -- cgit v1.2.3