Commit Graph

1093 Commits

Author SHA1 Message Date
Oliver Smith ba1385fe60 common/ttcn3-docker-run.sh: add TEST_NAME env var
Make it possible to run only one test by setting an environment
variable.

Change-Id: I1f45a05e089b429918096fcd64f7c02033d5a9dd
2023-10-16 08:52:37 +00:00
Pau Espin 0b97785ceb ttcn3-hss-test-ogs: Adapt mongodb db setup to pass new test
Add DB config for new subscriber required by TC_ulr_ula_subscr_op_det_barring_7.

Depends: osmo-ttcn3-hacks.git I8deea9e284447f8991bdeced982c14fae2f211c5
Related: SYS#6588
Change-Id: I42d6af42bada50c55914ec94c4090fccbe8d1c97
2023-10-15 21:48:13 +00:00
Pau Espin 856b9f2d17 Introduce ttcn3-hss-test-ogs
Related: SYS#6588
Depends: osmo-ttcn3-hacks.git Ic2fccd9c54aea04f1a31649a0af47c974939fb2f
Change-Id: Iebeefd9689ae2efa54678b99ff929ca255ec64d1
2023-10-15 21:48:13 +00:00
Pau Espin b0b7ed30f8 open5gs-latest: Support debian bookworm
The open5gs Debian_12 is available since today [1]; hence starting using
debian 12 now.

[1] https://github.com/open5gs/open5gs/issues/2669
Related: SYS#6588
Change-Id: Ib11a55294b525e3c3806246b133f8e479554a068
2023-10-15 21:47:58 +00:00
Oliver Smith 114c1c6933 debian-bookworm-titan: add ccache
Add ccache, so it can be used when rebuilding the testsuite from source
from a development branch. Ccache is not used by default.

Related: osmo-dev I800062d0379295a6905851db29e820ff16217653
Change-Id: I94d22b8da9f897974c5913b2a8138c653c215446
2023-10-12 14:26:37 +00:00
Pau Espin f9596689c3 open5gs-master: Make mongodb available in the image
The open5gs-latest image installs mongodb, but the master one doesn't.
Having a mongodb image is required to run together with open5gs-hssd.

Related: SYS#6588
Change-Id: Id6dde5f54b666279c102eb14fabb87194192c9e4
2023-10-10 17:38:04 +02:00
Pau Espin a15ab99d07 open5gs-master: Install open5gs-dbctl to /usr/bin
meson install doesn't install that file because it's aimed at
developers. However, debian package does install it manually in
debian/open5gs-common.install.
Hence, the app is available in open5gs-latest docker image, but not in
open5gs-master. Manually copy it to /usr/bin to have both behave the
same in this aspect.

Related: SYS#6588
Change-Id: I54a760d04e6522d843e6d65b94ef6067e502fbaa
2023-10-10 17:38:04 +02:00
Pau Espin b3c5679bec open5gs-master: Fix indentation
Use tabs everywhere, as usual with other Dockerfiles (eg.
open5gs-latest).

Change-Id: Ie4e72f484797ada718915e837cd38be574136631
2023-10-10 15:37:49 +00:00
Oliver Smith c68d4d9f0f ttcn3-pcu-test: use PFUIF v10 for 2023q1
Change-Id: Iae895240276fa68bfd9fdb2e13358a3a7fb65f59
2023-10-10 12:24:43 +00:00
Pau Espin f15080eb62 Fix osmo_dia2gsup-master not pulling in debian-bookworm-erlang dep image
Change-Id: I8d9bd77bbfac14a9951a549a21ee6bc4ea7b267a
2023-10-05 15:31:57 +02:00
Oliver Smith 414acb7f4a make/Makefile: update DISTRO, UPSTREAM_DISTRO
Update the Makefile, so it does not pick the wrong base distribution
when running make in e.g. osmo-bsc-master directly (without going
through ttcn3-*/jenkins.sh as jenkins does).

Change-Id: I31b2a1b8c70b973f4ec0f93d6e9e5e417afec994
2023-09-27 12:26:09 +02:00
Pau Espin 63ee53cee7 ttcn3-mme: Fix missing IP/port config for S11 interface
This fixes failure when running MME_Tests.TC_s1ap_attach

