@@ -15,6 +15,8 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY)
ODP_CU_COMMON=common/odp_cunit_common.c
odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto
+odp_timer_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \
+ $(LIB)/libodp.la
dist_odp_timer_SOURCES = odp_timer.c
ODP_MODULES = buffer \
@@ -527,7 +527,7 @@ static void test_odp_timer_all(void)
CU_PASS("ODP timer test");
}
-CU_TestInfo test_odp_timer[] = {
+static CU_TestInfo test_odp_timer[] = {
{"test_timeout_pool_alloc", test_timeout_pool_alloc},
{"test_timeout_pool_free", test_timeout_pool_free},
{"test_odp_timer_cancel", test_odp_timer_cancel},
@@ -535,7 +535,18 @@ CU_TestInfo test_odp_timer[] = {
CU_TEST_INFO_NULL,
};
-CU_SuiteInfo odp_testsuites[] = {
+static CU_SuiteInfo timer_suites[] = {
{"Timer", NULL, NULL, NULL, NULL, test_odp_timer},
CU_SUITE_INFO_NULL,
};
+
+static int timer_main(void)
+{
+ return odp_cunit_run(timer_suites);
+}
+
+/* the following main function will be separated when lib is created */
+int main(void)
+{
+ return timer_main();
+}
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 2 ++ test/validation/odp_timer.c | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-)