Signed-off-by: Christophe Milard <christophe.mil...@linaro.org> --- test/validation/Makefile.am | 3 +++ test/validation/odp_scheduler.c | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a012ccb..872064a 100644 --- a/test/validation/Makefile.am +++ b/test/validation/Makefile.am @@ -21,6 +21,9 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY) ODP_CU_COMMON=common/odp_cunit_common.c odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto +odp_scheduler_LDADD = \ + $(top_builddir)/test/validation/common/libcunit_common.a \ + $(LIB)/libodp.la dist_odp_scheduler_SOURCES = odp_scheduler.c dist_odp_shared_memory_SOURCES = odp_shared_memory.c dist_odp_synchronizers_SOURCES = odp_synchronizers.c diff --git a/test/validation/odp_scheduler.c b/test/validation/odp_scheduler.c index c2eb996..3b98202 100644 --- a/test/validation/odp_scheduler.c +++ b/test/validation/odp_scheduler.c @@ -764,7 +764,7 @@ static int schd_suite_term(void) return 0; } -struct CU_TestInfo schd_tests[] = { +static struct CU_TestInfo schd_tests[] = { {"schedule_wait_time", test_schedule_wait_time}, {"schedule_num_prio", test_schedule_num_prio}, {"schedule_queue_destroy", test_schedule_queue_destroy}, @@ -798,8 +798,19 @@ struct CU_TestInfo schd_tests[] = { CU_TEST_INFO_NULL, }; -CU_SuiteInfo odp_testsuites[] = { +static CU_SuiteInfo scheduler_suites[] = { {"Scheduler", schd_suite_init, schd_suite_term, NULL, NULL, schd_tests}, CU_SUITE_INFO_NULL, }; + +static int scheduler_main(void) +{ + return odp_cunit_run(scheduler_suites); +} + +/* the following main function will be separated when lib is created */ +int main(void) +{ + return scheduler_main(); +} -- 1.9.1 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp