@@ -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,
};
@@ -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 registry: */
+extern CU_SuiteInfo random_suites[];
+
+/* main test program: */
int random_main(void);
#endif
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(-)