diff mbox

[PATCHv3,18/20] validation: queue: lib populated

Message ID 1438018732-2778-19-git-send-email-christophe.milard@linaro.org
State Accepted
Commit cad4af7c47628e5d9fdcd5a7861555b5f07a3f86
Headers show

Commit Message

Christophe Milard July 27, 2015, 5:38 p.m. UTC
test symbols are now exported in the module lib.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 test/validation/queue/queue.c | 10 +++++-----
 test/validation/queue/queue.h | 16 ++++++++++++++++
 2 files changed, 21 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index ef7c8f2..5b2a13a 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -15,7 +15,7 @@ 
 static int queue_contest = 0xff;
 static odp_pool_t pool;
 
-static int queue_suite_init(void)
+int queue_suite_init(void)
 {
 	odp_pool_param_t params;
 
@@ -33,12 +33,12 @@  static int queue_suite_init(void)
 	return 0;
 }
 
-static int queue_suite_term(void)
+int queue_suite_term(void)
 {
 	return odp_pool_destroy(pool);
 }
 
-static void queue_test_sunnydays(void)
+void queue_test_sunnydays(void)
 {
 	odp_queue_t queue_creat_id, queue_id;
 	odp_event_t enev[MAX_BUFFER_QUEUE];
@@ -114,12 +114,12 @@  static void queue_test_sunnydays(void)
 	CU_ASSERT(odp_queue_destroy(queue_id) == 0);
 }
 
-static CU_TestInfo queue_suite[] = {
+CU_TestInfo queue_suite[] = {
 	{"queue sunnyday",  queue_test_sunnydays},
 	CU_TEST_INFO_NULL,
 };
 
-static CU_SuiteInfo queue_suites[] = {
+CU_SuiteInfo queue_suites[] = {
 	{"Queue", queue_suite_init, queue_suite_term,
 			NULL, NULL, queue_suite},
 	CU_SUITE_INFO_NULL,
diff --git a/test/validation/queue/queue.h b/test/validation/queue/queue.h
index 8302912..d2765ce 100644
--- a/test/validation/queue/queue.h
+++ b/test/validation/queue/queue.h
@@ -7,6 +7,22 @@ 
 #ifndef _ODP_TEST_QUEUE_H_
 #define _ODP_TEST_QUEUE_H_
 
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void queue_test_sunnydays(void);
+
+/* test arrays: */
+extern CU_TestInfo queue_suite[];
+
+/* test array init/term functions: */
+int queue_suite_init(void);
+int queue_suite_term(void);
+
+/* test registry: */
+extern CU_SuiteInfo queue_suites[];
+
+/* main test program: */
 int queue_main(void);
 
 #endif