aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Holmes <mike.holmes@linaro.org>2016-05-20 13:31:38 -0400
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-05-23 17:02:24 +0300
commita1f2b5c0aee39c03b76d37fe18ec461c4b732b1e (patch)
treee731268bca70f404eb58ec839ab1e349b1ce44c0
parent44cd397e26187106ac4e203790ba6982bf348e3e (diff)
example: use one copy of pcap file
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--example/l2fwd_simple/Makefile.am2
-rwxr-xr-xexample/l2fwd_simple/l2fwd_simple_run.sh2
-rw-r--r--example/packet/Makefile.am2
-rwxr-xr-xexample/packet/pktio_run.sh2
-rw-r--r--example/packet/udp64.pcapbin7624 -> 0 bytes
-rw-r--r--example/switch/Makefile.am2
-rwxr-xr-xexample/switch/switch_run.sh2
-rw-r--r--example/switch/udp64.pcapbin7624 -> 0 bytes
-rw-r--r--pcap/Makefile.am1
-rw-r--r--pcap/udp64.pcap (renamed from example/l2fwd_simple/udp64.pcap)bin7624 -> 7624 bytes
12 files changed, 10 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 212947260..c1bd59446 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,7 +13,8 @@ SUBDIRS = @platform_with_platform@ \
helper/test \
doc \
example \
- scripts
+ scripts \
+ pcap
@DX_RULES@
diff --git a/configure.ac b/configure.ac
index 7cd6670c9..1ef9739c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -232,6 +232,7 @@ AC_CONFIG_FILES([Makefile
pkgconfig/libodp-linux.pc
pkgconfig/libodphelper-linux.pc
scripts/Makefile
+ pcap/Makefile
])
AC_SEARCH_LIBS([timer_create],[rt posix4])
diff --git a/example/l2fwd_simple/Makefile.am b/example/l2fwd_simple/Makefile.am
index fe2065452..4cb546277 100644
--- a/example/l2fwd_simple/Makefile.am
+++ b/example/l2fwd_simple/Makefile.am
@@ -14,4 +14,4 @@ if HAVE_PCAP
TESTS = l2fwd_simple_run.sh
endif
endif
-EXTRA_DIST = l2fwd_simple_run.sh udp64.pcap
+EXTRA_DIST = l2fwd_simple_run.sh
diff --git a/example/l2fwd_simple/l2fwd_simple_run.sh b/example/l2fwd_simple/l2fwd_simple_run.sh
index 292d0e3e1..7a49f5713 100755
--- a/example/l2fwd_simple/l2fwd_simple_run.sh
+++ b/example/l2fwd_simple/l2fwd_simple_run.sh
@@ -6,7 +6,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
-PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
+PCAP_IN=`find . ../../pcap -name udp64.pcap -print -quit`
echo "using PCAP_IN = ${PCAP_IN}"
./odp_l2fwd_simple pcap:in=${PCAP_IN} pcap:out=pcapout.pcap 02:00:00:00:00:01 02:00:00:00:00:02 &
diff --git a/example/packet/Makefile.am b/example/packet/Makefile.am
index af729b098..4abd8efc1 100644
--- a/example/packet/Makefile.am
+++ b/example/packet/Makefile.am
@@ -14,4 +14,4 @@ if HAVE_PCAP
TESTS = pktio_run.sh
endif
endif
-EXTRA_DIST = pktio_run.sh udp64.pcap
+EXTRA_DIST = pktio_run.sh
diff --git a/example/packet/pktio_run.sh b/example/packet/pktio_run.sh
index 3adb2d62e..5730c35fc 100755
--- a/example/packet/pktio_run.sh
+++ b/example/packet/pktio_run.sh
@@ -6,7 +6,7 @@
# SPDX-License-Identifier: BSD-3-Clause
#
-PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
+PCAP_IN=`find . ../../pcap -name udp64.pcap -print -quit`
PCAP_OUT="pcapout.pcap"
PCAP_IN_SIZE=`stat -c %s ${PCAP_IN}`
echo "using PCAP in=${PCAP_IN}:out=${PCAP_OUT} size %${PCAP_IN_SIZE}"
diff --git a/example/packet/udp64.pcap b/example/packet/udp64.pcap
deleted file mode 100644
index 45f9d6e63..000000000
--- a/example/packet/udp64.pcap
+++ /dev/null
Binary files differ
diff --git a/example/switch/Makefile.am b/example/switch/Makefile.am
index 4134bcf3d..fc5e9d066 100644
--- a/example/switch/Makefile.am
+++ b/example/switch/Makefile.am
@@ -14,4 +14,4 @@ if HAVE_PCAP
TESTS = switch_run.sh
endif
endif
-EXTRA_DIST = switch_run.sh udp64.pcap
+EXTRA_DIST = switch_run.sh
diff --git a/example/switch/switch_run.sh b/example/switch/switch_run.sh
index 3f8f9db36..be0bd9df4 100755
--- a/example/switch/switch_run.sh
+++ b/example/switch/switch_run.sh
@@ -9,7 +9,7 @@
NUM_RX_PORT=3
RETVAL=0
-PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
+PCAP_IN=`find . ../../pcap -name udp64.pcap -print -quit`
echo "Switch test using PCAP_IN = ${PCAP_IN}"
diff --git a/example/switch/udp64.pcap b/example/switch/udp64.pcap
deleted file mode 100644
index 45f9d6e63..000000000
--- a/example/switch/udp64.pcap
+++ /dev/null
Binary files differ
diff --git a/pcap/Makefile.am b/pcap/Makefile.am
new file mode 100644
index 000000000..31fc32ea2
--- /dev/null
+++ b/pcap/Makefile.am
@@ -0,0 +1 @@
+EXTRA_DIST = udp64.pcap
diff --git a/example/l2fwd_simple/udp64.pcap b/pcap/udp64.pcap
index 45f9d6e63..45f9d6e63 100644
--- a/example/l2fwd_simple/udp64.pcap
+++ b/pcap/udp64.pcap
Binary files differ