@@ -22,6 +22,8 @@ bin_PROGRAMS = $(EXECUTABLES) $(COMPILE_ONLY)
ODP_CU_COMMON=common/odp_cunit_common.c
odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer
+odp_buffer_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \
+ $(LIB)/libodp.la
dist_odp_buffer_SOURCES = odp_buffer.c
odp_crypto_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/crypto
odp_random_LDADD = $(top_builddir)/test/validation/common/libcunit_common.a \
@@ -148,7 +148,7 @@ static CU_TestInfo buffer_tests[] = {
CU_TEST_INFO_NULL,
};
-CU_SuiteInfo odp_testsuites[] = {
+static CU_SuiteInfo buffer_suites[] = {
{ .pName = "buffer tests",
.pTests = buffer_tests,
.pInitFunc = buffer_testsuite_init,
@@ -156,3 +156,14 @@ CU_SuiteInfo odp_testsuites[] = {
},
CU_SUITE_INFO_NULL,
};
+
+static int buffer_main(void)
+{
+ return odp_cunit_run(buffer_suites);
+}
+
+/* the following main function will be separated when lib is created */
+int main(void)
+{
+ return buffer_main();
+}
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 2 ++ test/validation/odp_buffer.c | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-)