blob: 4614414ac87b338c1c86fb46e5a62848098698bb [file] [log] [blame]
Holger Hans Peter Freyther96467542016-08-03 21:13:15 +02001#!/usr/bin/env bash
2
3set -ex
4
5rm -rf deps/install
6mkdir deps || true
7cd deps
8git clone git://git.osmocom.org/libosmocore
9
10cd libosmocore
11git reset --hard 460f9ef7da1db11b104fdfe635ebcbd8a071f205
12autoreconf --install --force
13./configure --prefix=$PWD/../install
14make -j 4 install
Holger Hans Peter Freyther0b4b8242016-09-08 15:09:16 +020015export LD_LIBRARY_PATH=$PWD/../install/lib
16
17cd ../
18git clone git://git.osmocom.org/python/osmo-python-tests
19cd osmo-python-tests
20sudo ./setup.py install
Holger Hans Peter Freyther96467542016-08-03 21:13:15 +020021
22cd ../../
23autoreconf --install --force
Holger Hans Peter Freyther0b4b8242016-09-08 15:09:16 +020024PCAP_LIBS="-lpcap" PCAP_CFLAGS="" PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig ./configure --with-pcap-config=/bin/true --enable-external-tests
Holger Hans Peter Freyther96467542016-08-03 21:13:15 +020025PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig make -j 4
Holger Hans Peter Freyther0b4b8242016-09-08 15:09:16 +020026PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig make check
Holger Hans Peter Freyther96467542016-08-03 21:13:15 +020027DISTCHECK_CONFIGURE_FLAGS="--with-pcap-config=/bin/true" PCAP_LIBS="-lpcap" PCAP_CFLAGS="" PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig LD_LIBRARY_PATH=$PWD/deps/install/lib make distcheck