unit: add checksum/random check for test-dpp

This commit is contained in:
James Prestwood 2022-01-10 14:05:35 -08:00 committed by Denis Kenzior
parent 6ce41f6211
commit 1ebbb1a11e
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ int main(int argc, char *argv[])
{
l_test_init(&argc, &argv);
l_test_add("DPP test key derivation", test_key_derivation, NULL);
if (l_checksum_is_supported(L_CHECKSUM_SHA256, true) &&
l_getrandom_is_supported())
l_test_add("DPP test key derivation",
test_key_derivation, NULL);
return l_test_run();
}