ztest: Fix userspace ztests in new API
Update the new API to use K_USER as the flags for both
CONFIG_USERSPACE and CONFIG_TEST_USERSPACE. Also, fix the linker
script to properly include the suites, tests, and rules.
Fixes #44108
Signed-off-by: Yuval Peress <peress@google.com>
diff --git a/scripts/gen_kobject_list.py b/scripts/gen_kobject_list.py
index 8368799..ee1d5b4 100755
--- a/scripts/gen_kobject_list.py
+++ b/scripts/gen_kobject_list.py
@@ -107,7 +107,11 @@
("sys_mutex", (None, True, False)),
("k_futex", (None, True, False)),
("k_condvar", (None, False, True)),
- ("k_event", ("CONFIG_EVENTS", False, True))
+ ("k_event", ("CONFIG_EVENTS", False, True)),
+ ("ztest_suite_node", ("CONFIG_ZTEST", True, False)),
+ ("ztest_suite_stats", ("CONFIG_ZTEST", True, False)),
+ ("ztest_unit_test", ("CONFIG_ZTEST_NEW_API", True, False)),
+ ("ztest_test_rule", ("CONFIG_ZTEST_NEW_API", True, False))
])
def kobject_to_enum(kobj):