diff mbox

travis: add netmap pktio tests

Message ID 20170121191508.32365-1-maxim.uvarov@linaro.org
State Accepted
Commit 6ccae3b2720a4ad84d3e50aa5851f64eb3d83b3c
Headers show

Commit Message

Maxim Uvarov Jan. 21, 2017, 7:15 p.m. UTC
previusly we missed running tests under root, so we did not
run pktio afpacket mmap and dpdk and tests based on veth.
Netmap also requires root to bing up virtual interfaces.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
 This patch should go after Matias netmap update patches.


 .travis.yml | 23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

-- 
2.11.0.295.gd7dffce

Comments

Maxim Uvarov Jan. 27, 2017, 2:31 p.m. UTC | #1
ping

On 01/21/17 22:15, Maxim Uvarov wrote:
> previusly we missed running tests under root, so we did not

> run pktio afpacket mmap and dpdk and tests based on veth.

> Netmap also requires root to bing up virtual interfaces.

> 

> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

> ---

>  This patch should go after Matias netmap update patches.

> 

> 

>  .travis.yml | 23 ++++++++++++++++++++---

>  1 file changed, 20 insertions(+), 3 deletions(-)

> 

> diff --git a/.travis.yml b/.travis.yml

> index 03e61b18..4d7ebbaf 100644

> --- a/.travis.yml

> +++ b/.travis.yml

> @@ -18,6 +18,10 @@ compiler: clang

>  sudo: required

>  

>  before_install:

> +        - echo 1000 | sudo tee /proc/sys/vm/nr_hugepages

> +        - sudo mkdir -p /mnt/huge

> +        - sudo mount -t hugetlbfs nodev /mnt/huge

> +

>          - sudo apt-get -qq update

>          - sudo apt-get install automake autoconf libtool libssl-dev graphviz mscgen doxygen

>          - sudo apt-get install libpcap-dev linux-headers-`uname -r`

> @@ -34,6 +38,7 @@ before_install:

>          - sudo make install

>          - cd ..

>          - export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

> +

>  #	DPDK pktio

>          - TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"}

>          - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v16.07 http://dpdk.org/git/dpdk dpdk

> @@ -46,12 +51,24 @@ before_install:

>          - make install T=${TARGET} EXTRA_CFLAGS="-fPIC" > /dev/null

>          - popd

>  

> +#	Netmap pktio

> +        - sudo apt-get source linux-image-$(uname -r) > /dev/null

> +        - KSRC="$PWD/`find . -name kernel-parameters.txt | cut -d / -f 2 `"

> +        - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git

> +        - pushd netmap/LINUX

> +        - ./configure --kernel-sources=$KSRC

> +        - make > /dev/null

> +        - sudo insmod ./netmap.ko

> +        - popd

> +

>  script:

>  

>          - ./bootstrap

> -        - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET}

> -        - make check

> -        - git clean -f -d -x && rm -rf dpdk

> +        - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap

> +        - make -j 4

> +        - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check

> +        - sudo git clean -f -d -x && rm -rf dpdk && rm -rf netmap && rm -rf $KSRC

> +

>          - ./bootstrap

>          - ./configure

>          - make doxygen-doc

>
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index 03e61b18..4d7ebbaf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,10 @@  compiler: clang
 sudo: required
 
 before_install:
+        - echo 1000 | sudo tee /proc/sys/vm/nr_hugepages
+        - sudo mkdir -p /mnt/huge
+        - sudo mount -t hugetlbfs nodev /mnt/huge
+
         - sudo apt-get -qq update
         - sudo apt-get install automake autoconf libtool libssl-dev graphviz mscgen doxygen
         - sudo apt-get install libpcap-dev linux-headers-`uname -r`
@@ -34,6 +38,7 @@  before_install:
         - sudo make install
         - cd ..
         - export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
+
 #	DPDK pktio
         - TARGET=${TARGET:-"x86_64-native-linuxapp-gcc"}
         - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v16.07 http://dpdk.org/git/dpdk dpdk
@@ -46,12 +51,24 @@  before_install:
         - make install T=${TARGET} EXTRA_CFLAGS="-fPIC" > /dev/null
         - popd
 
+#	Netmap pktio
+        - sudo apt-get source linux-image-$(uname -r) > /dev/null
+        - KSRC="$PWD/`find . -name kernel-parameters.txt | cut -d / -f 2 `"
+        - git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git
+        - pushd netmap/LINUX
+        - ./configure --kernel-sources=$KSRC
+        - make > /dev/null
+        - sudo insmod ./netmap.ko
+        - popd
+
 script:
 
         - ./bootstrap
-        - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET}
-        - make check
-        - git clean -f -d -x && rm -rf dpdk
+        - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET} --with-netmap-path=`pwd`/netmap
+        - make -j 4
+        - sudo LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" make check
+        - sudo git clean -f -d -x && rm -rf dpdk && rm -rf netmap && rm -rf $KSRC
+
         - ./bootstrap
         - ./configure
         - make doxygen-doc