Added multiple test cases.

This commit is contained in:
dario
2024-01-07 15:56:02 +01:00
parent 3acc17a7dc
commit d8b4258b20
10 changed files with 348 additions and 59 deletions

View File

@@ -24,6 +24,6 @@
#include <sta/tacos/configs/default.hpp>
#define STA_TACOS_WATCHDOG_FREQUENCY 1000
#define STA_TACOS_NUM_STATES 3
#define STA_TACOS_NUM_STATES 8
#endif // STA_CONFIG_HPP

View File

@@ -1,6 +1,6 @@
#ifndef STA_TASTY_CONFIG_HPP
#define STA_TASTY_CONFIG_HPP
#define TASTY_CASE_1
#define TASTY_CASE_5
#endif // STA_TASTY_CONFIG_HPP

View File

@@ -18,6 +18,12 @@ namespace sta
* @param rslt The result of the test case.
*/
void test_case(const char * file, uint32_t line, bool rslt);
/**
* @brief Send a message signaling the end of a test case.
*
*/
void test_terminate();
} // namespace tasty
} // namespace sta
@@ -28,6 +34,12 @@ namespace sta
*/
#define STA_TASTY_ASSERT(expr) ( (void)( sta::tasty::test_case(__FILE__, __LINE__, expr) ) )
/**
* @brief Send a message signaling the end of a test case.
*
*/
#define STA_TASTY_TERMINATE() ( (void)( sta::tasty::test_terminate() ) )
#endif // STA_DEBUGGING_ENABLED