Updated test cases to work for TACOS rework

This commit is contained in:
dario
2025-01-17 17:39:33 +01:00
parent b6c929d316
commit 5feca7778f
14 changed files with 64 additions and 33 deletions

View File

@@ -19,12 +19,10 @@
#define STA_ASSERT_FORCE
#define STA_DEBUGGING_ENABLED
// Settings for the rtos-utils
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
// Use the default configs for TACOS
#include <sta/tacos/configs/default.hpp>
#define STA_TACOS_WATCHDOG_ENABLED
#define STA_TACOS_WATCHDOG_FREQUENCY 1000
#define STA_TACOS_NUM_STATES 8

View File

@@ -10,6 +10,11 @@ namespace sta
{
namespace tasty
{
/**
* @brief Initialize Tasty for the test case.
*
*/
void test_init();
/**
* @brief Print a test result via serial.
*
@@ -28,6 +33,12 @@ namespace sta
} // namespace sta
/**
* @brief Initialize Tasty for the test case.
*
*/
#define STA_TASTY_INIT() ( (void)( sta::tasty::test_init() ) )
/**
* @brief Assert statement for automatic testing using tasty. Sends the test result to the host via serial.
*
@@ -43,4 +54,4 @@ namespace sta
#endif // STA_DEBUGGING_ENABLED
#endif // STA_TASTY_UTILS_HPP
#endif // STA_TASTY_UTILS_HPP