test symbols are now exported in the module lib. Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/random/random.c | 6 +++--- test/validation/random/random.h | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-)
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 c40ee1f..c83153d 100644 --- a/test/validation/random/random.h +++ b/test/validation/random/random.h @@ -4,4 +4,16 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#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); -- 2.1.0 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp