From 4357d059749bcf8bedca244ae27cc0effa0e55bc Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 4 Aug 2021 12:27:05 +0800 Subject: [PATCH] ci: update performance test key to db compatible format --- components/mbedtls/test/test_rsa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/mbedtls/test/test_rsa.c b/components/mbedtls/test/test_rsa.c index c10df50886..b65695147a 100644 --- a/components/mbedtls/test/test_rsa.c +++ b/components/mbedtls/test/test_rsa.c @@ -332,11 +332,11 @@ static void rsa_key_operations(int keysize, bool check_performance, bool use_bli private_perf = esp_timer_get_time() - start; if (check_performance && keysize == 2048) { - TEST_PERFORMANCE_LESS_THAN(RSA_2048KEY_PUBLIC_OP, "public operations %d us", public_perf); - TEST_PERFORMANCE_LESS_THAN(RSA_2048KEY_PRIVATE_OP, "private operations %d us", private_perf); + TEST_PERFORMANCE_LESS_THAN(RSA_2048KEY_PUBLIC_OP, "%d us", public_perf); + TEST_PERFORMANCE_LESS_THAN(RSA_2048KEY_PRIVATE_OP, "%d us", private_perf); } else if (check_performance && keysize == 4096) { - TEST_PERFORMANCE_LESS_THAN(RSA_4096KEY_PUBLIC_OP, "public operations %d us", public_perf); - TEST_PERFORMANCE_LESS_THAN(RSA_4096KEY_PRIVATE_OP, "private operations %d us", private_perf); + TEST_PERFORMANCE_LESS_THAN(RSA_4096KEY_PUBLIC_OP, "%d us", public_perf); + TEST_PERFORMANCE_LESS_THAN(RSA_4096KEY_PRIVATE_OP, "%d us", private_perf); } TEST_ASSERT_EQUAL_MEMORY_MESSAGE(orig_buf, decrypted_buf, keysize / 8, "RSA operation"); @@ -344,4 +344,4 @@ static void rsa_key_operations(int keysize, bool check_performance, bool use_bli mbedtls_rsa_free(&rsa); } -#endif // CONFIG_MBEDTLS_HARDWARE_MPI \ No newline at end of file +#endif // CONFIG_MBEDTLS_HARDWARE_MPI