commit | 5c9a1242408138327d4498a47e9717ec12800149 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Feb 07 11:30:38 2025 -0700 |
committer | Tom Rini <trini@konsulko.com> | Tue Feb 11 20:10:58 2025 -0600 |
tree | b668412c69689e5a9c9ebe4dc762789a9c830a4e | |
parent | 598a1a5775e541913d36c02ae66a683ba28dee44 [diff] |
test: Support an init/uninit functions for test suites Some suites need things to be set up before they can run. Add a way to declare an init function using the UNIT_TEST_INIT() macro. The init function is just like any other test, but is always placed first so that it runs before all the other test functions in the suite. Add an uninit function as well, to clean up after the test. Signed-off-by: Simon Glass <sjg@chromium.org>