mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/Tasty.git
synced 2025-09-28 15:57:33 +00:00
Added multiple test cases.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user