From ddf3fd50505775ae3d7680f7b8b8df1f4fdbc5a4 Mon Sep 17 00:00:00 2001 From: Balakrishna Garapati Date: Tue, 14 Nov 2017 17:32:03 +0100 Subject: [PATCH] test: enable dpdk initialization before running validation on linux-dpdk Signed-off-by: Balakrishna Garapati --- platform/linux-generic/test/wrapper-script.sh | 3 +++ test/Makefile.inc | 2 ++ test/performance/Makefile.am | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 platform/linux-generic/test/wrapper-script.sh diff --git a/platform/linux-generic/test/wrapper-script.sh b/platform/linux-generic/test/wrapper-script.sh new file mode 100755 index 0000000000..977a032ae6 --- /dev/null +++ b/platform/linux-generic/test/wrapper-script.sh @@ -0,0 +1,3 @@ +#wrapper script for pre setting environment for validation suit. +#currently this is empty but needs to be created to make it align with +#linux-dpdk. diff --git a/test/Makefile.inc b/test/Makefile.inc index eaf791e089..3e7dfe57f8 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -20,6 +20,8 @@ AM_CFLAGS = $(CUNIT_CFLAGS) AM_LDFLAGS = -L$(LIB) -static +LOG_COMPILER = $(top_srcdir)/platform/@with_platform@/test/wrapper-script.sh + @VALGRIND_CHECK_RULES@ TESTS_ENVIRONMENT = ODP_PLATFORM=${with_platform} \ diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am index 1dccd82e14..4417c48430 100644 --- a/test/performance/Makefile.am +++ b/test/performance/Makefile.am @@ -31,6 +31,6 @@ odp_sched_latency_SOURCES = odp_sched_latency.c odp_scheduling_SOURCES = odp_scheduling.c odp_pktio_perf_SOURCES = odp_pktio_perf.c -dist_check_SCRIPTS = $(TESTSCRIPTS) +dist_check_SCRIPTS = $(TESTSCRIPTS) $(LOG_COMPILER) dist_check_DATA = udp64.pcap