@@ -50,7 +50,7 @@ struct test_timer {
#define TICK_INVALID (~(uint64_t)0)
-static void timer_test_timeout_pool_alloc(void)
+void timer_test_timeout_pool_alloc(void)
{
odp_pool_t pool;
const int num = 3;
@@ -94,7 +94,7 @@ static void timer_test_timeout_pool_alloc(void)
CU_ASSERT(odp_pool_destroy(pool) == 0);
}
-static void timer_test_timeout_pool_free(void)
+void timer_test_timeout_pool_free(void)
{
odp_pool_t pool;
odp_timeout_t tmo;
@@ -125,7 +125,7 @@ static void timer_test_timeout_pool_free(void)
CU_ASSERT(odp_pool_destroy(pool) == 0);
}
-static void timer_test_odp_timer_cancel(void)
+void timer_test_odp_timer_cancel(void)
{
odp_pool_t pool;
odp_pool_param_t params;
@@ -436,7 +436,7 @@ static void *worker_entrypoint(void *arg TEST_UNUSED)
}
/* @private Timer test case entrypoint */
-static void timer_test_odp_timer_all(void)
+void timer_test_odp_timer_all(void)
{
int rc;
odp_pool_param_t params;
@@ -529,7 +529,7 @@ static void timer_test_odp_timer_all(void)
CU_PASS("ODP timer test");
}
-static CU_TestInfo timer_suite[] = {
+CU_TestInfo timer_suite[] = {
{"test_timeout_pool_alloc", timer_test_timeout_pool_alloc},
{"test_timeout_pool_free", timer_test_timeout_pool_free},
{"test_odp_timer_cancel", timer_test_odp_timer_cancel},
@@ -537,7 +537,7 @@ static CU_TestInfo timer_suite[] = {
CU_TEST_INFO_NULL,
};
-static CU_SuiteInfo timer_suites[] = {
+CU_SuiteInfo timer_suites[] = {
{"Timer", NULL, NULL, NULL, NULL, timer_suite},
CU_SUITE_INFO_NULL,
};
@@ -4,4 +4,19 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
+#include <CUnit/Basic.h>
+
+/* test functions: */
+void timer_test_timeout_pool_alloc(void);
+void timer_test_timeout_pool_free(void);
+void timer_test_odp_timer_cancel(void);
+void timer_test_odp_timer_all(void);
+
+/* test arrays: */
+extern CU_TestInfo timer_suite[];
+
+/* test registery: */
+extern CU_SuiteInfo timer_suites[];
+
+/* main test program: */
int timer_main(void);
test symbols are now exported in the module lib. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/timer/timer.c | 12 ++++++------ test/validation/timer/timer.h | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-)