diff mbox

[11/17] validation: thread: lib populated

Message ID 1436489068-8929-12-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard July 10, 2015, 12:44 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/test/validation/thread/thread.c b/test/validation/thread/thread.c
index d0bd75e..31672a8 100644
--- a/test/validation/thread/thread.c
+++ b/test/validation/thread/thread.c
@@ -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,
 };
diff --git a/test/validation/thread/thread.h b/test/validation/thread/thread.h
index 94c288e..432c41c 100644
--- a/test/validation/thread/thread.h
+++ b/test/validation/thread/thread.h
@@ -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);