Skip unusable integration tests when testing a NEO

This commit is contained in:
Trevor Bentley
2017-10-31 15:40:51 +01:00
parent c939cff518
commit 7818b49e7d
2 changed files with 22 additions and 11 deletions
+10 -8
View File
@@ -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";