Merge branch 'test/flash_perf_thr_update_by_grafana_avg' into 'master'

ci: adjust spi_flash performance value according to more test data

See merge request espressif/esp-idf!13958
This commit is contained in:
Michael (XIAO Xufeng)
2021-06-17 05:04:40 +00:00
6 changed files with 219 additions and 101 deletions

View File

@@ -157,14 +157,9 @@ typedef void (*flash_test_func_t)(const esp_partition_t *part);
#endif // !CONFIG_IDF_TARGET_ESP32C3
#endif //CONFIG_SPIRAM
#if SOC_CCOMP_TIMER_SUPPORTED
#define TEST_FLASH_PERFORMANCE_CCOMP_GREATER_THAN(name, value, chip) \
printf("[Performance][" PERFORMANCE_STR(name) "]: %d, flash_chip: %s\n", value, chip);\
_TEST_PERFORMANCE_ASSERT(value > PERFORMANCE_CON(IDF_PERFORMANCE_MIN_, name));
#else
#define TEST_FLASH_PERFORMANCE_CCOMP_GREATER_THAN(name, value, chip) \
printf("[Performance][" PERFORMANCE_STR(name) "]: %d, flash_chip: %s\n", value, chip);
#endif //SOC_CCOMP_TIMER_SUPPORTED
//currently all the configs are the same with esp_flash_spi_device_config_t, no more information required
typedef esp_flash_spi_device_config_t flashtest_config_t;