From dc8b1406cc2e56fa61ade8acad26f521b5cb231a Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Sun, 19 Jun 2022 23:36:00 +0200 Subject: [PATCH] freertos: adjust rsa test timeouts for SMP --- components/mbedtls/test/test_rsa.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/components/mbedtls/test/test_rsa.c b/components/mbedtls/test/test_rsa.c index ef3f9c2c6f..b2d0c1844c 100644 --- a/components/mbedtls/test/test_rsa.c +++ b/components/mbedtls/test/test_rsa.c @@ -434,27 +434,42 @@ static void print_rsa_details(mbedtls_rsa_context *rsa) * The allocations made by ESP32-S2 (944 bytes) and ESP32-S3 are the same, * except for the JTAG lock (92 + 944 > 1024). */ +#if CONFIG_FREERTOS_SMP // IDF-5260 +TEST_CASE("test performance RSA key operations", "[bignum][leaks=1088][timeout=60]") +#else TEST_CASE("test performance RSA key operations", "[bignum][leaks=1088]") +#endif { for (int keysize = 2048; keysize <= SOC_RSA_MAX_BIT_LEN; keysize += 1024) { rsa_key_operations(keysize, true, false); } } +#if CONFIG_FREERTOS_SMP // IDF-5260 +TEST_CASE("test RSA-3072 calculations", "[bignum][timeout=60]") +#else TEST_CASE("test RSA-3072 calculations", "[bignum]") +#endif { // use pre-genrated keys to make the test run a bit faster rsa_key_operations(3072, false, false); } +#if CONFIG_FREERTOS_SMP // IDF-5260 +TEST_CASE("test RSA-2048 calculations", "[bignum][timeout=60]") +#else TEST_CASE("test RSA-2048 calculations", "[bignum]") +#endif { // use pre-genrated keys to make the test run a bit faster rsa_key_operations(2048, false, false); } - +#if CONFIG_FREERTOS_SMP // IDF-5260 +TEST_CASE("test RSA-4096 calculations", "[bignum][timeout=60]") +#else TEST_CASE("test RSA-4096 calculations", "[bignum]") +#endif { // use pre-genrated keys to make the test run a bit faster rsa_key_operations(4096, false, false);