-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nitrokey: Use nitrokey-test for nitrokey device tests
$ cargo test --test=device > running 16 tests > test change_admin_pin_pro ... ok > test change_user_pin_pro ... ok > skipped: test config_storage ... ok > skipped: test change_user_pin_storage ... ok > test config_pro ... ok > skipped: test change_admin_pin_storage ... ok > skipped: test encrypted_volume ... ok > test get_firmware_version ... ok > test get_retry_count_pro ... ok > skipped: test get_retry_count_storage ... ok > test get_serial_number_pro ... ok > skipped: test get_serial_number_storage ... ok > skipped: test get_storage_status ... ok > skipped: test lock ... ok > test unlock_user_pin_pro ... ok > skipped: test unlock_user_pin_storage ... ok > > test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (output is a bit messed up)
- Loading branch information
Showing
3 changed files
with
31 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
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; |