@@ -16,6 +16,9 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY)
ODP_CU_COMMON=common/odp_cunit_common.c
odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto
+odp_shared_memory_LDADD = \
+ $(top_builddir)/test/validation/common/libcunit_common.a \
+ $(LIB)/libodp.la
dist_odp_shared_memory_SOURCES = odp_shared_memory.c
dist_odp_timer_SOURCES = odp_timer.c
@@ -75,13 +75,23 @@ static void test_odp_shm_sunnyday(void)
odp_cunit_thread_exit(&thrdarg);
}
-CU_TestInfo test_odp_shm[] = {
+static CU_TestInfo test_odp_shm[] = {
{"test_odp_shm_creat", test_odp_shm_sunnyday},
CU_TEST_INFO_NULL,
};
-CU_SuiteInfo odp_testsuites[] = {
+static CU_SuiteInfo shmem_suites[] = {
{"Shared Memory", NULL, NULL, NULL, NULL, test_odp_shm},
CU_SUITE_INFO_NULL,
};
+static int shmem_main(void)
+{
+ return odp_cunit_run(shmem_suites);
+}
+
+/* the following main function will be separated when lib is created */
+int main(void)
+{
+ return shmem_main();
+}
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 3 +++ test/validation/odp_shared_memory.c | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-)