test: Add test_app

This commit is contained in:
Tomas Rezucha 2021-12-10 09:09:26 +01:00
parent 87fa988626
commit c8ddfb84ff
5 changed files with 36 additions and 1 deletions

6
.gitignore vendored
View File

@ -1 +1,5 @@
*/dist/**
*/dist/**
build
sdkconfig
sdkconfig.old
dependencies.lock

10
test_app/CMakeLists.txt Normal file
View File

@ -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)

View File

@ -0,0 +1,3 @@
idf_component_register(SRCS "test_app_main.c"
INCLUDE_DIRS ""
REQUIRES unity)

View File

@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "unity.h"
void app_main(void)
{
UNITY_BEGIN();
unity_run_menu();
UNITY_END();
}

View File

@ -0,0 +1,2 @@
CONFIG_ESP_INT_WDT=n
CONFIG_ESP_TASK_WDT=n