diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2015-07-27 19:38:52 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-29 16:03:15 +0300 |
commit | 4a4b79ced488487e7336910b6bc855c0b3d515a0 (patch) | |
tree | c784b94682aa9d13cd29519102116ef770190b76 /test/validation | |
parent | 96a666450fe2e3777f43569bcafd96f7be515735 (diff) |
validation: random: lib populated
test symbols are now exported in the module lib.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation')
-rw-r--r-- | test/validation/random/random.c | 6 | ||||
-rw-r--r-- | 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 a42523faf..039c7a333 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 34e375c70..cda1843e4 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 registry: */ +extern CU_SuiteInfo random_suites[]; + +/* main test program: */ int random_main(void); #endif |