ztest: deprecate old ztest API
Deprecate old ztest APIs.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/subsys/testsuite/ztest/include/zephyr/ztest_test_deprecated.h b/subsys/testsuite/ztest/include/zephyr/ztest_test_deprecated.h
index dc51237..8207b18 100644
--- a/subsys/testsuite/ztest/include/zephyr/ztest_test_deprecated.h
+++ b/subsys/testsuite/ztest/include/zephyr/ztest_test_deprecated.h
@@ -93,6 +93,7 @@
* @param state The current state of the machine as it relates to the test executable.
* @return The number of tests that ran.
*/
+__deprecated
int ztest_run_registered_test_suites(const void *state);
/**
@@ -104,6 +105,7 @@
* may be called at the end of test_main(). It will cause the test to fail if any suite was
* registered but never ran.
*/
+__deprecated
void ztest_verify_all_registered_test_suites_ran(void);
/**
@@ -273,14 +275,14 @@
*
* @param suite Name of the testing suite
*/
-#define ztest_test_suite(suite, ...) \
+#define ztest_test_suite(suite, ...) __DEPRECATED_MACRO \
static ZTEST_DMEM struct unit_test _##suite[] = { __VA_ARGS__, { 0 } }
/**
* @brief Run the specified test suite.
*
* @param suite Test suite to run.
*/
-#define ztest_run_test_suite(suite) \
+#define ztest_run_test_suite(suite) __DEPRECATED_MACRO \
z_ztest_run_test_suite(#suite, _##suite)
/**