]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
travis: try to run integration tests on travis
authorVincent Bernat <vincent@bernat.im>
Thu, 4 Feb 2016 20:19:29 +0000 (21:19 +0100)
committerVincent Bernat <vincent@bernat.im>
Thu, 4 Feb 2016 20:19:29 +0000 (21:19 +0100)
It's likely to fail...

.travis.yml
.travis/install.sh
.travis/run.sh

index 7938fe4adf38a4848f518c0df4f7345d6681e13d..b30ca06dac0a8353762f612616dde982de9f46ed 100644 (file)
@@ -25,6 +25,11 @@ matrix:
     - os: osx
       compiler: clang
       env: LLDPD_CONFIG_ARGS="--with-snmp --with-xml --with-json"
+    - os: linux
+      compiler: gcc
+      env: 
+        - LLDPD_CONFIG_ARGS="--localstatedir=/var --sysconfdir=/etc --prefix=/usr"
+        - RUN_INTEGRATION=1
     - os: linux
       compiler: gcc
       env:
index 78f43735d0b0fe17fa36ee7c19044f409224b36a..34f7d1b943d59721981f2ab15f10391347e962dd 100755 (executable)
@@ -30,5 +30,9 @@ case "$(uname -s)" in
             libsnmp-dev libxml2-dev libjansson-dev \
             libevent-dev libreadline-dev libbsd-dev \
             check
+        [ x"$RUN_INTEGRATION" != x"1" ] || \
+            sudo apt-get -qqy install \
+                 vde2 iproute2 qemu-system-x86 \
+                 bridge-utils busybox
         ;;
 esac
index 4e8e67472d1e1a4fa47391968a6ae4900b4de66d..096f3fe514ed3d385ff81c7d291433fda3fecc5e 100755 (executable)
@@ -31,4 +31,9 @@ else
     if [ x"$TRAVIS_OS_NAME" = x"osx" ]; then
         make -C osx pkg
     fi
+    [ x"$RUN_INTEGRATION" != x"1" ] || {
+        cd tests
+        make integration-tests
+        sh integration-tests
+    }
 fi