From c8ddfb84ff9a7b4e4f22890dd3a6c1af1022c53a Mon Sep 17 00:00:00 2001 From: Tomas Rezucha Date: Fri, 10 Dec 2021 09:09:26 +0100 Subject: [PATCH] test: Add test_app --- .gitignore | 6 +++++- test_app/CMakeLists.txt | 10 ++++++++++ test_app/main/CMakeLists.txt | 3 +++ test_app/main/test_app_main.c | 16 ++++++++++++++++ test_app/sdkconfig.defaults | 2 ++ 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 test_app/CMakeLists.txt create mode 100644 test_app/main/CMakeLists.txt create mode 100644 test_app/main/test_app_main.c create mode 100644 test_app/sdkconfig.defaults diff --git a/.gitignore b/.gitignore index 934b9d8..33d24a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ -*/dist/** \ No newline at end of file +*/dist/** +build +sdkconfig +sdkconfig.old +dependencies.lock \ No newline at end of file diff --git a/test_app/CMakeLists.txt b/test_app/CMakeLists.txt new file mode 100644 index 0000000..d9e249f --- /dev/null +++ b/test_app/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.5) + +set(EXTRA_COMPONENT_DIRS "../libsodium") + +# Set the components to include the tests for. +set(TEST_COMPONENTS libsodium CACHE STRING "List of components to test") +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(idf_extra_test_app) diff --git a/test_app/main/CMakeLists.txt b/test_app/main/CMakeLists.txt new file mode 100644 index 0000000..55e6764 --- /dev/null +++ b/test_app/main/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRCS "test_app_main.c" + INCLUDE_DIRS "" + REQUIRES unity) diff --git a/test_app/main/test_app_main.c b/test_app/main/test_app_main.c new file mode 100644 index 0000000..65c83a5 --- /dev/null +++ b/test_app/main/test_app_main.c @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +#include +#include "unity.h" + +void app_main(void) +{ + UNITY_BEGIN(); + unity_run_menu(); + UNITY_END(); +} diff --git a/test_app/sdkconfig.defaults b/test_app/sdkconfig.defaults new file mode 100644 index 0000000..808f92a --- /dev/null +++ b/test_app/sdkconfig.defaults @@ -0,0 +1,2 @@ +CONFIG_ESP_INT_WDT=n +CONFIG_ESP_TASK_WDT=n