@@ -40,6 +40,8 @@ dist_odp_random_SOURCES = odp_random.c
dist_odp_scheduler_SOURCES = odp_scheduler.c
dist_odp_shared_memory_SOURCES = odp_shared_memory.c
dist_odp_synchronizers_SOURCES = odp_synchronizers.c
+odp_time_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \
+ $(LIB)/libodp.la
dist_odp_time_SOURCES = odp_time.c
dist_odp_timer_SOURCES = odp_timer.c
dist_odp_packet_SOURCES = odp_packet.c
@@ -65,7 +65,18 @@ CU_TestInfo test_odp_time[] = {
CU_TEST_INFO_NULL
};
-CU_SuiteInfo odp_testsuites[] = {
+static CU_SuiteInfo system_suites[] = {
{"Time", NULL, NULL, NULL, NULL, test_odp_time},
CU_SUITE_INFO_NULL
};
+
+static int system_main(void)
+{
+ return odp_cunit_run(system_suites);
+}
+
+/* the following main function will be separated when lib is created */
+int main(void)
+{
+ return system_main();
+}
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 2 ++ test/validation/odp_time.c | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)