Compare commits

...

7 Commits

Author SHA1 Message Date
Pau Espin d7560eeed0 DONTMERGE
Change-Id: I2769f30aea65b69f7dc96212a7d869aa97a92d69
2024-05-17 14:50:43 +02:00
Pau Espin 5aba0c075c ttcn3-asterisk: Configure docker testsuite to be able to set up ipsec tunnels
Depends: osmo-ttcn3-hacks.git Change-Id Ic042422788ee406f5b71ca3878bc5617e5455579
Change-Id: I3379e4991a5c705b5b0a14e5fee2eb165cc8a1e3
2024-05-17 12:47:06 +00:00
Oliver Smith 133f2fcd2f debian-*: install pylint from debian repos
Get pylint from the debian repositories to be on the same version until
we use the next debian version, instead of always installing the latest
pylint version from pip.

Change-Id: I721db1c18db43cc7a2d38177e9846c43dbdd0ae3
2024-05-17 10:42:15 +00:00
Oliver Smith 951082d2c1 Revert "ttcn3-docker-run.sh: Fix dumpcap failing to access /data inside docker"
This reverts commit 2b9c8e3db8, as it
causes a lot of testsuites to fail with e.g.

  + network_replace_subnet_in_configs
  + set +x
  Applying SUBNET=161 to: /home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test/logs/ggsn-all/osmo-ggsn.cfg
  Applying SUBNET=161 to: /home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test/logs/ggsn-tester-all/GGSN_Tests.cfg
  sed: couldn't open temporary file /home/osmocom-build/jenkins/workspace/ttcn3-ggsn-test/logs/ggsn-tester-all/sedsByWIc: Permission denied

Let's discuss how to fix the dumpcap problem instead in OS#6455.

Change-Id: Ic98e8206d8251060b777fc7d0b4497ba3e1caf7f
2024-05-17 11:23:13 +02:00
Oliver Smith 141dd4f018 ttcn3-ggsn-test-ogs: run smf in 4g only mode
Remove the SBI related configuration, so open5gs-smf does not attempt to
connect to the NRF every few seconds.

Fix for:
  [sbi] WARNING: [299d78ae-fae5-41ee-84a3-dbd9fa117ce7] Retry registration with NRF (../lib/sbi/nf-sm.c:182)
  [sbi] WARNING: [7] Failed to connect to 127.0.1.10 port 7777 after 200 ms: Couldn't connect to server (../lib/sbi/client.c:698)

Change-Id: I61d60e6e71b671c3deb20cc7ff8abb81ea4d5f03
2024-05-16 14:00:47 +02:00
Pau Espin 2b9c8e3db8 ttcn3-docker-run.sh: Fix dumpcap failing to access /data inside docker
In docker, the /data dir is mapped to $VOL_BASE_DIR, which is created by
docker-playground.git jenkins-common.sh, hence as the user running
jenkins.sh in the host system.
As a result, when the dir is mapped to /data, inside the container it
will have the UID:GID of the outter user, not the one inside docker.

