From 1ebbb1a11e4f2839134c5ea4363d9593f6fee2a2 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Mon, 10 Jan 2022 14:05:35 -0800 Subject: [PATCH] unit: add checksum/random check for test-dpp --- unit/test-dpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unit/test-dpp.c b/unit/test-dpp.c index 1d4846c7..bfe6f747 100644 --- 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(); }