Depends: osmo-ttcn3-hacks.git Change-Id Ia94f50a11292a83dcbd2da8d6df608ef71842b50
Change-Id: I941da52a4d9e10d954a44f32680cf8e8f7a8086a
2023-09-21 17:52:15 +02:00
Pau Espin 0cecfa769c ttcn3-hnbgw: Update config files for latest after osmo-hnbgw new release
Change-Id: Id184686ba50ec07532b2f11cc9513626f66ed94c
2023-09-13 08:07:15 +00:00
Pau Espin e828340720 ttcn3-bts: Use PCUIF v11
Since osmo-bts 1.7.0 which was just released, PCUIF v11 is supported, so
use it both in master and latest.

Change-Id: I6c905d074ffc324dd72d6a5c9ce79f3c241ac780
2023-09-13 08:07:15 +00:00
Harald Welte 6cae51d685 gerrit: upgrade to 3.7.4
Change-Id: Ie96b0fabd39248d3f20b073b51d163004ae3dd8a
2023-09-02 15:12:03 +02:00
Harald Welte 5ab2f45388 gerrit: update to 3.6.6
Change-Id: I3935d1c6ac671e4c2ba2db685c9ddf75d77ab7f1
2023-09-02 15:02:15 +02:00
Pau Espin 8692b156da ttcn3-dia2gsup: Avoid retrieving unexisting talloc report
The OSMO_SUT_{HOST,PORT} envvars are used to trigger retrieving of
talloc reportes from the VTY port in osmo-ttcn3-hacks.git
ttcn3-tcpdump-stop.sh.
osmo_dia2gsup is an erland app and hence it makes no sense trying to
retrieve such information.

Change-Id: I6ee3fa83758e09898d1cd05bf15bc3428e2ffd11
2023-08-30 15:51:41 +02:00
Pau Espin f0bf954984 dia2gsup: Fix logfile name
Change-Id: I26e480ee8358476dcda72d51c3d135a0806ca82b
2023-08-28 18:31:10 +02:00
Pau Espin a94ec07c0f Introduce osmo-dia2gsup-master, ttcn3-dia2gsup-test
- Add a docker container to run osmo_dia2gsup from git master.
- Add infrastructure to run the osmo-dia2gsup container against
  osmo-ttcn3-hacks.git/dia2gsup testsuite.

Related: OS#5757
Change-Id: I646096d5a010df02af75aefa33b023b55997a6d7
2023-08-28 14:32:38 +02:00
Pau Espin 6e76289899 debian-*-erlang: Install libsctp to enable sctp support in erlang apps
The current "--enable-sctp" flag when building erlang consists of
supporting SCTP if the libsctp library is found at runtime, by
dynamically linking to it only when SCTP features are requested.

The erlang package in debian only lists libsctp as a Build-Depends, but
it is not installed by default, so apps wishing to use SCTP will fail:
"""
[error] CRASH REPORT Process <0.155.0> with 0 neighbours crashed with reason: no match of right hand value {error,{shutdown,{open,eprotonosupport}
"""

Installing the libsctp library fixes the issue.

Related: OS#5757
Change-Id: I5ca332f9064c16491116608577b3f68379d840e6
2023-08-28 12:24:45 +00:00
Oliver Smith 2e45b75e9d debian-bookworm-build: add curl
Add curl, as required by the coverity job to submit the API request.

Change-Id: I70eb2b94d0eda4b371d674e1087b4dc13397dcdf
2023-08-28 13:15:55 +02:00
Oliver Smith 832b09e718 debian-bookworm-build: add libnftables-dev
Add libnftables-dev, which is needed for osmo-upf. This is required to
move the coverity jenkins job to use this docker container.

Order the list alphabetically again while at it.

Change-Id: I25862a7e3c8a73e13fd4a9237ab57500d8dfc95c
2023-08-25 13:00:36 +02:00
Oliver Smith 870e94732f Cosmetic: debian-buster-jenkins: update comment
Related: OS#6126
Change-Id: I15be64a662e97e7e819abeda1c6c955d8198176c
2023-08-17 13:55:47 +02:00
Oliver Smith 5824c0ef0f release-tarball-build-dist: remove
Remove the container, as the job has been rewritten to not require its
own docker container anymore, see the osmo-ci patch.

Depends: osmo-ci I9f8b671b9780da500637a64fc4dbc72b450f9d11
Change-Id: Ic35a28a386170b85d32aab8f2bd33e48e6d45392
2023-08-17 13:55:04 +02:00
Oliver Smith cf43251869 fpga-build: use debian-bookworm-build
* Remove code that is in debian-bookworm-build already (all packages
  that get installed, creating the build user, installing osmo-ci and
  osmo-gsm-manuals).
* Put toolchain installations in single RUN commands, so the unextracted
  tarballs are not stored in image layers.

