Unify test source files.
This commit is contained in:
@@ -72,4 +72,13 @@ TEST_CASE("Relay channels do not change state for invalid channel", "[relay_chn]
|
|||||||
check_channels_state_unchanged();
|
check_channels_state_unchanged();
|
||||||
relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction
|
relay_chn_flip_direction(relay_chn_count + 1); // Flip the direction
|
||||||
check_channels_state_unchanged();
|
check_channels_state_unchanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Test app entry point
|
||||||
|
void app_main(void)
|
||||||
|
{
|
||||||
|
// Run the Unity tests menu
|
||||||
|
unity_run_menu();
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "unity.h"
|
|
||||||
#include "unity_test_runner.h"
|
|
||||||
|
|
||||||
|
|
||||||
static void print_banner(const char*);
|
|
||||||
|
|
||||||
void app_main(void) {
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user