]> git.ipfire.org Git - thirdparty/lldpd.git/blame - tests/ci/install.sh
tests: add SNMP-related tests
[thirdparty/lldpd.git] / tests / ci / install.sh
CommitLineData
ed9e6f41
VB
1#!/bin/sh
2
3set -e
4
5case "$(uname -s)" in
6 Darwin)
7 brew update
d5c6300f
VB
8 # Workaround a bug in Travis:
9 # https://github.com/Homebrew/legacy-homebrew/issues/43874
10 brew uninstall libtool
759da342 11 brew install libtool libxml2 check
ed9e6f41 12 ;;
62f9ab5e 13 Linux)
4f9d887a
VB
14 # We prefer gcc-5
15 [ $CC != gcc ] || \
16 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
ed9e6f41
VB
17 sudo apt-get -qqy update
18 sudo apt-get -qqy install \
19 automake autoconf libtool pkg-config \
06987a24 20 libsnmp-dev libxml2-dev \
ed9e6f41 21 libevent-dev libreadline-dev libbsd-dev \
2063390b 22 check libc6-dbg libevent-dbg libseccomp-dev \
98745499
VB
23 libpcap-dev libcap-dev \
24 snmpd snmp
4f9d887a
VB
25 [ $CC != gcc ] || \
26 sudo apt-get -qqy install gcc-5
62f9ab5e
VB
27 # For integration tests
28 sudo -H $(which python3) -m pip install -r tests/integration/requirements.txt
ed9e6f41
VB
29 ;;
30esac