Related: OS#6057
Change-Id: Iaaca6367b76a6ec860c63d57c767954f82edfee5
2023-08-17 13:04:26 +02:00
Oliver Smith 3383a77448 debian-bookworm-build: inkscape -> librsvg2-bin
Merge at the same time as the osmo-gsm-manuals patch.

Depends: osmo-gsm-manuals I0d132f8f6fd73fbe14b5bfa10a8659acaddf38f7
Change-Id: I012c61eb777e6dc267dd4a52500da98c01ac1438
2023-08-17 13:04:18 +02:00
Oliver Smith 6a8118dad8 ttcn3: use debian-bookworm-titan
Related: OS#6057
Change-Id: I2017dd3888670c475b96e692d911a433484f3df9
2023-08-14 09:28:24 +00:00
Oliver Smith 069cdcc536 debian-bookworm-titan{,-master}: new containers
Add new containers based on debian-bookworm. Make some improvements
over the bullseye containers while at it:
* Remove sed for cversion.h, as the #error it is trying to replace is a
  warning now so it is a no-op, and we use our own eclipse-titan package
  instead of debian's package.
* Make apt commands consistent
* Move commands around to make better use of the cache
* Clone osmo-python-tests from gerrit instead of gitea and invalidate
  cache when master changes
* Tweak comments

Related: OS#6057
Change-Id: I4415fcde6518bd26d1e2cb5785ddaf84ac2116b3
2023-08-14 09:28:24 +00:00
Neels Hofmeyr 2fb37fc518 hnbgw: fixup: with-pfcp cfg: missing 'pfcp' section
Change-Id: I02be7c857d7dbf032bcadbea0812af732d27784f
2023-08-10 03:24:35 +02:00
Neels Hofmeyr db7b490c05 hnbgw: fixup: with-pfcp cfg: set missing x26 timer
Change-Id: Id9af3f99dedcc04424793560b171e595b88af0d7
2023-08-10 02:43:36 +02:00
Neels Hofmeyr c91b55e630 ttcn3-hnbgw-latest: fixup for cnpool: bind CTRL to 0.0.0.0
Change-Id: I70c8d8fc61830cb46dcc580b7e344425f7c6c26d
2023-08-08 07:45:10 +02:00
Neels Hofmeyr 571282acca hnbgw: fixup for cnpool: fix ASP IP addresses in osmo-stp.cfg
Change-Id: Ib6175eee69a7f37f987f996049351b9e1a545f58
2023-08-08 07:11:44 +02:00
Neels Hofmeyr 87c8ed0d6f hnbgw: fixup: adjust with-pfcp cfg like without-pfcp
Change-Id: Ice5aa8a6db512edad3535a55c5dba841670837ec
2023-08-08 06:29:57 +02:00
Neels Hofmeyr 0c3679264c hnbgw: fixup for cnpool: re-add lost MGCP cfg
Change-Id: I3491e2f9a675b737c12d84484f6d0219e8db0900
2023-08-08 06:26:27 +02:00
Neels Hofmeyr 7b78c860e7 hnbgw: tweak log
Change-Id: I974272b800bad4efc277d9832357e9caf34e2dd8
2023-08-08 06:23:15 +02:00
Neels Hofmeyr 4ca284cef9 hnbgw-latest: fixup for cnpool: use correct osmo-stp.cfg file name
Change-Id: I80ecfc694adb1cb44dddec30e845237676a4eead
2023-08-08 05:59:59 +02:00
Neels Hofmeyr 6101198952 hnbgw-latest: fixup for cnpool: use correct cfg file name
Change-Id: I40c2aca069114f9a07840eed11e608921ed65d26
2023-08-08 05:46:24 +02:00
Neels Hofmeyr 81bf25a96d hnbgw: fixup for cnpool: bind CTRL to 0.0.0.0
Change-Id: Ia71688f5468b3eabdead2996cc1470e467b9c10b
2023-08-08 05:40:38 +02:00
Neels Hofmeyr c2b05caf6e hnbgw: adjust cfg for cnpool tests
Config changes matching cnpool tests added in osmo-ttcn3-hacks, see
'Related'.

Keep a copy of the old config files named "-legacy", to not break the
'latest' tests, because osmo-hnbgw 'latest' does not yet support the new
config options.

Depends: osmo-ttcn3-hacks I027a059faed3f140f8801f84338956cd004043b5
Change-Id: I94aa0b2adfc48b98cb4b1efe595c2432fc603d6c
2023-08-08 02:50:18 +00:00
Philipp Maier 52256bc898 ttcn3-mme-test-ogs: configure Gn interface
The Gn interface is not configured yet, hence TC_gn_echo_request fails.

