Merge branch 'test/enable_c2_target_tests' into 'master'

ci: enable target tests for ESP32-C2

Closes IDF-4989

See merge request espressif/esp-idf!18182
This commit is contained in:
morris
2022-06-03 16:41:24 +08:00
231 changed files with 1275 additions and 355 deletions

View File

@@ -11,6 +11,7 @@
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/timers.h"
#include "test_utils.h"
static void timer_callback(TimerHandle_t timer)
{
@@ -20,6 +21,8 @@ static void timer_callback(TimerHandle_t timer)
printf("Callback timer %p count %p = %d\n", timer, count, *count);
}
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5140
TEST_CASE("Oneshot FreeRTOS timers", "[freertos]")
{
volatile int count = 0;
@@ -74,6 +77,7 @@ TEST_CASE("Recurring FreeRTOS timers", "[freertos]")
TEST_ASSERT( xTimerDelete(recurring, 1) );
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
TEST_CASE("Static timer creation", "[freertos]")
{

View File

@@ -17,10 +17,13 @@
#include "freertos/semphr.h"
#include "freertos/queue.h"
#include "unity.h"
#include "test_utils.h"
volatile static int done;
volatile static int error;
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5140
static void tskTestRand(void *pvParameters)
{
int l;
@@ -57,3 +60,4 @@ TEST_CASE("Test for per-task non-reentrant tasks", "[freertos]")
}
TEST_ASSERT(error == 0);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)