diff mbox

[PATCHv2,20/20] validation: random: lib populated

Message ID 1437737259-16953-21-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard July 24, 2015, 11:27 a.m. UTC
test symbols are now exported in the module lib.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 test/validation/random/random.c |  6 +++---
 test/validation/random/random.h | 12 ++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/test/validation/random/random.c b/test/validation/random/random.c
index a42523f..039c7a3 100644
--- a/test/validation/random/random.c
+++ b/test/validation/random/random.c
@@ -11,7 +11,7 @@ 
 /* Helper macro for CU_TestInfo initialization */
 #define _CU_TEST_INFO(test_func) {#test_func, test_func}
 
-static void random_test_get_size(void)
+void random_test_get_size(void)
 {
 	int32_t ret;
 	uint8_t buf[32];
@@ -20,12 +20,12 @@  static void random_test_get_size(void)
 	CU_ASSERT(ret == sizeof(buf));
 }
 
-static CU_TestInfo random_suite[] = {
+CU_TestInfo random_suite[] = {
 	_CU_TEST_INFO(random_test_get_size),
 	CU_TEST_INFO_NULL,
 };
 
-static CU_SuiteInfo random_suites[] = {
+CU_SuiteInfo random_suites[] = {
 	{"Random", NULL, NULL, NULL, NULL, random_suite},
 	CU_SUITE_INFO_NULL,
 };
diff --git a/test/validation/random/random.h b/test/validation/random/random.h
index 34e375c..4d3d39e 100644
--- a/test/validation/random/random.h
+++ b/test/validation/random/random.h
@@ -7,6 +7,18 @@ 
 #ifndef _ODP_TEST_RANDOM_H_
 #define _ODP_TEST_RANDOM_H_
 
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void random_test_get_size(void);
+
+/* test arrays: */
+extern CU_TestInfo random_suite[];
+
+/* test registery: */
+extern CU_SuiteInfo random_suites[];
+
+/* main test program: */
 int random_main(void);
 
 #endif