freertos: Add Amazon SMP FreeRTOS unit test configuration

This commit is contained in:
Darian Leung 2022-11-10 15:58:20 +08:00
parent 8fe79ae0cd
commit 5e5a40f7ac
3 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#include "test_utils.h"
#if !CONFIG_FREERTOS_SMP // Known issue in Amazon SMP FreeRTOS port IDF-6204
#define REPEAT_OPS 10000
static uint32_t start, end;
@ -162,3 +164,5 @@ TEST_CASE("portMUX high contention, PSRAM", "[freertos]")
#endif// CONFIG_SPIRAM_USE_MALLOC || CONFIG_SPIRAM_USE_CAPS_ALLOC
#endif // portNUM_PROCESSORS == 2
#endif // !CONFIG_FREERTOS_SMP

View File

@ -10,6 +10,7 @@ CONFIGS = [
pytest.param('psram', marks=[pytest.mark.esp32]),
pytest.param('release', marks=[pytest.mark.supported_targets]),
pytest.param('single_core', marks=[pytest.mark.esp32]),
pytest.param('smp', marks=[pytest.mark.supported_targets]),
]

View File

@ -0,0 +1,3 @@
# Test configuration for enabling Amazon SMP FreeRTOS, and any optional feature currently supported on it.
CONFIG_FREERTOS_SMP=y