Related: OS#5760
Change-Id: Ia89a137103f558ae96e269c935fabe80bb2e2884
2023-08-07 11:49:15 +02:00
Oliver Smith 4e2f22d69a debian-bookworm-build{,-arm}: fix temp dir removal
Change-Id: I6a0e0869986550ddfa710dfc15d7e78d8974dbc5
2023-08-02 15:46:48 +02:00
Pau Espin 9c8b5fa9c2 debian-bullseye-titan-*/Dockerfile: Replace inetutils-ping with iputils-ping
iCurrently we install inetutils-ping in some docker images and
iputils-ping in others; let's make it more uniform to avoid running
different implementations in different images.
The iputils-ping provides further linux-specific features, such as the
"-I interface" param, which is used by some images, so let's pick that
one everywhere.

Change-Id: If11a1c2ae1115b585b6a44a45e9569c16856d8c4
2023-07-25 15:22:45 +00:00
Oliver Smith e0a1b5b454 osmo-uecups-master: make osmocom user avilable
Bring back the osmocom user that was removed earlier to fix a UID
conflict with the build user.

The osmocom user is being used after all, the TTCN-3 PGW tests use it to
start commands as "osmocom" user in osmo-uecups-master. This lead to e.g.
PGW_Tests.TC_createSession_ping4 failing.

Rename the user instead of adding a new one, so it can write log files
to the log dir as the same UID as the user that runs docker.

Fixes: 94f8a8 ("osmo-uecups-master: remove useradd")
Related: OS#6057
Change-Id: I2b29d7fedcf3e0a4c17bfbad16077098f94c529b
2023-07-25 15:21:35 +00:00
Pau Espin 4a9f22b864 ttcn3-hnbgw: fix disabling talloc report checks for hnbgw-latest
Older commit disabled the talloc report checks but forgot to add the
same line to the with-pfcp/ variant, and as a result the sed command in
jenkins.sh won't work there.

Fixes: cb4897e4c0
Change-Id: Id4eed548b3a552747e95784be3654952e10e96ab
2023-07-25 11:00:14 +02:00
Oliver Smith 1335eb578b kernel_test_prepare: use $DOCKER_ARGS
Use $DOCKER_ARGS in the docker run call to kernel-test/prepare.sh, which
builds the initramfs. I use this to make a local build of osmo-ggsn +
depends available in the docker container in /usr/local with the
ttcn3.sh script in osmo-dev.git.

Change-Id: Ie2500fa1bd9d57e2531463ce93fdd9930ad829d3
2023-07-21 11:28:33 +00:00
Oliver Smith 9500c29ce6 scripts/kernel-test: add KERNEL_SKIP_SMOKE_TEST
Speed up local test cycles by not running the smoke test every time.

Change-Id: I505b74e8c9b221655a97c5464f6fe4f21204a894
2023-07-21 11:28:33 +00:00
Oliver Smith c53a630c19 scripts/kernel-test: add KERNEL_SKIP_REBUILD
Speed up local test cycles by not building the kernel again from source
if not needed.

Change-Id: Iaa401918d7c09ec92ec546071d8961e99a4cbb47
2023-07-21 11:28:33 +00:00
Oliver Smith 421bac2d86 open5gs-master: drop unknown option metrics_impl
The metrics_impl option has been dropped in the related commit as
prometheus is now the default in open5gs. With newer meson, unknown
options are treated as errors (used to be warnings before).

Fix for:
ERROR: Unknown options: "metrics_impl"

Related: OS#6057
Related: 982ac61894
Change-Id: Ib859ef7389928019addecae08df2011eecda80ad
2023-07-21 10:59:03 +02:00
Oliver Smith 72ed70d4fc open5gs-master: useradd: don't hardcode uid
Give the user that runs open5gs a different UID than the build user from
the debian-bookworm-build container.

Fix for:
useradd: UID 1000 is not unique

Related: OS#6057
Change-Id: I49051e038740cfccbb11ad33a1884bb7de318710
2023-07-21 10:39:59 +02:00
Oliver Smith a05e3a66e5 open5gs-master: use DISTRO variable
Instead of hardcoding bullseye, use the DISTRO variable so it now
defaults to bookworm.

Related: OS#6057
Change-Id: Ia392de80ee1f0844563f08a6dc775678ef6b263f
2023-07-20 08:05:12 +00:00