diff mbox

[10/17] validation: pool: lib populated

Message ID 1436489068-8929-11-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/pool/pool.c | 14 +++++++-------
 test/validation/pool/pool.h | 16 ++++++++++++++++
 2 files changed, 23 insertions(+), 7 deletions(-)
diff mbox

Patch

diff --git a/test/validation/pool/pool.c b/test/validation/pool/pool.c
index 1b54033..c0dfd5f 100644
--- a/test/validation/pool/pool.c
+++ b/test/validation/pool/pool.c
@@ -27,7 +27,7 @@  static void pool_create_destroy(odp_pool_param_t *params)
 	CU_ASSERT(odp_pool_destroy(pool) == 0);
 }
 
-static void pool_test_create_destroy_buffer(void)
+void pool_test_create_destroy_buffer(void)
 {
 	odp_pool_param_t params = {
 			.buf = {
@@ -41,7 +41,7 @@  static void pool_test_create_destroy_buffer(void)
 	pool_create_destroy(&params);
 }
 
-static void pool_test_create_destroy_packet(void)
+void pool_test_create_destroy_packet(void)
 {
 	odp_pool_param_t params = {
 			.pkt = {
@@ -55,7 +55,7 @@  static void pool_test_create_destroy_packet(void)
 	pool_create_destroy(&params);
 }
 
-static void pool_test_create_destroy_timeout(void)
+void pool_test_create_destroy_timeout(void)
 {
 	odp_pool_param_t params = {
 			.tmo = {
@@ -67,7 +67,7 @@  static void pool_test_create_destroy_timeout(void)
 	pool_create_destroy(&params);
 }
 
-static void pool_test_create_destroy_buffer_shm(void)
+void pool_test_create_destroy_buffer_shm(void)
 {
 	odp_pool_t pool;
 	odp_shm_t test_shm;
@@ -93,7 +93,7 @@  static void pool_test_create_destroy_buffer_shm(void)
 	CU_ASSERT(odp_shm_free(test_shm) == 0);
 }
 
-static void pool_test_lookup_info_print(void)
+void pool_test_lookup_info_print(void)
 {
 	odp_pool_t pool;
 	const char pool_name[] = "pool_for_lookup_test";
@@ -128,7 +128,7 @@  static void pool_test_lookup_info_print(void)
 
 #define _CU_TEST_INFO(test_func) {#test_func, test_func}
 
-static CU_TestInfo pool_suite[] = {
+CU_TestInfo pool_suite[] = {
 	_CU_TEST_INFO(pool_test_create_destroy_buffer),
 	_CU_TEST_INFO(pool_test_create_destroy_packet),
 	_CU_TEST_INFO(pool_test_create_destroy_timeout),
@@ -137,7 +137,7 @@  static CU_TestInfo pool_suite[] = {
 	CU_TEST_INFO_NULL,
 };
 
-static CU_SuiteInfo pool_suites[] = {
+CU_SuiteInfo pool_suites[] = {
 	{ .pName = "Pool tests",
 			.pTests = pool_suite,
 	},
diff --git a/test/validation/pool/pool.h b/test/validation/pool/pool.h
index 53cd4d1..ad49f1e 100644
--- a/test/validation/pool/pool.h
+++ b/test/validation/pool/pool.h
@@ -4,4 +4,20 @@ 
  * SPDX-License-Identifier:	BSD-3-Clause
  */
 
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void pool_test_create_destroy_buffer(void);
+void pool_test_create_destroy_packet(void);
+void pool_test_create_destroy_timeout(void);
+void pool_test_create_destroy_buffer_shm(void);
+void pool_test_lookup_info_print(void);
+
+/* test arrays: */
+extern CU_TestInfo pool_suite[];
+
+/* test registery: */
+extern CU_SuiteInfo pool_suites[];
+
+/* main test program: */
 int pool_main(void);