aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/test
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2021-04-16 10:37:38 +0300
committerMatias Elo <matias.elo@nokia.com>2021-04-27 15:25:42 +0300
commit5b6bb50de0c0383a88d6367d0b64759e5a5d24a4 (patch)
treef135a727ea5b8a4fb9f290d392b65a7cf2c46a85 /platform/linux-dpdk/test
parentc87d3e05f5ebd37a4f8cd6ed3b48fc4f1fc3dc91 (diff)
example: l2fwd_simple: add validation test workaround for process mode
DPDK PCAP vdev may add some extra data to the end of the output file in process mode if the interface is started after fork. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/test')
-rw-r--r--platform/linux-dpdk/test/example/l2fwd_simple/pktio_env4
-rwxr-xr-xplatform/linux-dpdk/test/wrapper-script.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/platform/linux-dpdk/test/example/l2fwd_simple/pktio_env b/platform/linux-dpdk/test/example/l2fwd_simple/pktio_env
index c2cccffbc..d1cb6d84a 100644
--- a/platform/linux-dpdk/test/example/l2fwd_simple/pktio_env
+++ b/platform/linux-dpdk/test/example/l2fwd_simple/pktio_env
@@ -31,7 +31,9 @@ fi
validate_result()
{
- if [ `stat -c %s pcapout.pcap` -ne `stat -c %s ${PCAP_IN}` ]; then
+ # DPDK PCAP vdev may add some extra data to the end of the output file
+ # in process mode if the interface is started after fork.
+ if [ `stat -c %s pcapout.pcap` -lt `stat -c %s ${PCAP_IN}` ]; then
echo "File sizes disagree"
exit 1
fi
diff --git a/platform/linux-dpdk/test/wrapper-script.sh b/platform/linux-dpdk/test/wrapper-script.sh
index b092e1064..ccbcd5d7b 100755
--- a/platform/linux-dpdk/test/wrapper-script.sh
+++ b/platform/linux-dpdk/test/wrapper-script.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-export ODP_PLATFORM_PARAMS=${ODP_PLATFORM_PARAMS:---vdev="crypto_openssl" --vdev="crypto_null"}
+export ODP_PLATFORM_PARAMS=${ODP_PLATFORM_PARAMS:-"--vdev=crypto_openssl --vdev=crypto_null"}
# where to mount huge pages
export HUGEPAGEDIR=${HUGEPAGEDIR:-/mnt/huge}
# exit codes expected by automake for skipped tests