@@ -11,32 +11,32 @@
/* Helper macro for CU_TestInfo initialization */
#define _CU_TEST_INFO(test_func) {#test_func, test_func}
-static void thread_test_odp_cpu_id(void)
+void thread_test_odp_cpu_id(void)
{
(void)odp_cpu_id();
CU_PASS();
}
-static void thread_test_odp_thread_id(void)
+void thread_test_odp_thread_id(void)
{
(void)odp_thread_id();
CU_PASS();
}
-static void thread_test_odp_thread_count(void)
+void thread_test_odp_thread_count(void)
{
(void)odp_thread_count();
CU_PASS();
}
-static CU_TestInfo thread_suite[] = {
+CU_TestInfo thread_suite[] = {
_CU_TEST_INFO(thread_test_odp_cpu_id),
_CU_TEST_INFO(thread_test_odp_thread_id),
_CU_TEST_INFO(thread_test_odp_thread_count),
CU_TEST_INFO_NULL,
};
-static CU_SuiteInfo thread_suites[] = {
+CU_SuiteInfo thread_suites[] = {
{"thread", NULL, NULL, NULL, NULL, thread_suite},
CU_SUITE_INFO_NULL,
};
@@ -4,4 +4,18 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void thread_test_odp_cpu_id(void);
+void thread_test_odp_thread_id(void);
+void thread_test_odp_thread_count(void);
+
+/* test arrays: */
+extern CU_TestInfo thread_suite[];
+
+/* test registery: */
+extern CU_SuiteInfo thread_suites[];
+
+/* main test program: */
int thread_main(void);
test symbols are now exported in the module lib. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/thread/thread.c | 10 +++++----- test/validation/thread/thread.h | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-)