Skip to content

Commit

Permalink
linux-dpdk: validation: ml: add validation tests
Browse files Browse the repository at this point in the history
Add validation tests for the new mldev based ML implementation.

Signed-off-by: Jere Leppänen <[email protected]>
  • Loading branch information
JereLeppanen committed Sep 20, 2024
1 parent f46244f commit 3190b21
Show file tree
Hide file tree
Showing 6 changed files with 1,127 additions and 0 deletions.
1 change: 1 addition & 0 deletions platform/linux-dpdk/m4/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ AC_CONFIG_FILES([platform/linux-dpdk/Makefile
platform/linux-dpdk/test/example/switch/Makefile
platform/linux-dpdk/test/performance/Makefile
platform/linux-dpdk/test/performance/dmafwd/Makefile
platform/linux-dpdk/test/validation/api/ml/Makefile
platform/linux-dpdk/test/validation/api/pktio/Makefile])
])
5 changes: 5 additions & 0 deletions platform/linux-dpdk/test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ test_SCRIPTS = $(dist_check_SCRIPTS)
SUBDIRS += validation/api/pktio \
example \
performance

if WITH_ML
SUBDIRS += validation/api/ml
endif

else
#performance tests refer to pktio_env
if test_perf
Expand Down
1 change: 1 addition & 0 deletions platform/linux-dpdk/test/validation/api/ml/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ml_dpdk
33 changes: 33 additions & 0 deletions platform/linux-dpdk/test/validation/api/ml/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
include ../Makefile.inc

test_PROGRAMS = ml_dpdk
ml_dpdk_SOURCES = ml_dpdk.c

dist_check_SCRIPTS = ml_dpdk.sh

test_SCRIPTS = $(dist_check_SCRIPTS)

TESTS = $(test_SCRIPTS)

EXTRA_DIST = $(dist_check_SCRIPTS)

# If building out-of-tree, make check will not copy the scripts and data to the
# $(builddir) assuming that all commands are run locally. However this prevents
# running tests on a remote target using LOG_COMPILER.
# So copy all script and data files explicitly here.
all-local:
if [ "x$(srcdir)" != "x$(builddir)" ]; then \
for f in $(EXTRA_DIST); do \
if [ -e $(srcdir)/$$f ]; then \
mkdir -p $(builddir)/$$(dirname $$f); \
cp -f $(srcdir)/$$f $(builddir)/$$f; \
fi \
done \
fi

clean-local:
if [ "x$(srcdir)" != "x$(builddir)" ]; then \
for f in $(EXTRA_DIST); do \
rm -f $(builddir)/$$f; \
done \
fi
Loading

0 comments on commit 3190b21

Please sign in to comment.