Прошло 2 года.
This commit is contained in:
11
lib/epdiy/examples/test/CMakeLists.txt
Normal file
11
lib/epdiy/examples/test/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
# This is the project CMakeLists.txt file for the test subproject
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
# Add newly added components to one of these lines:
|
||||
# 1. Add here if the component is compatible with IDF >= v4.3
|
||||
set(EXTRA_COMPONENT_DIRS "../../")
|
||||
|
||||
set(TEST_COMPONENTS "epdiy")
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(epdiy_testrunner)
|
||||
3
lib/epdiy/examples/test/main/CMakeLists.txt
Normal file
3
lib/epdiy/examples/test/main/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
idf_component_register(SRCS "main.c" INCLUDE_DIRS ".")
|
||||
15
lib/epdiy/examples/test/main/main.c
Normal file
15
lib/epdiy/examples/test/main/main.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <unity.h>
|
||||
#include "unity_test_runner.h"
|
||||
|
||||
static void print_banner(const char* text) {
|
||||
printf("\n#### %s #####\n\n", text);
|
||||
}
|
||||
|
||||
void app_main(void) {
|
||||
print_banner("Running all the registered tests");
|
||||
UNITY_BEGIN();
|
||||
// unity_run_tests_by_tag("lut", false);
|
||||
unity_run_all_tests();
|
||||
UNITY_END();
|
||||
}
|
||||
Reference in New Issue
Block a user