diff mbox

[03/17] validation: shmem: lib populated

Message ID 1436489068-8929-4-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/shmem/shmem.c |  6 +++---
 test/validation/shmem/shmem.h | 12 ++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/test/validation/shmem/shmem.c b/test/validation/shmem/shmem.c
index 0c713c6..3abba0c 100644
--- a/test/validation/shmem/shmem.c
+++ b/test/validation/shmem/shmem.c
@@ -44,7 +44,7 @@  static void *run_shm_thread(void *arg)
 	return arg;
 }
 
-static void shmem_test_odp_shm_sunnyday(void)
+void shmem_test_odp_shm_sunnyday(void)
 {
 	pthrd_arg thrdarg;
 	odp_shm_t shm;
@@ -76,12 +76,12 @@  static void shmem_test_odp_shm_sunnyday(void)
 	odp_cunit_thread_exit(&thrdarg);
 }
 
-static CU_TestInfo shmem_suite[] = {
+CU_TestInfo shmem_suite[] = {
 	{"test_odp_shm_creat",  shmem_test_odp_shm_sunnyday},
 	CU_TEST_INFO_NULL,
 };
 
-static CU_SuiteInfo shmem_suites[] = {
+CU_SuiteInfo shmem_suites[] = {
 	{"Shared Memory", NULL, NULL, NULL, NULL, shmem_suite},
 	CU_SUITE_INFO_NULL,
 };
diff --git a/test/validation/shmem/shmem.h b/test/validation/shmem/shmem.h
index 9b79027..924c796 100644
--- a/test/validation/shmem/shmem.h
+++ b/test/validation/shmem/shmem.h
@@ -4,4 +4,16 @@ 
  * SPDX-License-Identifier:     BSD-3-Clause
  */
 
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void shmem_test_odp_shm_sunnyday(void);
+
+/* test arrays: */
+extern CU_TestInfo shmem_suite[];
+
+/* test registery: */
+extern CU_SuiteInfo shmem_suites[];
+
+/* main test program: */
 int shmem_main(void);