Be able to switch-off ASAN builds of our binaries.

Inroduce a way to not take a 2x performance hit when testing. It
is of importance if we run with hundreds of BTSes and 10k+ subscribers.
In the absence of using getops or shflags use an environment for it.

Change-Id: I540ba1c35e8fb72abcee0d86e0bdc1136b47345c
changes/65/11065/2
Holger Hans Peter Freyther 4 years ago committed by Harald Welte
parent fd760f6702
commit 90b050764a
  1. 4
      contrib/jenkins-build-common.sh
  2. 12
      contrib/jenkins-build-osmo-bsc.sh
  3. 6
      contrib/jenkins-build-osmo-bts.sh
  4. 4
      contrib/jenkins-build-osmo-ggsn.sh
  5. 6
      contrib/jenkins-build-osmo-hlr.sh
  6. 12
      contrib/jenkins-build-osmo-iuh.sh
  7. 8
      contrib/jenkins-build-osmo-mgw.sh
  8. 20
      contrib/jenkins-build-osmo-msc.sh
  9. 4
      contrib/jenkins-build-osmo-pcu.sh
  10. 16
      contrib/jenkins-build-osmo-sgsn.sh
  11. 8
      contrib/jenkins-build-osmo-stp.sh
  12. 6
      contrib/jenkins-build-osmocom-bb.sh

@ -49,6 +49,10 @@ prefix="${prefix-"$base/inst-$name"}"
# osmo-bts within the sysmoBTS SDK
prefix_real="${prefix_real-"$prefix"}"
# Flag to be used to enable ASAN in builds. Defaults to enable ASAN builds and
# it can be disabled by passing SANITIZE_FLAGS="" to the build.
SANITIZE_FLAGS="${SANITIZE_FLAGS---enable-sanitize}"
export PKG_CONFIG_PATH="$prefix_real/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$prefix_real/lib:$LD_LIBRARY_PATH"

@ -4,11 +4,11 @@ base="$PWD"
name="osmo-bsc"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo libosmo-sccp --enable-sanitize
build_repo osmo-mgw --enable-sanitize
build_repo osmo-bsc --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-sccp ${SANITIZE_FLAGS}
build_repo osmo-mgw ${SANITIZE_FLAGS}
build_repo osmo-bsc ${SANITIZE_FLAGS}
create_bin_tgz "osmo-bsc abisip-find ipaccess-config"

@ -6,8 +6,8 @@ name="osmo-bts"
have_repo octphy-2g-headers
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo osmo-bts --enable-sanitize --enable-trx --with-openbsc=$base/openbsc/openbsc/include --enable-octphy --with-octsdr-2g=$base/octphy-2g-headers
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo osmo-bts ${SANITIZE_FLAGS} --enable-trx --with-openbsc=$base/openbsc/openbsc/include --enable-octphy --with-octsdr-2g=$base/octphy-2g-headers
create_bin_tgz "osmo-bts-trx osmo-bts-octphy"

@ -4,7 +4,7 @@ base="$PWD"
name="osmo-ggsn"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo osmo-ggsn --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo osmo-ggsn ${SANITIZE_FLAGS}
create_bin_tgz osmo-ggsn

@ -4,8 +4,8 @@ base="$PWD"
name="osmo-hlr"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo osmo-hlr --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo osmo-hlr ${SANITIZE_FLAGS}
create_bin_tgz osmo-hlr

@ -4,12 +4,12 @@ base="$PWD"
name="osmo-iuh"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo libosmo-sccp --enable-sanitize
build_repo libasn1c --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-sccp ${SANITIZE_FLAGS}
build_repo libasn1c ${SANITIZE_FLAGS}
build_repo osmo-iuh --enable-sanitize
build_repo osmo-iuh ${SANITIZE_FLAGS}
create_bin_tgz "osmo-hnbgw"

@ -4,9 +4,9 @@ base="$PWD"
name="osmo-mgw"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo osmo-mgw --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo osmo-mgw ${SANITIZE_FLAGS}
create_bin_tgz "osmo-mgw"

@ -4,15 +4,15 @@ base="$PWD"
name="osmo-msc"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo libsmpp34 --enable-sanitize
build_repo libosmo-sccp --enable-sanitize
build_repo osmo-mgw --enable-sanitize
build_repo osmo-hlr --enable-sanitize
build_repo libasn1c --enable-sanitize
build_repo osmo-iuh --enable-sanitize
build_repo osmo-msc --enable-sanitize --enable-smpp --enable-iu
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo libsmpp34 ${SANITIZE_FLAGS}
build_repo libosmo-sccp ${SANITIZE_FLAGS}
build_repo osmo-mgw ${SANITIZE_FLAGS}
build_repo osmo-hlr ${SANITIZE_FLAGS}
build_repo libasn1c ${SANITIZE_FLAGS}
build_repo osmo-iuh ${SANITIZE_FLAGS}
build_repo osmo-msc ${SANITIZE_FLAGS} --enable-smpp --enable-iu
create_bin_tgz osmo-msc

@ -4,7 +4,7 @@ base="$PWD"
name="osmo-pcu"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-pcsc --disable-doxygen
build_repo osmo-pcu --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-pcsc --disable-doxygen
build_repo osmo-pcu ${SANITIZE_FLAGS}
create_bin_tgz osmo-pcu

@ -4,13 +4,13 @@ base="$PWD"
name="osmo-sgsn"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo libosmo-sccp --enable-sanitize
build_repo osmo-ggsn --enable-sanitize
build_repo libasn1c --enable-sanitize
build_repo osmo-iuh --enable-sanitize
build_repo osmo-sgsn --enable-sanitize --enable-iu
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-sccp ${SANITIZE_FLAGS}
build_repo osmo-ggsn ${SANITIZE_FLAGS}
build_repo libasn1c ${SANITIZE_FLAGS}
build_repo osmo-iuh ${SANITIZE_FLAGS}
build_repo osmo-sgsn ${SANITIZE_FLAGS} --enable-iu
create_bin_tgz osmo-sgsn

@ -4,9 +4,9 @@ base="$PWD"
name="osmo-stp"
. "$(dirname "$0")/jenkins-build-common.sh"
build_repo libosmocore --enable-sanitize --disable-doxygen
build_repo libosmo-abis --enable-sanitize
build_repo libosmo-netif --enable-sanitize --disable-doxygen
build_repo libosmo-sccp --enable-sanitize
build_repo libosmocore ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-abis ${SANITIZE_FLAGS}
build_repo libosmo-netif ${SANITIZE_FLAGS} --disable-doxygen
build_repo libosmo-sccp ${SANITIZE_FLAGS}
create_bin_tgz osmo-stp

@ -8,9 +8,9 @@ name="osmocom-bb"
FW_RPM_URL="http://download.opensuse.org/repositories/home:/mnhauke:/osmocom:/nightly/SLE_15/x86_64/"
build_repo libosmocore --disable-doxygen
build_repo_dir osmocom-bb src/host/virt_phy --enable-sanitize
build_repo_dir osmocom-bb src/host/osmocon --enable-sanitize
build_repo_dir osmocom-bb src/host/layer23 --enable-sanitize
build_repo_dir osmocom-bb src/host/virt_phy ${SANITIZE_FLAGS}
build_repo_dir osmocom-bb src/host/osmocon ${SANITIZE_FLAGS}
build_repo_dir osmocom-bb src/host/layer23 ${SANITIZE_FLAGS}
mkdir -p "$prefix"
cd "$prefix"

Loading…
Cancel
Save