From 772bb2a38034490bb4357f222a1d0949ba31adf1 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 22 Dec 2020 19:57:27 +1100 Subject: [PATCH] test_utils: Remove debug code, disable ccomp internal tests for C3 --- .../components/test_utils/ccomp_timer_impl_riscv.c | 3 --- .../components/test_utils/test/ccomp_timer_test_data.c | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c b/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c index 477170f4da..bea2b6d9f9 100644 --- a/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c +++ b/tools/unit-test-app/components/test_utils/ccomp_timer_impl_riscv.c @@ -87,9 +87,6 @@ int64_t IRAM_ATTR ccomp_timer_impl_get_time(void) { update_ccount(); int64_t cycles = s_status[cpu_hal_get_core_id()].ccount; - esp_rom_printf("cycles=%lld\n", cycles); - esp_rom_printf("cpu freq=%d\r\n", esp_clk_cpu_freq()); - esp_rom_printf("duration=%lld\n", cycles * 1000000 / esp_clk_cpu_freq()); return (cycles * 1000000) / esp_clk_cpu_freq(); } diff --git a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c index 8ac93923aa..a3f0bf032f 100644 --- a/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c +++ b/tools/unit-test-app/components/test_utils/test/ccomp_timer_test_data.c @@ -23,6 +23,11 @@ #include "sdkconfig.h" + +/* No performance monitor in RISCV for now + */ +#if !DISABLED_FOR_TARGETS(ESP32C3) + static const char* TAG = "test_ccomp_timer"; #if CONFIG_IDF_TARGET_ESP32 @@ -180,3 +185,5 @@ TEST_CASE("data cache hit rate sweep", "[test_utils][ccomp_timer]") free(flash_mem); #endif } + +#endif // !DISABLED_FOR_TARGETS(ESP32C3)