Before this patch, if a ttcn3 container was started in jenkins.sh with
--cap-add=NET_ADMIN, then osmo-ttcn3-hacks.git/ttcn3-tcpdump-start.sh
would select dumpcap instead of tcpdump, to attempt to record a pcap
file to /data/$testcase.pcap.
Due to some unknown way of dropping privileges done by dumpcap though,
it was unable to open the /data/$testcase.pcap due to /data being owned
to another user (tcpdump doesn't have this problem).

This patch fixes the above scenario by making sure /data is chowned to
the user running stuff inside docker. This is already kinda expected
since there's a fix_perms() script in jenkins-common.sh reverting files
created during the test so that they can be accessible by outter user
once everything is finished.

Change-Id: I1229a91cdbb1aa73fd94f1bf7e26f34086f06b25
2024-05-15 20:25:01 +02:00
Pau Espin f9c8ed8de7 ttcn3-asterisk: Configure asterisk for initial SIP register on IMS side
This set of pjsip config requires work done by jolly in our fork of
asterisk adding IMS features.

Depends: osmo-ttcn3-hacks.git Change-Id Idb3b19ccd82cad25948106b2c72aa424d7f79cd8
Change-Id: I66d128192146ad600203ea2a41b8bf019311d603
2024-05-15 14:09:59 +02:00
53 changed files with 1025 additions and 66 deletions

View File

@ -14,7 +14,7 @@ OSMO_TTCN3_BRANCH=$1
shift
cd /osmo-ttcn3-hacks
git remote set-url origin "https://gerrit.osmocom.org/osmo-ttcn3-hacks"
git fetch
git checkout "$OSMO_TTCN3_BRANCH"

View File

@ -142,6 +142,7 @@ RUN set -x && \
patchelf \
picolibc-arm-none-eabi \
pkg-config \
pylint \
python3 \
python3-gi \
python3-mako \
@ -179,7 +180,6 @@ RUN set -x && \
'git+https://github.com/osmocom/sphinx-argparse@master#egg=sphinx-argparse' \
'git+https://github.com/podshumok/python-smpplib.git' \
'pydbus' \
'pylint' \
'pysispm' \
'sphinx' \
'sphinxcontrib-napoleon' \

View File

@ -20,6 +20,7 @@ RUN set -x && \
build-essential \
ca-certificates \
git \
iproute2 \
iputils-ping \
netcat-openbsd \
procps \

View File

@ -21,6 +21,7 @@ RUN set -x && \
ca-certificates \
ccache \
git \
iproute2 \
iputils-ping \
netcat-openbsd \
procps \

View File

@ -107,6 +107,7 @@ RUN \
patchelf \
picolibc-arm-none-eabi \
pkg-config \
pylint \
python-setuptools \
python2.7 \
python3 \
@ -148,7 +149,6 @@ RUN pip3 install \
'git+https://github.com/osmocom/sphinx-argparse@master#egg=sphinx-argparse' \
'git+https://github.com/podshumok/python-smpplib.git' \
'pydbus' \
'pylint' \
'pysispm' \
'sphinx' \
'sphinxcontrib-napoleon' \

View File

@ -39,6 +39,7 @@ RUN apt-get update && \
libgnutls28-dev \
libgps-dev \
libgsm1-dev \
libmnl-dev \
libncurses5-dev \
libnewlib-arm-none-eabi \
libortp-dev \

View File

@ -104,6 +104,7 @@ RUN \
osc \
patchelf \
pkg-config \
pylint \
python-pip \
python-setuptools \
python-yaml \
@ -147,7 +148,6 @@ RUN pip3 install \
'git+https://github.com/osmocom/sphinx-argparse@master#egg=sphinx-argparse' \
'git+https://github.com/podshumok/python-smpplib.git' \
'pydbus' \
'pylint' \
'pysispm' \
'sphinx' \
'sphinxcontrib-napoleon' \

View File

@ -19,6 +19,8 @@ UID=$(shell id -u)
NAME?=$(shell basename $(CURDIR))
ASTERISK_BRANCH?=sysmocom/master
LIBOSMOCORE_BRANCH?=master
LIBOSMOABIS_BRANCH?=master
LIBOSMONETIF_BRANCH?=master
OSMO_TTCN3_BRANCH?=master
OSMO_BB_BRANCH?=master
OSMO_BSC_BRANCH?=master
@ -104,6 +106,8 @@ docker-build: .release
--build-arg OSMOCOM_REPO_TESTSUITE_MIRROR=$(OSMOCOM_REPO_TESTSUITE_MIRROR) \
--build-arg ASTERISK_BRANCH=$(ASTERISK_BRANCH) \
--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) \

View File

@ -43,6 +43,16 @@ RUN apt-get update && \
apt-get install -y \
mongodb-org
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} && \

View File

