pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/34397?usp=email )
Change subject: DONTMERGE ......................................................................
DONTMERGE
Change-Id: I2769f30aea65b69f7dc96212a7d869aa97a92d69 --- M common/ttcn3-docker-prepare.sh M debian-buster-build/Dockerfile M make/Makefile M open5gs-master/Dockerfile M osmo-bsc-master/Dockerfile M osmo-bts-master/Dockerfile M osmo-cbc-master/Dockerfile M osmo-gbproxy-master/Dockerfile M osmo-ggsn-master/Dockerfile M osmo-hnbgw-master/Dockerfile M osmo-hnodeb-master/Dockerfile M osmo-mgw-master/Dockerfile M osmo-msc-master/Dockerfile M osmo-pcu-master/Dockerfile M osmo-sgsn-master/Dockerfile M osmo-stp-master/Dockerfile M osmo-uecups-master/Dockerfile M osmocom-bb-host-master/Dockerfile M ttcn3-bsc-test/BSC_Tests.cfg M ttcn3-bsc-test/osmo-bsc.cfg M ttcn3-bsc-test/sccplite/BSC_Tests.cfg M ttcn3-bts-test/generic/BTS_Tests.cfg M ttcn3-bts-test/oml/BTS_Tests.cfg M ttcn3-cbc-test/CBC_Tests.cfg M ttcn3-cbc-test/jenkins.sh M ttcn3-gbproxy-test-fr/GBProxy_Tests.cfg M ttcn3-gbproxy-test/GBProxy_Tests.cfg M ttcn3-ggsn-test/GGSN_Tests.cfg M ttcn3-ggsn-test/jenkins-ogs.sh M ttcn3-ggsn-test/jenkins.sh M ttcn3-ggsn-test/ogs/GGSN_Tests.cfg M ttcn3-ggsn-test/ogs/open5gs-smf.yaml M ttcn3-ggsn-test/ogs/open5gs-upf.yaml M ttcn3-ggsn-test/ogs/upfd-setup.sh M ttcn3-ggsn-test/ogs/upfd.sh M ttcn3-ggsn-test/osmo-ggsn.cfg M ttcn3-hnbgw-test/HNBGW_Tests.cfg M ttcn3-hnodeb-test/HNB_Tests.cfg M ttcn3-hnodeb-test/osmo-hnodeb.cfg M ttcn3-mgw-test/MGCP_Test.cfg M ttcn3-mgw-test/jenkins.sh M ttcn3-msc-test/MSC_Tests.cfg M ttcn3-pcu-test/PCU_Tests.cfg M ttcn3-pcu-test/sns/PCU_Tests.cfg M ttcn3-pgw-test/PGW_Tests.cfg M ttcn3-pgw-test/jenkins.sh M ttcn3-sgsn-test/SGSN_Tests.cfg M ttcn3-sip-test/SIP_Tests.cfg M ttcn3-stp-test/STP_Tests.cfg 49 files changed, 975 insertions(+), 44 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/97/34397/1
diff --git a/common/ttcn3-docker-prepare.sh b/common/ttcn3-docker-prepare.sh index c2b28b9..2c18b53 100755 --- a/common/ttcn3-docker-prepare.sh +++ b/common/ttcn3-docker-prepare.sh @@ -14,7 +14,7 @@ shift
cd /osmo-ttcn3-hacks - +git remote set-url origin "https://gerrit.osmocom.org/osmo-ttcn3-hacks" git fetch git checkout "$OSMO_TTCN3_BRANCH"
diff --git a/debian-buster-build/Dockerfile b/debian-buster-build/Dockerfile index 0d2b5b7..c54af17 100644 --- a/debian-buster-build/Dockerfile +++ b/debian-buster-build/Dockerfile @@ -39,6 +39,7 @@ libgnutls28-dev \ libgps-dev \ libgsm1-dev \ + libmnl-dev \ libncurses5-dev \ libnewlib-arm-none-eabi \ libortp-dev \ diff --git a/make/Makefile b/make/Makefile index 126fd94..9983e05 100644 --- a/make/Makefile +++ b/make/Makefile @@ -18,6 +18,8 @@ UID=$(shell id -u) NAME?=$(shell basename $(CURDIR)) LIBOSMOCORE_BRANCH?=master +LIBOSMOABIS_BRANCH?=master +LIBOSMONETIF_BRANCH?=master OSMO_TTCN3_BRANCH?=master OSMO_BB_BRANCH?=master OSMO_BSC_BRANCH?=master @@ -100,6 +102,8 @@ --build-arg OSMOCOM_REPO_VERSION=$(OSMOCOM_REPO_VERSION) \ --build-arg OSMOCOM_REPO_TESTSUITE_MIRROR=$(OSMOCOM_REPO_TESTSUITE_MIRROR) \ --build-arg LIBOSMOCORE_BRANCH=$(LIBOSMOCORE_BRANCH) \ + --build-arg LIBOSMOABIS_BRANCH=$(LIBOSMOABIS_BRANCH) \ + --build-arg LIBOSMONETIF_BRANCH=$(LIBOSMONETIF_BRANCH) \ --build-arg OSMO_BB_BRANCH=$(OSMO_BB_BRANCH) \ --build-arg OSMO_BSC_BRANCH=$(OSMO_BSC_BRANCH) \ --build-arg OSMO_BTS_BRANCH=$(OSMO_BTS_BRANCH) \ diff --git a/open5gs-master/Dockerfile b/open5gs-master/Dockerfile index fc88f9e..724e8d7 100644 --- a/open5gs-master/Dockerfile +++ b/open5gs-master/Dockerfile @@ -16,6 +16,16 @@ net-tools && \ apt-get clean
+RUN apt-get update && \ + apt-get upgrade -y && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends \ + gdb \ + libtalloc-dev \ + valgrind \ + tcpdump && \ + apt-get clean + # create a user ARG username=osmocom RUN useradd -m ${username} && \ diff --git a/osmo-bsc-master/Dockerfile b/osmo-bsc-master/Dockerfile index 65ec5d4..b4ca97f 100644 --- a/osmo-bsc-master/Dockerfile +++ b/osmo-bsc-master/Dockerfile @@ -34,6 +34,84 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_STP_BRANCH="master" + +RUN git clone git://git.osmocom.org/libosmo-sccp.git +ADD http://git.osmocom.org/libosmo-sccp/patch?h=$OSMO_STP_BRANCH /tmp/commit +RUN cd libosmo-sccp && \ + git fetch && git checkout $OSMO_STP_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_STP_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure --enable-sanitize && \ + make "-j$(nproc)" install && \ + install examples/.libs/sccp_demo_user /usr/local/bin/ && \ + ldconfig + +ARG OSMO_MGW_BRANCH="master" + +RUN git clone git://git.osmocom.org/osmo-mgw.git +ADD http://git.osmocom.org/osmo-mgw/patch?h=$OSMO_MGW_BRANCH /tmp/commit-osmo-mgw + +RUN cd osmo-mgw && \ + git fetch && git checkout $OSMO_MGW_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MGW_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure && \ + make "-j$(nproc)" install && \ + ldconfig + ARG OSMO_BSC_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-bsc.git @@ -44,7 +122,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_BSC_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install
VOLUME /data diff --git a/osmo-bts-master/Dockerfile b/osmo-bts-master/Dockerfile index 8c43973..850bc10 100644 --- a/osmo-bts-master/Dockerfile +++ b/osmo-bts-master/Dockerfile @@ -13,7 +13,8 @@ libosmo-netif-dev \ libosmo-sccp-dev \ libsmpp34-dev \ - libgtp-dev && \ + libgtp-dev \ + gdb && \ apt-get clean \ ;; \ centos*) \ @@ -33,6 +34,57 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_BTS_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-bts.git @@ -43,7 +95,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_BTS_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-trx && \ + ./configure --enable-trx --enable-sanitize && \ make "-j$(nproc)" install
VOLUME /data diff --git a/osmo-cbc-master/Dockerfile b/osmo-cbc-master/Dockerfile index 0e90fc8..07900f8 100644 --- a/osmo-cbc-master/Dockerfile +++ b/osmo-cbc-master/Dockerfile @@ -11,6 +11,8 @@ libosmocore-dev \ libosmo-netif-dev \ libulfius-dev \ + libsctp-dev \ + gdb \ && \ apt-get clean \ ;; \ @@ -27,6 +29,68 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-libsctp \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && ./configure \ + --disable-doxygen \ + --enable-libsctp \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && ./configure \ + --disable-doxygen \ + --enable-libsctp \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_CBC_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-cbc.git @@ -37,7 +101,10 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_CBC_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-gbproxy-master/Dockerfile b/osmo-gbproxy-master/Dockerfile index 484bb88..802046e 100644 --- a/osmo-gbproxy-master/Dockerfile +++ b/osmo-gbproxy-master/Dockerfile @@ -28,6 +28,56 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_GBPROXY_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-gbproxy.git @@ -38,7 +88,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_GBPROXY_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-ggsn-master/Dockerfile b/osmo-ggsn-master/Dockerfile index 7f505d0..1bd65ec 100644 --- a/osmo-ggsn-master/Dockerfile +++ b/osmo-ggsn-master/Dockerfile @@ -33,8 +33,35 @@ ;; \ esac
+RUN apt-get update && \ + apt-get upgrade -y && \ + DEBIAN_FRONTEND=noninteractive \ + apt-get install -y --no-install-recommends \ + gdb \ + libtalloc-dev \ + tcpdump && \ + apt-get clean + WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_GGSN_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-ggsn.git @@ -45,7 +72,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_GGSN_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-gtp-linux && \ + ./configure --enable-gtp-linux --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-hnbgw-master/Dockerfile b/osmo-hnbgw-master/Dockerfile index f69a6b4..7ed85a1 100644 --- a/osmo-hnbgw-master/Dockerfile +++ b/osmo-hnbgw-master/Dockerfile @@ -6,6 +6,7 @@
RUN apt-get update && \ apt-get install -y --no-install-recommends \ + gdb \ libosmocore-dev \ libosmo-abis-dev \ libosmo-mgcp-client-dev \ @@ -21,6 +22,73 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_IUH_BRANCH="master" + +RUN git clone git://git.osmocom.org/osmo-iuh.git +ADD http://git.osmocom.org/osmo-iuh/patch?h=$OSMO_IUH_BRANCH /tmp/commit-osmo-iuh + +RUN cd osmo-iuh && \ + git fetch && git checkout $OSMO_IUH_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_IUH_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure && \ + make "-j$(nproc)" install && \ + ldconfig + + ARG OSMO_HNBGW_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-hnbgw.git @@ -31,7 +99,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_HNBGW_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-pfcp && \ + ./configure --enable-pfcp --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-hnodeb-master/Dockerfile b/osmo-hnodeb-master/Dockerfile index ffdb639..032fda6 100644 --- a/osmo-hnodeb-master/Dockerfile +++ b/osmo-hnodeb-master/Dockerfile @@ -15,6 +15,58 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_IUH_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-iuh.git @@ -39,7 +91,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_HNODEB_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-mgw-master/Dockerfile b/osmo-mgw-master/Dockerfile index 20b5b1a..dbd284e 100644 --- a/osmo-mgw-master/Dockerfile +++ b/osmo-mgw-master/Dockerfile @@ -8,6 +8,7 @@ debian*) \ apt-get update && \ apt-get install -y --no-install-recommends \ + gdb \ libosmocore-dev \ libosmo-abis-dev \ libosmo-netif-dev \ @@ -29,6 +30,58 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + --enable-libsctp \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_MGW_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-mgw.git @@ -40,7 +93,10 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MGW_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + export CFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-msc-master/Dockerfile b/osmo-msc-master/Dockerfile index 7a0362d..8ac335b 100644 --- a/osmo-msc-master/Dockerfile +++ b/osmo-msc-master/Dockerfile @@ -42,6 +42,85 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_STP_BRANCH="master" + +RUN git clone git://git.osmocom.org/libosmo-sccp.git +ADD http://git.osmocom.org/libosmo-sccp/patch?h=$OSMO_STP_BRANCH /tmp/commit +RUN cd libosmo-sccp && \ + git fetch && git checkout $OSMO_STP_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_STP_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure --enable-sanitize && \ + make "-j$(nproc)" install && \ + install examples/.libs/sccp_demo_user /usr/local/bin/ && \ + ldconfig + +ARG OSMO_MGW_BRANCH="master" + +RUN git clone git://git.osmocom.org/osmo-mgw.git +ADD http://git.osmocom.org/osmo-mgw/patch?h=$OSMO_MGW_BRANCH /tmp/commit-osmo-mgw + + +RUN cd osmo-mgw && \ + git fetch && git checkout $OSMO_MGW_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MGW_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure && \ + make "-j$(nproc)" install && \ + ldconfig + ARG OSMO_MSC_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-msc.git @@ -52,7 +131,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_MSC_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-smpp --enable-iu && \ + ./configure --enable-smpp --enable-iu --enable-sanitize && \ make "-j$(nproc)" install
VOLUME /data diff --git a/osmo-pcu-master/Dockerfile b/osmo-pcu-master/Dockerfile index ac0fc1e..e9e5caf 100644 --- a/osmo-pcu-master/Dockerfile +++ b/osmo-pcu-master/Dockerfile @@ -23,6 +23,25 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --enable-force-io-select \ + --prefix=/usr/local --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_PCU_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-pcu.git @@ -32,9 +51,10 @@ git fetch && git checkout $OSMO_PCU_BRANCH && \ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_PCU_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" && \ autoreconf -fi && \ - ./configure && \ - make "-j$(nproc)" install + ./configure --enable-sanitize && \ + make "-j$(nproc)" V=1 install
VOLUME /data
diff --git a/osmo-sgsn-master/Dockerfile b/osmo-sgsn-master/Dockerfile index edd912f..53eb8b5 100644 --- a/osmo-sgsn-master/Dockerfile +++ b/osmo-sgsn-master/Dockerfile @@ -10,11 +10,9 @@ apt-get install -y --no-install-recommends \ libosmocore-dev \ libosmo-abis-dev \ + telnet \ libosmo-gsup-client-dev \ - libosmo-netif-dev \ libosmo-ranap-dev \ - libosmo-sccp-dev \ - libosmo-sigtran-dev \ libsmpp34-dev \ libgtp-dev \ libasn1c-dev && \ @@ -40,6 +38,86 @@
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_GGSN_BRANCH="master" +RUN git clone git://git.osmocom.org/osmo-ggsn +ADD http://git.osmocom.org/osmo-ggsn/patch?h=$OSMO_GGSN_BRANCH /tmp/commit-osmo-ggsn + +RUN cd osmo-ggsn \ + && git fetch && git checkout -f -B $OSMO_GGSN_BRANCH origin/$OSMO_GGSN_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG OSMO_STP_BRANCH="master" + +RUN git clone git://git.osmocom.org/libosmo-sccp.git +ADD http://git.osmocom.org/libosmo-sccp/patch?h=$OSMO_STP_BRANCH /tmp/commit +RUN cd libosmo-sccp && \ + git fetch && git checkout $OSMO_STP_BRANCH && \ + (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_STP_BRANCH || exit 1); \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ + autoreconf -fi && \ + ./configure --enable-sanitize && \ + make "-j$(nproc)" install && \ + install examples/.libs/sccp_demo_user /usr/local/bin/ && \ + ldconfig + ARG OSMO_SGSN_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-sgsn.git @@ -50,7 +128,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_SGSN_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure --enable-iu && \ + ./configure --enable-iu --enable-sanitize && \ make "-j$(nproc)" install && \ ldconfig
diff --git a/osmo-stp-master/Dockerfile b/osmo-stp-master/Dockerfile index 2e6ecd6..fb6a84e 100644 --- a/osmo-stp-master/Dockerfile +++ b/osmo-stp-master/Dockerfile @@ -9,7 +9,8 @@ apt-get update && \ apt-get install -y --no-install-recommends \ libosmocore-dev \ - libosmo-netif-dev && \ + libosmo-netif-dev \ + telnet libosmo-abis-dev && \ apt-get clean \ ;; \ centos*) \ @@ -23,6 +24,56 @@
WORKDIR /data
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j5 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + --enable-sanitize \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_STP_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmo-sccp.git @@ -33,7 +84,7 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_STP_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ - ./configure && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install && \ install examples/.libs/sccp_demo_user /usr/local/bin/ && \ ldconfig diff --git a/osmo-uecups-master/Dockerfile b/osmo-uecups-master/Dockerfile index 793fe6b..dbcfd3e 100644 --- a/osmo-uecups-master/Dockerfile +++ b/osmo-uecups-master/Dockerfile @@ -12,11 +12,62 @@ libosmo-netif-dev \ libsctp-dev \ iputils-ping \ + gdb \ strace && \ apt-get clean
WORKDIR /tmp
+# Download, build and install libosmocore +ARG LIBOSMOCORE_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmocore +ADD http://git.osmocom.org/libosmocore/patch?h=$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore + +RUN cd libosmocore \ + && git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && ./configure \ + --disable-doxygen \ + --disable-pcsc \ + --prefix=/usr/local \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMOABIS_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-abis +ADD http://git.osmocom.org/libosmo-abis/patch?h=$LIBOSMOABIS_BRANCH /tmp/commit-libosmoabis + +RUN cd libosmo-abis \ + && git fetch && git checkout -f -B $LIBOSMOABIS_BRANCH origin/$LIBOSMOABIS_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + +ARG LIBOSMONETIF_BRANCH="master" +RUN git clone git://git.osmocom.org/libosmo-netif +ADD http://git.osmocom.org/libosmo-netif/patch?h=$LIBOSMONETIF_BRANCH /tmp/commit-libosmonetif + +RUN cd libosmo-netif \ + && git fetch && git checkout -f -B $LIBOSMONETIF_BRANCH origin/$LIBOSMONETIF_BRANCH \ + && git rev-parse --abbrev-ref HEAD && git rev-parse HEAD \ + && autoreconf -fi \ + && ./configure \ + --disable-doxygen \ + --prefix=/usr/local \ + && make -j8 \ + && make install \ + && make distclean && ldconfig + ARG OSMO_UECUPS_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-uecups.git @@ -27,6 +78,9 @@ (git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_UECUPS_BRANCH || exit 1); \ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CFLAGS="-g -O0 -fno-omit-frame-pointer" \ + && export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" && \ ./configure && \ make "-j$(nproc)" install
diff --git a/osmocom-bb-host-master/Dockerfile b/osmocom-bb-host-master/Dockerfile index efc9925..7ee010c 100644 --- a/osmocom-bb-host-master/Dockerfile +++ b/osmocom-bb-host-master/Dockerfile @@ -7,6 +7,7 @@
RUN apt-get update && \ apt-get install -y --no-install-recommends \ + gdb \ libosmocore-dev && \ apt-get clean
@@ -22,7 +23,10 @@
RUN cd osmocom-bb/src/host/trxcon && \ autoreconf -fi && \ - ./configure && \ + export CPPFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + export CFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + export CXXFLAGS="-g -O0 -fno-omit-frame-pointer" && \ + ./configure --enable-sanitize && \ make "-j$(nproc)" install
RUN cd osmocom-bb/src/host/virt_phy && \ diff --git a/ttcn3-bsc-test/BSC_Tests.cfg b/ttcn3-bsc-test/BSC_Tests.cfg index 80e06ee..f5cc311 100644 --- a/ttcn3-bsc-test/BSC_Tests.cfg +++ b/ttcn3-bsc-test/BSC_Tests.cfg @@ -71,5 +71,13 @@
[EXECUTE] BSC_Tests.control -BSC_Tests_LCLS.control -BSC_Tests_CBSP.control +#BSC_Tests_LCLS.control +#BSC_Tests_CBSP.control +#BSC_Tests.TC_assignment_codec_fr +#BSC_Tests.TC_assignment_osmux_bts +#BSC_Tests.TC_assignment_osmux_cn +#BSC_Tests.TC_mgwpool_all_used +#BSC_Tests.TC_mgwpool_blocked_not_used +#BSC_Tests.TC_paging_500req +#BSC_Tests.TC_lcs_loc_req_for_idle_ms +#BSC_Tests.TC_lcs_loc_req_no_subscriber diff --git a/ttcn3-bsc-test/osmo-bsc.cfg b/ttcn3-bsc-test/osmo-bsc.cfg index 5902b1d..88ca321 100644 --- a/ttcn3-bsc-test/osmo-bsc.cfg +++ b/ttcn3-bsc-test/osmo-bsc.cfg @@ -43,6 +43,7 @@ logging level lsua notice logging level lm3ua notice logging level lmgcp notice + logging level set-all debug ! stats interval 0 stats reporter statsd diff --git a/ttcn3-bsc-test/sccplite/BSC_Tests.cfg b/ttcn3-bsc-test/sccplite/BSC_Tests.cfg index 5103e2e..8b9ff84 100644 --- a/ttcn3-bsc-test/sccplite/BSC_Tests.cfg +++ b/ttcn3-bsc-test/sccplite/BSC_Tests.cfg @@ -31,3 +31,4 @@
[EXECUTE] BSC_Tests.control +#BSC_Tests.TC_assignment_codec_amr_f diff --git a/ttcn3-bts-test/generic/BTS_Tests.cfg b/ttcn3-bts-test/generic/BTS_Tests.cfg index 7015111..11329d6 100644 --- a/ttcn3-bts-test/generic/BTS_Tests.cfg +++ b/ttcn3-bts-test/generic/BTS_Tests.cfg @@ -24,6 +24,22 @@
[EXECUTE] BTS_Tests.control -BTS_Tests_SMSCB.control -BTS_Tests_LAPDm.control -BTS_Tests_VAMOS.control +#BTS_Tests_SMSCB.control +#BTS_Tests_LAPDm.control +#BTS_Tests_VAMOS.control +#BTS_Tests.TC_meas_res_sign_sdcch4 +#BTS_Tests.TC_ipa_dlcx_not_active +#BTS_Tests_VAMOS.TC_vamos_chan_act_vff + +#BTS_Tests.TC_speech_osmux_tchh +#BTS_Tests.TC_speech_rtp_tchf + +#BTS_Tests_SMSCB.control +#BTS_Tests_SMSCB.TC_cbc_sdcch4_load_idle +#BTS_Tests_SMSCB.TC_cbc_sdcch4_load_overload +#BTS_Tests_SMSCB.TC_sms_cb_cmd_sdcch8_1block +#BTS_Tests_SMSCB.TC_sms_cb_cmd_sdcch8_2block +#BTS_Tests.TC_pcu_data_ind_lqual_cb +#BTS_Tests.TC_speech_rtp_tchf +#BTS_Tests.TC_speech_rtp_tchh +#BTS_Tests.TC_speech_osmux_tchf diff --git a/ttcn3-bts-test/oml/BTS_Tests.cfg b/ttcn3-bts-test/oml/BTS_Tests.cfg index bcecf28..ed59033 100644 --- a/ttcn3-bts-test/oml/BTS_Tests.cfg +++ b/ttcn3-bts-test/oml/BTS_Tests.cfg @@ -24,4 +24,7 @@ [MAIN_CONTROLLER]
[EXECUTE] -BTS_Tests_OML.control +#BTS_Tests_OML.control +#BTS_Tests_OML.TC_bts_opstart +#BTS_Tests_OML.TC_bts_opstart +BTS_Tests_OML.TC_ipa_osmo_pcu_anr_fwd diff --git a/ttcn3-cbc-test/CBC_Tests.cfg b/ttcn3-cbc-test/CBC_Tests.cfg index 6e7ab21..c32a8e9 100644 --- a/ttcn3-cbc-test/CBC_Tests.cfg +++ b/ttcn3-cbc-test/CBC_Tests.cfg @@ -16,3 +16,7 @@
[EXECUTE] CBC_Tests.control +#CBC_Tests.TC_ecbe_create_delete_cgi +#CBC_Tests.TC_ecbe_create_delete_bsc_server +#CBC_Tests.TC_cell_failure_restart_active_bsc +#CBC_Tests.TC_cell_failure_restart_active_mme diff --git a/ttcn3-cbc-test/jenkins.sh b/ttcn3-cbc-test/jenkins.sh index e1958ef..102b528 100755 --- a/ttcn3-cbc-test/jenkins.sh +++ b/ttcn3-cbc-test/jenkins.sh @@ -26,7 +26,8 @@ -v $VOL_BASE_DIR/cbc:/data \ --name ${BUILD_TAG}-cbc -d \ $DOCKER_ARGS \ - $REPO_USER/osmo-cbc-$IMAGE_SUFFIX + $REPO_USER/osmo-cbc-$IMAGE_SUFFIX \ + /bin/sh -c "gdb -ex 'run' -ex 'bt' --arg osmo-cbc -c /data/osmo-cbc.cfg >/data/osmo-cbc.log 2>&1"
echo Starting container with CBC testsuite docker run --rm \ diff --git a/ttcn3-gbproxy-test-fr/GBProxy_Tests.cfg b/ttcn3-gbproxy-test-fr/GBProxy_Tests.cfg index ce4623a..d03db07 100644 --- a/ttcn3-gbproxy-test-fr/GBProxy_Tests.cfg +++ b/ttcn3-gbproxy-test-fr/GBProxy_Tests.cfg @@ -150,3 +150,4 @@
[EXECUTE] GBProxy_Tests.control +#GBProxy_Tests.TC_BVC_bringup diff --git a/ttcn3-gbproxy-test/GBProxy_Tests.cfg b/ttcn3-gbproxy-test/GBProxy_Tests.cfg index e1d6573..16a2598 100644 --- a/ttcn3-gbproxy-test/GBProxy_Tests.cfg +++ b/ttcn3-gbproxy-test/GBProxy_Tests.cfg @@ -100,4 +100,5 @@ [MAIN_CONTROLLER]
[EXECUTE] -GBProxy_Tests.control +#GBProxy_Tests.control +GBProxy_Tests.TC_rim_from_eutran diff --git a/ttcn3-ggsn-test/GGSN_Tests.cfg b/ttcn3-ggsn-test/GGSN_Tests.cfg index cb548b3..67528e1 100644 --- a/ttcn3-ggsn-test/GGSN_Tests.cfg +++ b/ttcn3-ggsn-test/GGSN_Tests.cfg @@ -26,3 +26,9 @@
[EXECUTE] GGSN_Tests.control +#GGSN_Tests.TC_pdp4_act_update_teic +#GGSN_Tests.TC_pdp4_act_update_teid +#GGSN_Tests.TC_pdp46_act_deact_apn4 +#GGSN_Tests.TC_pdp4_act_deact_gtpu_access +#GGSN_Tests.TC_lots_of_concurrent_pdp_ctx +#GGSN_Tests.TC_addr_pool_exhaustion diff --git a/ttcn3-ggsn-test/jenkins-ogs.sh b/ttcn3-ggsn-test/jenkins-ogs.sh index 5875b75..83fff71 100755 --- a/ttcn3-ggsn-test/jenkins-ogs.sh +++ b/ttcn3-ggsn-test/jenkins-ogs.sh @@ -32,12 +32,13 @@ --ulimit core=-1 \ -v $VOL_BASE_DIR/ggsn:/data \ --name ${BUILD_TAG}-ggsn-ogs-smf -d \ + --expose 9090 \ $DOCKER_ARGS \ $(docker_network_params $SUBNET 201) \ $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" - #/bin/sh -c "gdb -ex 'handle SIG32 pass nostop noprint' -ex 'run' -ex 'bt' --arg open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" + /bin/sh -c "gdb -ex 'handle SIG32 pass nostop noprint' -ex 'run' -ex 'bt' --arg open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" #/bin/sh -c "valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" +#/bin/sh -c "open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1"
docker run --cap-add=NET_ADMIN \ --device /dev/net/tun:/dev/net/tun \ @@ -61,3 +62,8 @@ --name ${BUILD_TAG}-ggsn-test \ $DOCKER_ARGS \ $REPO_USER/ttcn3-ggsn-test + +# let some time to tcpdump upf.pcap to fill +sleep 5 +#echo "press a key" +#read diff --git a/ttcn3-ggsn-test/jenkins.sh b/ttcn3-ggsn-test/jenkins.sh index 3909036..c124937 100755 --- a/ttcn3-ggsn-test/jenkins.sh +++ b/ttcn3-ggsn-test/jenkins.sh @@ -61,7 +61,8 @@ $DOCKER_ARGS \ $GGSN_DOCKER_ARGS \ $REPO_USER/osmo-ggsn-$IMAGE_SUFFIX \ - /bin/sh -c "$GGSN_CMD >/data/osmo-ggsn.log 2>&1" + /bin/sh -c "gdb -ex 'run' -ex 'bt' --arg $GGSN_CMD >/data/osmo-ggsn.log 2>&1" +# /bin/sh -c "$GGSN_CMD >/data/osmo-ggsn.log 2>&1"
kernel_test_wait_for_vm "$VOL_BASE_DIR/ggsn/osmo-ggsn.log"
diff --git a/ttcn3-ggsn-test/ogs/GGSN_Tests.cfg b/ttcn3-ggsn-test/ogs/GGSN_Tests.cfg index da69999..a96797a 100644 --- a/ttcn3-ggsn-test/ogs/GGSN_Tests.cfg +++ b/ttcn3-ggsn-test/ogs/GGSN_Tests.cfg @@ -4,6 +4,8 @@
[LOGGING] *.JUnitLogger.testsuite_name := "GGSN_Tests" +*.FileMask := LOG_ALL | TTCN_DEBUG | TTCN_MATCHING | MATCHING |MATCHING_PROBLEM +FileMask := LOG_ALL | TTCN_DEBUG | TTCN_MATCHING | MATCHING | DEBUG_ENCDEC;
[TESTPORT_PARAMETERS] *.GGSNVTY.CTRL_HOSTNAME := "172.18.3.201" @@ -21,4 +23,15 @@ GGSN_Tests.m_ggsn_impl := GGSN_IMPL_OPEN5GS
[EXECUTE] -GGSN_Tests.control +#GGSN_Tests.control +#GGSN_Tests.TC_pdp4_act_deact_gtpu_access +#GGSN_Tests.TC_pdp4_act_deact +#GGSN_Tests.TC_pdp4_act_deact_ipcp +#GGSN_Tests.TC_act_deact_retrans_duplicate +#GGSN_Tests.TC_pdp46_act_deact_gtpu_access_wrong_ll_saddr_ipv6 +#GGSN_Tests.TC_pdp46_act_deact_gtpu_access_wrong_ll_saddr_ipv6 +#GGSN_Tests.TC_pdp4_act_update_teid +#GGSN_Tests.TC_act_deact_retrans_duplicate +#GGSN_Tests.TC_gy_charging_cc_time +#GGSN_Tests.TC_lots_of_concurrent_pdp_ctx +GGSN_Tests.TC_gy_charging_volume_quota_threshold diff --git a/ttcn3-ggsn-test/ogs/open5gs-smf.yaml b/ttcn3-ggsn-test/ogs/open5gs-smf.yaml index 045c585..15b04a1 100644 --- a/ttcn3-ggsn-test/ogs/open5gs-smf.yaml +++ b/ttcn3-ggsn-test/ogs/open5gs-smf.yaml @@ -20,7 +20,7 @@ # domain: core,sbi,ausf,event,tlv,mem,sock # logger: - level: info + level: debug # # o TLS enable/disable # sbi: diff --git a/ttcn3-ggsn-test/ogs/open5gs-upf.yaml b/ttcn3-ggsn-test/ogs/open5gs-upf.yaml index c82a80c..b38d000 100644 --- a/ttcn3-ggsn-test/ogs/open5gs-upf.yaml +++ b/ttcn3-ggsn-test/ogs/open5gs-upf.yaml @@ -20,7 +20,7 @@ # domain: core,sbi,ausf,event,tlv,mem,sock # logger: - level: info + level: debug
# # <PFCP Server> diff --git a/ttcn3-ggsn-test/ogs/upfd-setup.sh b/ttcn3-ggsn-test/ogs/upfd-setup.sh index b185ac0..376293f 100755 --- a/ttcn3-ggsn-test/ogs/upfd-setup.sh +++ b/ttcn3-ggsn-test/ogs/upfd-setup.sh @@ -23,6 +23,8 @@ add_addr "ogstun46" "176.16.32.1/20" add_addr "ogstun46" "2001:780:44:2100:0:0:0:1/56"
+#echo "0" > /proc/sys/net/ipv6/conf/ogstun4/accept_ra + ip link set ogstun4 up ip link set ogstun6 up ip link set ogstun46 up diff --git a/ttcn3-ggsn-test/ogs/upfd.sh b/ttcn3-ggsn-test/ogs/upfd.sh index 9089701..0841ff8 100755 --- a/ttcn3-ggsn-test/ogs/upfd.sh +++ b/ttcn3-ggsn-test/ogs/upfd.sh @@ -2,7 +2,22 @@ set -e set -x /data/upfd-setup.sh +tcpdump -i any -vvv -w /data/upfd.pcap & upfd_bin="$(command -v open5gs-upfd)" # so_bindtodevice cfg requires CAP_NET_RAW: setcap cap_net_raw+ep "$upfd_bin" su - osmocom -c "$upfd_bin $*" + +# Wait for up to 2 seconds if we keep receiving traffinc from packet dumper, +# otherwise we might lose last packets from test. +i=0 +prev_count=-1 +count=$(stat --format="%s" "/data/upfd.pcap") +while [ $count -gt $prev_count ] && [ $i -lt 2 ] +do + echo "Waiting for packet dumper to finish... $i (prev_count=$prev_count, count=$count)" + sleep 1 + prev_count=$count + count=$(stat --format="%s" "/data/upfd.pcap") + i=$((i+1)) +done diff --git a/ttcn3-ggsn-test/osmo-ggsn.cfg b/ttcn3-ggsn-test/osmo-ggsn.cfg index 2f09990..246e6b4 100644 --- a/ttcn3-ggsn-test/osmo-ggsn.cfg +++ b/ttcn3-ggsn-test/osmo-ggsn.cfg @@ -34,6 +34,7 @@ logging level lsua notice logging level lm3ua notice logging level lmgcp notice + logging level lgtp debug ! stats interval 5 ! diff --git a/ttcn3-hnbgw-test/HNBGW_Tests.cfg b/ttcn3-hnbgw-test/HNBGW_Tests.cfg index a76d5fd..d5a851f 100644 --- a/ttcn3-hnbgw-test/HNBGW_Tests.cfg +++ b/ttcn3-hnbgw-test/HNBGW_Tests.cfg @@ -114,3 +114,4 @@
[EXECUTE] HNBGW_Tests.control +#HNBGW_Tests.TC_hnb_register_duplicate_reuse_sctp_assoc diff --git a/ttcn3-hnodeb-test/HNB_Tests.cfg b/ttcn3-hnodeb-test/HNB_Tests.cfg index 677e12b..71d1cea 100644 --- a/ttcn3-hnodeb-test/HNB_Tests.cfg +++ b/ttcn3-hnodeb-test/HNB_Tests.cfg @@ -4,10 +4,18 @@
[LOGGING] *.JUnitLogger.testsuite_name := "HNB_Tests" +FileMask := LOG_ALL | TTCN_MATCHING | TTCN_DEBUG
[TESTPORT_PARAMETERS] *.HNBVTY.CTRL_HOSTNAME := "172.18.33.20"; *.STATSVTY.CTRL_HOSTNAME := "172.18.33.20"; +*.IPL4.debug := "YES"; +*.Iuh.debug := "YES"; +system.SCTP_PORT.debug := "yes"; +system.SCTP_SimpleClientPort.debug := "yes" +system.SCTP_SimpleServerPort.debug := "yes" +system.SCTP_ClientPort.debug := "yes" +system.SCTP_ServerPort.debug := "yes"
[MODULE_PARAMETERS] HNB_Tests.mp_hnodeb_ip := "172.18.33.20"; @@ -18,3 +26,10 @@
[EXECUTE] HNB_Tests.control +#HNB_Tests.TC_hnb_register_request_accept +#HNB_Tests.TC_hnb_register_request_reject +#HNB_Tests.TC_ps_mo_gtp_ping_pong +#HNB_Tests.TC_ps_mo_gtp_ping_pong +#HNB_Tests.TC_paging +#HNB_Tests.TC_cs_mo_call_audio_v0 +#HNB_Tests.TC_cs_mo_call diff --git a/ttcn3-hnodeb-test/osmo-hnodeb.cfg b/ttcn3-hnodeb-test/osmo-hnodeb.cfg index 7d24700..621aa57 100644 --- a/ttcn3-hnodeb-test/osmo-hnodeb.cfg +++ b/ttcn3-hnodeb-test/osmo-hnodeb.cfg @@ -7,6 +7,7 @@ logging filter all 1 logging color 1 logging print category 1 + logging print category-hex 0 logging timestamp 1 logging print extended-timestamp 1 logging level set-all debug diff --git a/ttcn3-mgw-test/MGCP_Test.cfg b/ttcn3-mgw-test/MGCP_Test.cfg index 5a9d9e6..00dd436 100644 --- a/ttcn3-mgw-test/MGCP_Test.cfg +++ b/ttcn3-mgw-test/MGCP_Test.cfg @@ -19,3 +19,32 @@
[EXECUTE] MGCP_Test.control +#MGCP_Test.TC_crcx +#MGCP_Test.TC_crcx_mdcx_ip4 +#MGCP_Test.TC_crcx_mdcx_ip6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_ipv4_ipv6 +#MGCP_Test.TC_crcx_osmux_257 + +#MGCP_Test.TC_crcx_osmux_fixed_twice +#MGCP_Test.TC_one_crcx_receive_only_osmux +#MGCP_Test.TC_one_crcx_loopback_osmux +#MGCP_Test.TC_two_crcx_and_rtp_osmux +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_wildcard +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_fixed +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_ipv6 +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_ipv4_ipv6 +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_ipv6_ipv4 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_ipv6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_ipv4_ipv6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_ipv6_ipv4 + +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_amr_bwe +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_ipv4_ipv6 +#MGCP_Test.TC_two_crcx_and_rtp_osmux_bidir_ipv6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_ipv4_ipv6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_ipv6 +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_wildcard +#MGCP_Test.TC_two_crcx_mdcx_and_rtp_osmux_wildcard diff --git a/ttcn3-mgw-test/jenkins.sh b/ttcn3-mgw-test/jenkins.sh index b2d78a7..3a6e933 100755 --- a/ttcn3-mgw-test/jenkins.sh +++ b/ttcn3-mgw-test/jenkins.sh @@ -26,7 +26,8 @@ -v $VOL_BASE_DIR/mgw:/data \ --name ${BUILD_TAG}-mgw -d \ $DOCKER_ARGS \ - $REPO_USER/osmo-mgw-$IMAGE_SUFFIX + $REPO_USER/osmo-mgw-$IMAGE_SUFFIX \ + /bin/sh -c "gdb -ex 'run' -ex 'bt' --arg osmo-mgw -c /data/osmo-mgw.cfg >/data/osmo-mgw.log 2>&1"
# start docker container with testsuite in foreground docker run --rm \ diff --git a/ttcn3-msc-test/MSC_Tests.cfg b/ttcn3-msc-test/MSC_Tests.cfg index 83c18c7..6c0bfbb 100644 --- a/ttcn3-msc-test/MSC_Tests.cfg +++ b/ttcn3-msc-test/MSC_Tests.cfg @@ -56,4 +56,5 @@
[EXECUTE] MSC_Tests.control -MSC_Tests_Iu.control +#MSC_Tests_Iu.control +#MSC_Tests.TC_sgsap_lu_and_mt_call diff --git a/ttcn3-pcu-test/PCU_Tests.cfg b/ttcn3-pcu-test/PCU_Tests.cfg index 40b8e2c..2b71365 100644 --- a/ttcn3-pcu-test/PCU_Tests.cfg +++ b/ttcn3-pcu-test/PCU_Tests.cfg @@ -40,4 +40,25 @@
[EXECUTE] PCU_Tests.control -PCU_Tests_NS.control +#PCU_Tests_NS.control +#PCU_Tests.TC_anr_dl_tbf_success +#PCU_Tests.TC_anr_dl_tbf_success_si2_partial +#PCU_Tests.TC_anr_dl_tbf_success_si2_partial_multi_measorder +#PCU_Tests.TC_anr_dl_tbf_finished +#PCU_Tests.TC_nacc_outbound_success + +#PCU_Tests.TC_ta_ptcch_idle +#PCU_Tests.TC_n3105_max_t3195 +#PCU_Tests.TC_pdch_energy_saving +#PCU_Tests.TC_mo_ping_pong_with_ul_racap +#PCU_Tests.TC_ul_tbf_reestablish_with_pkt_dl_ack_nack +#PCU_Tests.TC_ul_tbf_finished_pkt_dl_ass_pch +#PCU_Tests.TC_ul_tbf_1phase_while_dl_ass_pch + +#PCU_Tests.TC_cs_max_dl +#PCU_Tests.TC_dl_flow_more_blocks +#PCU_Tests.TC_mt_ping_pong +#PCU_Tests.TC_mt_ping_pong_with_dl_racap +#PCU_Tests.TC_paging_cs_from_sgsn_sign_ptmsi +#PCU_Tests.TC_paging_cs_from_sgsn_sign +#PCU_Tests.TC_paging_cs_from_sgsn_ptp diff --git a/ttcn3-pcu-test/sns/PCU_Tests.cfg b/ttcn3-pcu-test/sns/PCU_Tests.cfg index 1036f5a..088a297 100644 --- a/ttcn3-pcu-test/sns/PCU_Tests.cfg +++ b/ttcn3-pcu-test/sns/PCU_Tests.cfg @@ -63,4 +63,7 @@ [MAIN_CONTROLLER]
[EXECUTE] -PCU_Tests_SNS.control +#PCU_Tests_SNS.control +PCU_Tests_SNS.TC_sns_del +PCU_Tests_SNS.TC_sns_chg_weight +PCU_Tests_SNS.TC_pcuif_rach diff --git a/ttcn3-pgw-test/PGW_Tests.cfg b/ttcn3-pgw-test/PGW_Tests.cfg index d17e782..7382ef4 100644 --- a/ttcn3-pgw-test/PGW_Tests.cfg +++ b/ttcn3-pgw-test/PGW_Tests.cfg @@ -22,4 +22,7 @@ [MAIN_CONTROLLER]
[EXECUTE] -PGW_Tests.control +#PGW_Tests.control +#PGW_Tests.TC_createSession_ping4_256 +PGW_Tests.TC_createSession_ping4 +#PGW_Tests.TC_gy_charging_cc_time diff --git a/ttcn3-pgw-test/jenkins.sh b/ttcn3-pgw-test/jenkins.sh index 8311bac..d2ff38e 100755 --- a/ttcn3-pgw-test/jenkins.sh +++ b/ttcn3-pgw-test/jenkins.sh @@ -59,10 +59,10 @@ --name ${BUILD_TAG}-smf -d \ $DOCKER_ARGS \ $REPO_USER/open5gs-$IMAGE_SUFFIX \ - /bin/sh -c "open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" - #/bin/sh -c "gdb -ex 'handle SIG32 pass nostop noprint' -ex 'run' -ex 'bt' --arg open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" + /bin/sh -c "gdb -ex 'handle SIG32 pass nostop noprint' -ex 'run' -ex 'bt' --arg open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1" +# /bin/sh -c "open5gs-smfd -c /data/open5gs-smf.yaml >/data/open5gs-smfd.out 2>&1"
-# start container with osmo-ugcups-daemon in background; SYS_ADMIN required for CLONE_NEWNS +# start container with osmo-uecups-daemon in background; SYS_ADMIN required for CLONE_NEWNS docker run --cap-add=NET_ADMIN --cap-add=SYS_ADMIN \ --device /dev/net/tun:/dev/net/tun \ --sysctl net.ipv6.conf.all.disable_ipv6=0 \ @@ -71,10 +71,12 @@ --ulimit core=-1 \ -v $VOL_BASE_DIR/osmo-uecups:/data \ -e "WORKDIR=/data" \ + -e "ASAN_OPTIONS=print_stacktrace=1:abort_on_error=1:fast_unwind_on_fatal=1" \ --name ${BUILD_TAG}-uecups -d \ $DOCKER_ARGS \ $REPO_USER/osmo-uecups-$IMAGE_SUFFIX \ - /bin/sh -c "osmo-uecups-daemon -c /data/osmo-uecups-daemon.cfg >/data/osmo-uecups-daemon.log 2>&1" + /bin/sh -c "gdb -ex 'handle SIG32 pass nostop noprint' -ex 'run' -ex 'bt' --arg osmo-uecups-daemon -c /data/osmo-uecups-daemon.cfg >/data/osmo-uecups-daemon.log 2>&1" +# /bin/sh -c "osmo-uecups-daemon -c /data/osmo-uecups-daemon.cfg >/data/osmo-uecups-daemon.log 2>&1"
# start docker container with testsuite in foreground docker run --rm \ diff --git a/ttcn3-sgsn-test/SGSN_Tests.cfg b/ttcn3-sgsn-test/SGSN_Tests.cfg index 6fd2ae8..b21ea9c 100644 --- a/ttcn3-sgsn-test/SGSN_Tests.cfg +++ b/ttcn3-sgsn-test/SGSN_Tests.cfg @@ -73,4 +73,13 @@
[EXECUTE] SGSN_Tests.control -SGSN_Tests_Iu.control +#SGSN_Tests_Iu.control +#SGSN_Tests.TC_suspend_nopaging +#SGSN_Tests.TC_suspend_resume +#SGSN_Tests.TC_attach_pdp_act_user_deact_mo +#SGSN_Tests.TC_cell_change_different_rai_ci_attach +#SGSN_Tests.TC_cell_change_different_ci_attach +#SGSN_Tests.TC_cell_change_different_rai_ci_data +#SGSN_Tests.TC_cell_change_different_ci_data +#SGSN_Tests.TC_bssgp_rim_single_report +#SGSN_Tests.TC_rim_eutran_to_geran diff --git a/ttcn3-sip-test/SIP_Tests.cfg b/ttcn3-sip-test/SIP_Tests.cfg index 2904e76..a720a76 100644 --- a/ttcn3-sip-test/SIP_Tests.cfg +++ b/ttcn3-sip-test/SIP_Tests.cfg @@ -18,3 +18,7 @@
[EXECUTE] SIP_Tests.control +#SIP_Tests.TC_mo_success_rel_gsm +#SIP_Tests.TC_mt_success_rel_sip +#SIP_Tests.TC_mt_success_rel_gsm_ipv6 +#SIP_Tests.TC_mt_success_rel_sip diff --git a/ttcn3-stp-test/STP_Tests.cfg b/ttcn3-stp-test/STP_Tests.cfg index 15baf7e..e324dac 100644 --- a/ttcn3-stp-test/STP_Tests.cfg +++ b/ttcn3-stp-test/STP_Tests.cfg @@ -21,3 +21,4 @@ STP_Tests_M3UA.control STP_Tests_IPA.control STP_Tests.control +#STP_Tests.TC_m3ua_to_ipa