mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
51 lines
1.0 KiB
C
51 lines
1.0 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
*/
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/task.h"
|
|
#include "unity.h"
|
|
#include "unity_fixture.h"
|
|
#include "unity_fixture_extras.h"
|
|
|
|
static void run_all_tests(void)
|
|
{
|
|
#if CONFIG_SOC_MPI_SUPPORTED
|
|
RUN_TEST_GROUP(mpi);
|
|
#endif
|
|
|
|
#if CONFIG_SOC_ECC_SUPPORTED
|
|
RUN_TEST_GROUP(ecc);
|
|
#endif
|
|
|
|
#if CONFIG_IDF_ENV_FPGA
|
|
|
|
#if CONFIG_SOC_HMAC_SUPPORTED
|
|
RUN_TEST_GROUP(hmac);
|
|
#endif
|
|
|
|
#if CONFIG_SOC_DIG_SIGN_SUPPORTED
|
|
RUN_TEST_GROUP(ds);
|
|
#endif
|
|
|
|
#if CONFIG_SOC_ECDSA_SUPPORTED
|
|
RUN_TEST_GROUP(ecdsa)
|
|
#endif
|
|
|
|
#endif /* CONFIG_IDF_ENV_FPGA */
|
|
}
|
|
|
|
static void test_task(void *pvParameters)
|
|
{
|
|
vTaskDelay(2); /* Delay a bit to let the main task be deleted */
|
|
UNITY_MAIN_FUNC(run_all_tests);
|
|
vTaskDelete(NULL);
|
|
}
|
|
|
|
void app_main(void)
|
|
{
|
|
xTaskCreatePinnedToCore(test_task, "testTask", CONFIG_UNITY_FREERTOS_STACK_SIZE, NULL, CONFIG_UNITY_FREERTOS_PRIORITY, NULL, CONFIG_UNITY_FREERTOS_CPU);
|
|
}
|