From ba506bfa085064b9be3e262806d2f5f4ca522aee Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 5 Jan 2019 17:46:42 -0800 Subject: Add first set of integration tests This change introduces the first set of integration-style test for the application. Those tests may or may not connect to an actual Nitrokey device (depending on what they test). We use the nitrokey-test crate's test attribute macro to automatically dispatch tests to connected devices or skip them if a required device is not present. It also provides the means for automatically serializing tests. --- nitrocli/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nitrocli/Cargo.toml') diff --git a/nitrocli/Cargo.toml b/nitrocli/Cargo.toml index 8440460..42b3ae9 100644 --- a/nitrocli/Cargo.toml +++ b/nitrocli/Cargo.toml @@ -57,6 +57,11 @@ path = "../libc" version = "0.3" path = "../nitrokey" +[dev-dependencies.nitrokey-test] +version = "0.1.1" + +[dev-dependencies.regex] +version = "1" [replace] "base32:0.4.0" = { path = "../base32" } -- cgit v1.2.1