@ -34,6 +34,84 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-sccp/+/$OSMO_STP_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/osmo-mgw.git
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-mgw/+/$OSMO_MGW_BRANCH?format=TEXT /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 @@ RUN cd osmo-bsc && \
(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

View File

@ -13,7 +13,8 @@ RUN case "$DISTRO" in \
libosmo-netif-dev \
libosmo-sccp-dev \
libsmpp34-dev \
libgtp-dev && \
libgtp-dev \
gdb && \
apt-get clean \
;; \
centos*) \
@ -33,6 +34,57 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-bts && \
(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

View File

@ -11,6 +11,8 @@ RUN case "$DISTRO" in \
libosmocore-dev \
libosmo-netif-dev \
libulfius-dev \
libsctp-dev \
gdb \
&& \
apt-get clean \
;; \
@ -27,6 +29,68 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-cbc && \
(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

View File

@ -28,6 +28,56 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH /tmp/commit-libosmocore
RUN cd libosmocore \
&& git fetch && git checkout -f -B $LIBOSMOCORE_BRANCH origin/$LIBOSMOCORE_BRANCH?format=TEXT \
&& 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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-gbproxy && \
(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

View File

@ -33,8 +33,35 @@ RUN case "$DISTRO" in \
;; \
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 https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 @@ RUN cd osmo-ggsn && \
(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

View File

@ -6,6 +6,7 @@ ARG DISTRO
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gdb \
libosmocore-dev \
libosmo-abis-dev \
libosmo-mgcp-client-dev \
@ -16,11 +17,92 @@ RUN apt-get update && \
libosmo-hnbap-dev \
libasn1c-dev \
libosmo-pfcp-dev \
libosmo-mgcp-client-dev \
&& \
apt-get clean
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-iuh/+/$OSMO_IUH_BRANCH?format=TEXT /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_MGW_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-mgw.git
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-mgw/+/$OSMO_MGW_BRANCH?format=TEXT /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_HNBGW_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/osmo-hnbgw.git
@ -31,7 +113,7 @@ RUN cd osmo-hnbgw && \
(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

View File

@ -15,6 +15,58 @@ RUN apt-get update && \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-hnodeb && \
(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

View File

@ -8,6 +8,7 @@ RUN case "$DISTRO" in \
debian*) \
apt-get update && \
apt-get install -y --no-install-recommends \
gdb \
libosmocore-dev \
libosmo-abis-dev \
libosmo-netif-dev \
@ -29,6 +30,58 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-mgw && \
(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

View File

@ -42,6 +42,85 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-sccp/+/$OSMO_STP_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/osmo-mgw.git
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-mgw/+/$OSMO_MGW_BRANCH?format=TEXT /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 @@ RUN cd osmo-msc && \
(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

View File

@ -23,6 +23,25 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 @@ RUN cd osmo-pcu && \
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

View File

@ -10,11 +10,9 @@ RUN case "$DISTRO" in \
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 @@ RUN case "$DISTRO" in \
WORKDIR /tmp
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/osmo-ggsn
ADD https://gerrit.osmocom.org/plugins/gitiles/osmo-ggsn/+/$OSMO_GGSN_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-sccp.git
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-sccp/+/$OSMO_STP_BRANCH?format=TEXT /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 @@ RUN cd osmo-sgsn && \
(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

View File

@ -9,7 +9,8 @@ RUN case "$DISTRO" in \
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 @@ RUN case "$DISTRO" in \
WORKDIR /data
# Download, build and install libosmocore
ARG LIBOSMOCORE_BRANCH="master"
RUN git clone https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd libosmo-sccp && \
(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

View File

@ -12,11 +12,62 @@ RUN apt-get update && \
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 https://gerrit.osmocom.org/libosmocore
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmocore/+/$LIBOSMOCORE_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-abis
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-abis/+/$LIBOSMOABIS_BRANCH?format=TEXT /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 https://gerrit.osmocom.org/libosmo-netif
ADD https://gerrit.osmocom.org/plugins/gitiles/libosmo-netif/+/$LIBOSMONETIF_BRANCH?format=TEXT /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 @@ RUN cd osmo-uecups && \
(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

View File

@ -7,6 +7,7 @@ ARG OSMO_BB_BRANCH="master"
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 && \
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 && \

View File

@ -20,7 +20,11 @@ Asterisk_Tests.mp_local_sip_host := "172.18.11.103"
Asterisk_Tests.mp_remote_sip_host := "172.18.11.10"
Asterisk_Tests.mp_local_sip_port := 5061
Asterisk_Tests.mp_remote_sip_port := 5094
Asterisk_Tests.mp_local_ims_host := "172.18.11.103"
Asterisk_Tests.mp_local_ims_port := 5060
Asterisk_Tests.mp_ims_imsi := "238010000090828"
Asterisk_Tests.mp_ami_remote_host := "172.18.11.10"
IMS_ConnectionHandler.mp_ipsec_setup_script_path := "/osmo-ttcn3-hacks/asterisk/IMS_ipsec_setup.sh"
[MAIN_CONTROLLER]

View File

@ -1,4 +1,6 @@
;############
; LOCAL SIP
;############
[transport-udp]
type=transport
protocol=udp
@ -68,3 +70,51 @@ password=secret
[0504](aor_phone_template)
;############
; VoLTE
;############
[transport-tcp]
type=transport
protocol=tcp
bind=172.18.11.10:5060
ims_port_c=5555
ims_port_s=5060
[volte_ims]
type=registration
transport=transport-tcp
outbound_auth=volte_ims
server_uri=sip:172.18.11.103
client_uri=sip:238010000090828@172.18.11.103
retry_interval=30
fatal_retry_interval=30
expiration=600000
ims_aka=yes
contact_user=volte_ims
endpoint=volte_ims
line=yes
[volte_ims]
type=endpoint
context=volte_ims
disallow=all
allow=vevs
outbound_auth=volte_ims
aors=volte_ims
rewrite_contact=yes
from_user=238010000090828
from_domain=172.18.11.103
[volte_ims]
type=auth
auth_type=ims_aka
username=238010000090828@172.18.11.103
usim_ami=no
usim_opc=775A1F887D2AD66F9719C2C79F847B50
usim_k=D534E07854B75E475C667A856AA31F9C
usim_sqn=000000011000
[volte_ims]
type=aor
contact=sip:238010000090828@172.18.11.103
max_contacts=1

View File

@ -37,6 +37,8 @@ sleep 3
echo Starting container with Asterisk testsuite
docker run --rm \
--cap-add=NET_ADMIN \
--cap-add=SYS_RESOURCE \
$(docker_network_params $SUBNET 103) \
--ulimit core=-1 \
-e "TTCN3_PCAP_PATH=/data" \

View File

@ -71,5 +71,13 @@ BSC_Tests_CBSP.mp_bsc_cbsp_ip6 := "fd02:db8:2::20";
[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

View File

@ -43,6 +43,7 @@ log stderr
logging level lsua notice
logging level lm3ua notice
logging level lmgcp notice
logging level set-all debug
!
stats interval 0
stats reporter statsd

View File

@ -31,3 +31,4 @@ BSC_Tests.mp_enable_lcs_tests := false;
[EXECUTE]
BSC_Tests.control
#BSC_Tests.TC_assignment_codec_amr_f

View File

@ -24,6 +24,22 @@ PCUIF_Types.mp_pcuif_version := 12;
[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

View File

@ -24,4 +24,7 @@ PCUIF_Types.mp_pcuif_version := 12;
[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

View File

@ -16,3 +16,7 @@ CBC_Tests.mp_cbc_host := "172.18.27.20";
[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

View File

@ -26,7 +26,8 @@ docker run --rm \
-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 \

View File

@ -150,3 +150,4 @@ GBProxy_Tests.mp_nsconfig_pcu := {
[EXECUTE]
GBProxy_Tests.control
#GBProxy_Tests.TC_BVC_bringup

View File

@ -100,4 +100,5 @@ GBProxy_Tests.mp_nsconfig_pcu := {
[MAIN_CONTROLLER]
[EXECUTE]
GBProxy_Tests.control
#GBProxy_Tests.control
GBProxy_Tests.TC_rim_from_eutran

View File

@ -32,12 +32,13 @@ docker run --cap-add=NET_ADMIN \
--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-$IMAGE_SUFFIX.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-$IMAGE_SUFFIX.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-$IMAGE_SUFFIX.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-$IMAGE_SUFFIX.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 @@ docker run --rm \
--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

View File

@ -79,7 +79,8 @@ start_ggsn() {
$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-$test_config/osmo-ggsn.log"
}

View File

@ -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_ip6_dns1 := "fd02:db8:3::222"
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

View File

@ -7,28 +7,7 @@ global:
max:
ue: 1024
sbi:
server:
no_tls: true
cacert: /etc/open5gs/tls/ca.crt
key: /etc/open5gs/tls/smf.key
cert: /etc/open5gs/tls/smf.crt
client:
no_tls: true
cacert: /etc/open5gs/tls/ca.crt
key: /etc/open5gs/tls/smf.key
cert: /etc/open5gs/tls/smf.crt
smf:
sbi:
server:
- address: 172.18.3.201
port: 7777
client:
nrf:
- uri: http://172.18.3.201:7777
scp:
- uri: http://127.0.1.10:7777
pfcp:
server:
- address: 172.18.3.201

View File

@ -23,6 +23,8 @@ add_addr "ogstun6" "2001:780:44:2000:0:0:0:1/56"
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

View File

@ -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

View File

@ -28,3 +28,9 @@ GGSN_Tests.m_ggsn_conf := GGSN_CONF_ALL
[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

View File

@ -118,3 +118,4 @@ HNBGW_Tests.mp_hnbgw_timer_x31 := 5;
[EXECUTE]
HNBGW_Tests.control
#HNBGW_Tests.TC_hnb_register_duplicate_reuse_sctp_assoc

View File

@ -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 @@ HNB_Tests.mp_hnbllif_sk_path := "/data/unix/ll_sock";
[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

View File

@ -7,6 +7,7 @@ log stderr
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

View File

@ -19,3 +19,32 @@ mp_num_endpoints := 300;
[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

View File

@ -26,7 +26,8 @@ docker run --rm \
-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 \

View File

@ -41,4 +41,25 @@ PCUIF_Types.mp_pcuif_version := 12
[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

View File

@ -64,4 +64,7 @@ PCUIF_Types.mp_pcuif_version := 12
[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

View File

@ -23,4 +23,4 @@ GTPv2_Emulation.mp_uecups_host := "172.18.18.20"
[MAIN_CONTROLLER]
[EXECUTE]
PGW_Tests.control
PGW_Tests.control

View File

@ -59,10 +59,10 @@ docker run --cap-add=NET_ADMIN \
--name ${BUILD_TAG}-smf -d \
$DOCKER_ARGS \
$REPO_USER/open5gs-$IMAGE_SUFFIX \
/bin/sh -c "open5gs-smfd -c /data/open5gs-smf-$IMAGE_SUFFIX.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-$IMAGE_SUFFIX.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-$IMAGE_SUFFIX.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 @@ docker run --cap-add=NET_ADMIN --cap-add=SYS_ADMIN \
--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 \

View File

@ -18,3 +18,7 @@ SIP_Tests.mp_mncc := "/data/unix/mncc"
[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

View File

@ -21,3 +21,4 @@ STP_Tests_M3UA.mp_local_m3ua_ip := { "172.18.19.203", "fd02:db8:19::203" };
STP_Tests_M3UA.control
STP_Tests_IPA.control
STP_Tests.control
#STP_Tests.TC_m3ua_to_ipa