Holger Hans Peter Freyther | a47b401 | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -ex |
| 4 | |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 5 | base="$PWD" |
| 6 | deps="$base/deps" |
| 7 | inst="$deps/install" |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 8 | export deps inst |
Holger Hans Peter Freyther | a47b401 | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 9 | |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 10 | mkdir "$deps" || true |
| 11 | rm -rf "$inst" |
| 12 | |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 13 | osmo-build-dep.sh libosmocore "" ac_cv_path_DOXYGEN=false |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 14 | |
Neels Hofmeyr | ac27a99 | 2017-03-01 15:06:16 +0100 | [diff] [blame] | 15 | "$deps"/libosmocore/contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") |
| 16 | |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 17 | export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH" |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 18 | export LD_LIBRARY_PATH="$inst/lib" |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 19 | |
Neels Hofmeyr | d75f11e | 2017-04-10 20:57:09 +0200 | [diff] [blame] | 20 | if [ "x$IU" = "x--enable-iu" ]; then |
| 21 | sccp_branch="old_sua" |
Neels Hofmeyr | 2758330 | 2017-07-10 16:19:08 +0200 | [diff] [blame] | 22 | osmo_iuh_branch="old_sua" |
Neels Hofmeyr | d75f11e | 2017-04-10 20:57:09 +0200 | [diff] [blame] | 23 | fi |
| 24 | |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 25 | osmo-build-dep.sh libosmo-abis |
Neels Hofmeyr | 4aa75e7 | 2017-03-31 14:03:39 +0200 | [diff] [blame] | 26 | osmo-build-dep.sh libosmo-netif |
Neels Hofmeyr | d75f11e | 2017-04-10 20:57:09 +0200 | [diff] [blame] | 27 | osmo-build-dep.sh libosmo-sccp $sccp_branch |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 28 | PARALLEL_MAKE="" osmo-build-dep.sh libsmpp34 |
| 29 | osmo-build-dep.sh openggsn |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 30 | |
Neels Hofmeyr | 9759374 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 31 | if [ "x$IU" = "x--enable-iu" ]; then |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 32 | osmo-build-dep.sh libasn1c |
| 33 | #osmo-build-dep.sh asn1c aper-prefix # only needed for make regen in osmo-iuh |
Neels Hofmeyr | 2758330 | 2017-07-10 16:19:08 +0200 | [diff] [blame] | 34 | osmo-build-dep.sh osmo-iuh $osmo_iuh_branch |
Neels Hofmeyr | 9759374 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 35 | fi |
| 36 | |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 37 | set +x |
| 38 | echo |
| 39 | echo |
| 40 | echo |
Neels Hofmeyr | bf28485 | 2017-07-12 23:37:05 +0200 | [diff] [blame] | 41 | echo " =============================== osmo-msc ===============================" |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 42 | echo |
| 43 | set -x |
| 44 | |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 45 | cd "$base" |
Holger Hans Peter Freyther | a47b401 | 2016-04-13 19:03:38 -0400 | [diff] [blame] | 46 | autoreconf --install --force |
Neels Hofmeyr | 9759374 | 2016-07-11 19:44:58 +0200 | [diff] [blame] | 47 | ./configure --enable-osmo-bsc --enable-nat $SMPP $MGCP $IU --enable-vty-tests --enable-external-tests |
Neels Hofmeyr | a3d93ed | 2016-07-11 19:39:51 +0200 | [diff] [blame] | 48 | $MAKE $PARALLEL_MAKE |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 49 | LD_LIBRARY_PATH="$inst/lib" $MAKE check \ |
| 50 | || cat-testlogs.sh |
Neels Hofmeyr | f2ff307 | 2017-07-20 17:57:37 +0200 | [diff] [blame] | 51 | LD_LIBRARY_PATH="$inst/lib" \ |
| 52 | DISTCHECK_CONFIGURE_FLAGS="--enable-osmo-bsc --enable-nat $SMPP $MGCP $IU --enable-vty-tests --enable-external-tests" \ |
| 53 | $MAKE distcheck \ |
Neels Hofmeyr | f1a56de | 2016-10-07 00:58:22 +0200 | [diff] [blame] | 54 | || cat-testlogs.sh |