mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
unit: Additional support checks for WSC tests
This commit is contained in:
parent
9e0d11f948
commit
973b7b4555
@ -2254,8 +2254,15 @@ int main(int argc, char *argv[])
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
l_test_add("/wsc/parse/m2 1", wsc_test_parse_m2, &m2_data_1);
|
if (!l_key_is_supported(L_KEY_FEATURE_CRYPTO)) {
|
||||||
l_test_add("/wsc/parse/m2 2", wsc_test_parse_m2, &m2_data_2);
|
printf("Key crypto not supported, skipping other tests...\n");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (l_key_is_supported(L_KEY_FEATURE_DH)) {
|
||||||
|
l_test_add("/wsc/parse/m2 1", wsc_test_parse_m2, &m2_data_1);
|
||||||
|
l_test_add("/wsc/parse/m2 2", wsc_test_parse_m2, &m2_data_2);
|
||||||
|
}
|
||||||
|
|
||||||
l_test_add("/wsc/build/m2 1", wsc_test_build_m2, &m2_data_1);
|
l_test_add("/wsc/build/m2 1", wsc_test_build_m2, &m2_data_1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user