@@ -34,6 +34,9 @@ ODP_CU_COMMON=common/odp_cunit_common.c
odp_buffer_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/buffer
dist_odp_buffer_SOURCES = odp_buffer.c
odp_classification_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/classification
+odp_classification_LDADD = \
+ $(top_builddir)/test/validation/common/libcunit_common.a \
+ $(LIB)/libodp.la
dist_odp_classification_SOURCES = classification/odp_classification_tests.c \
classification/odp_classification_basic.c \
odp_classification.c
@@ -4,9 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
+#include <odp.h>
+#include <odp_cunit_common.h>
#include "odp_classification_testsuites.h"
-CU_SuiteInfo odp_testsuites[] = {
+static CU_SuiteInfo classification_suites[] = {
{ .pName = "classification basic",
.pTests = classification_basic,
},
@@ -17,3 +19,14 @@ CU_SuiteInfo odp_testsuites[] = {
},
CU_SUITE_INFO_NULL,
};
+
+static int classification_main(void)
+{
+ return odp_cunit_run(classification_suites);
+}
+
+/* the following main function will be separated when lib is created */
+int main(void)
+{
+ return classification_main();
+}
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/Makefile.am | 3 +++ test/validation/odp_classification.c | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-)