ESP-Miner/test/main/unit_test_all.c
2023-08-26 12:28:17 -04:00

24 lines
569 B
C

#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();
print_banner("Starting interactive test menu");
/* This function will not return, and will be busy waiting for UART input.
* Make sure that task watchdog is disabled if you use this function.
*/
unity_run_menu();
}
static void print_banner(const char *text)
{
printf("\n#### %s #####\n\n", text);
}