Skip unusable integration tests when testing a NEO
This commit is contained in:
+10
-8
@@ -435,6 +435,16 @@ END_TEST
|
||||
START_TEST(test_pin_policy_always) {
|
||||
ykpiv_rc res;
|
||||
|
||||
{
|
||||
ykpiv_devmodel model;
|
||||
model = ykpiv_util_devicemodel(g_state);
|
||||
// Only works with YK4. NEO should skip.
|
||||
if (model != DEVTYPE_YK4) {
|
||||
fprintf(stderr, "WARNING: Not supported with Yubikey NEO. Test skipped.\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
unsigned char pp = YKPIV_PINPOLICY_ALWAYS;
|
||||
unsigned char tp = YKPIV_TOUCHPOLICY_DEFAULT;
|
||||
@@ -597,14 +607,6 @@ START_TEST(test_generate_key) {
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_read_write_mscmap) {
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_read_write_msroots) {
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_authenticate) {
|
||||
ykpiv_rc res;
|
||||
const char *default_mgm_key = "010203040506070801020304050607080102030405060708";
|
||||
|
||||
Reference in New Issue
Block a user