From 5b942dc45ed8c5eeb9c2101b829a131ee4485226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 5 Jun 2020 09:29:51 +0200 Subject: [PATCH] Add test for dependencies on HMAC_DRBG in all.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similarly to the recently-added tests for dependencies on CTR_DRBG: constrained environments will probably want only one DRBG module, and we should make sure that tests pass in such a configuration. Signed-off-by: Manuel Pégourié-Gonnard --- tests/scripts/all.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index a2279769d..d911d493a 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -846,7 +846,23 @@ component_test_no_ctr_drbg () { msg "test: no CTR_DRBG" make test - # no SSL tests as they all depend on CTR_DRBG so far + # no ssl-opt.sh/compat.sh as they all depend on CTR_DRBG so far +} + +component_test_no_hmac_drbg () { + msg "build: Full minus HMAC_DRBG" + scripts/config.py full + scripts/config.py unset MBEDTLS_HMAC_DRBG_C + scripts/config.py unset MBEDTLS_ECDSA_DETERMINISTIC # requires HMAC_DRBG + + CC=gcc cmake -D CMAKE_BUILD_TYPE:String=Asan . + make + + msg "test: no HMAC_DRBG" + make test + + # No ssl-opt.sh/compat.sh as they never use HMAC_DRBG so far, + # so there's little value in running those lengthy tests here. } component_test_new_ecdh_context () {