| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2024-05-07 | lib: tests: Add test suite init function | Ivan Orlov | |
| Allow to define an init function for the test suite. It could help us to initialize global variable once, and use them in multiple test cases after the initialization. For instance, if multiple test cases use the same atomic_t var, it could be helpful to call ATOMIC_INIT once during the suite initialization. Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Anup Patel <[email protected]> | |||
| 2024-03-10 | lib: Add SBIUnit testing macros and functions | Ivan Orlov | |
| This patch introduces all of the SBIUnit macros and functions which can be used during the test development process. Also, it defines the 'run_all_tests' function, which is being called during the 'init_coldboot' right after printing the boot hart information. Also, add the CONFIG_SBIUNIT Kconfig entry in order to be able to turn the tests on and off. When the CONFIG_SBIUNIT is disabled, the tests and all related code is excluded completely on the compilation stage. Signed-off-by: Ivan Orlov <[email protected]> Reviewed-by: Andrew Jones <[email protected]> | |||
