starting with component unit testing (running on device)

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-05-17 12:03:16 +02:00
parent 05f8519864
commit 0944d29597
18 changed files with 127 additions and 13 deletions

2
test/main/CMakeLists.txt Normal file
View File

@@ -0,0 +1,2 @@
idf_component_register(SRCS "components_test.c"
INCLUDE_DIRS ".")

View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <string.h>
#include "unity.h"
static void print_banner(const char* text);
void app_main(void) {
print_banner("Running all the registered tests");
UNITY_BEGIN();
unity_run_all_tests();
UNITY_END();
}
static void print_banner(const char* text) {
printf("\n#### %s #####\n\n", text);
}