Holger Hans Peter Freyther | 9646754 | 2016-08-03 21:13:15 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | rm -rf deps/install |
| 6 | mkdir deps || true |
| 7 | cd deps |
| 8 | git clone git://git.osmocom.org/libosmocore |
| 9 | |
| 10 | cd libosmocore |
| 11 | git reset --hard 460f9ef7da1db11b104fdfe635ebcbd8a071f205 |
| 12 | autoreconf --install --force |
| 13 | ./configure --prefix=$PWD/../install |
| 14 | make -j 4 install |
Holger Hans Peter Freyther | 0b4b824 | 2016-09-08 15:09:16 +0200 | [diff] [blame] | 15 | export LD_LIBRARY_PATH=$PWD/../install/lib |
| 16 | |
| 17 | cd ../ |
| 18 | git clone git://git.osmocom.org/python/osmo-python-tests |
| 19 | cd osmo-python-tests |
| 20 | sudo ./setup.py install |
Holger Hans Peter Freyther | 9646754 | 2016-08-03 21:13:15 +0200 | [diff] [blame] | 21 | |
| 22 | cd ../../ |
| 23 | autoreconf --install --force |
Holger Hans Peter Freyther | 0b4b824 | 2016-09-08 15:09:16 +0200 | [diff] [blame] | 24 | PCAP_LIBS="-lpcap" PCAP_CFLAGS="" PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig ./configure --with-pcap-config=/bin/true --enable-external-tests |
Holger Hans Peter Freyther | 9646754 | 2016-08-03 21:13:15 +0200 | [diff] [blame] | 25 | PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig make -j 4 |
Holger Hans Peter Freyther | 0b4b824 | 2016-09-08 15:09:16 +0200 | [diff] [blame] | 26 | PKG_CONFIG_PATH=$PWD/deps/install/lib/pkgconfig make check |
Holger Hans Peter Freyther | 9646754 | 2016-08-03 21:13:15 +0200 | [diff] [blame] | 27 | DISTCHECK_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 |