diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2015-07-27 19:38:45 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-29 16:03:14 +0300 |
commit | 4a2cd3de2bbf6fe74555486cac0786347f88264d (patch) | |
tree | 4f5f17d47c5b1cef6038fbd9c848d8b71e3493d9 /test/validation | |
parent | a7012d86f8f59507be3df1f03cc33c132a3953e6 (diff) |
validation: pool: 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/pool/pool.c | 12 | ||||
-rw-r--r-- | test/validation/pool/pool.h | 16 |
2 files changed, 22 insertions, 6 deletions
diff --git a/test/validation/pool/pool.c b/test/validation/pool/pool.c index a888b6846..924755763 100644 --- a/test/validation/pool/pool.c +++ b/test/validation/pool/pool.c @@ -27,7 +27,7 @@ static void pool_create_destroy(odp_pool_param_t *params) CU_ASSERT(odp_pool_destroy(pool) == 0); } -static void pool_test_create_destroy_buffer(void) +void pool_test_create_destroy_buffer(void) { odp_pool_param_t params = { .buf = { @@ -41,7 +41,7 @@ static void pool_test_create_destroy_buffer(void) pool_create_destroy(¶ms); } -static void pool_test_create_destroy_packet(void) +void pool_test_create_destroy_packet(void) { odp_pool_param_t params = { .pkt = { @@ -55,7 +55,7 @@ static void pool_test_create_destroy_packet(void) pool_create_destroy(¶ms); } -static void pool_test_create_destroy_timeout(void) +void pool_test_create_destroy_timeout(void) { odp_pool_param_t params = { .tmo = { @@ -67,7 +67,7 @@ static void pool_test_create_destroy_timeout(void) pool_create_destroy(¶ms); } -static void pool_test_lookup_info_print(void) +void pool_test_lookup_info_print(void) { odp_pool_t pool; const char pool_name[] = "pool_for_lookup_test"; @@ -101,7 +101,7 @@ static void pool_test_lookup_info_print(void) #define _CU_TEST_INFO(test_func) {#test_func, test_func} -static CU_TestInfo pool_suite[] = { +CU_TestInfo pool_suite[] = { _CU_TEST_INFO(pool_test_create_destroy_buffer), _CU_TEST_INFO(pool_test_create_destroy_packet), _CU_TEST_INFO(pool_test_create_destroy_timeout), @@ -109,7 +109,7 @@ static CU_TestInfo pool_suite[] = { CU_TEST_INFO_NULL, }; -static CU_SuiteInfo pool_suites[] = { +CU_SuiteInfo pool_suites[] = { { .pName = "Pool tests", .pTests = pool_suite, }, diff --git a/test/validation/pool/pool.h b/test/validation/pool/pool.h index 8c73d9b5e..12c6193d8 100644 --- a/test/validation/pool/pool.h +++ b/test/validation/pool/pool.h @@ -7,6 +7,22 @@ #ifndef _ODP_TEST_POOL_H_ #define _ODP_TEST_POOL_H_ +#include <CUnit/Basic.h> + +/* test functions: */ +void pool_test_create_destroy_buffer(void); +void pool_test_create_destroy_packet(void); +void pool_test_create_destroy_timeout(void); +void pool_test_create_destroy_buffer_shm(void); +void pool_test_lookup_info_print(void); + +/* test arrays: */ +extern CU_TestInfo pool_suite[]; + +/* test registry: */ +extern CU_SuiteInfo pool_suites[]; + +/* main test program: */ int pool_main(void); #endif |