commit 1ebbb1a11e4f2839134c5ea4363d9593f6fee2a2
parent 6ce41f621154eff0145dab41308bc145c0440f16
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 10 Jan 2022 14:05:35 -0800
unit: add checksum/random check for test-dpp
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/unit/test-dpp.c b/unit/test-dpp.c
@@ -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();
}