Commit Graph

809 Commits

Author SHA1 Message Date
Harald Welte 0f74af6083 titan: move from debian-stetch-titan to debian-bullseye-titan
So far we were executing all our TTCN-3  tests from a container
image with Debian stretch (9) plus a custom more recent eclipse-titan
package from the osmocom feed.

Let's update the container base OS from stretch (9) to bullseye (11)
while using the same packaged eclipse-titan version (8.0.0) for running
the tests.  So this should be a low-risk change, as titan runtime
remains identical.

I've executed all test suites locally and couldn't see any regressions.

Related: OS#4969
Change-Id: Ib3bdfa3bec8f8ef42c55ca61cdee8fbca923874f
2021-12-16 11:40:17 +01:00
Oliver Smith 6f43284ee5 non-jenkins: unique build tag
Support running multiple TTCN-3 testsuites in parallel when the scripts get called from outside of jenkins too.

Closes: OS#5358
Change-Id: Iaaf5719f758553687f2ab57975be275e7ac07e36
2021-12-16 11:27:57 +01:00
Harald Welte 84a3680666 nplab-*test: Fix printing of junit on stdout
Before this patch the printing of the junit.xml to stdout fails:

+ collect_logs
+ cat '/tmp/tmp.CzafJpQyw8/*/junit-*.log'
cat: '/tmp/tmp.CzafJpQyw8/*/junit-*.log': No such file or directory
+ true

Change-Id: I600d3bdb3de23ef6f381cd5b81e2b851856b2b9b
2021-12-15 20:08:07 +00:00
Harald Welte 650870c9f5 bsc-test: Reduce log verbosity of osmo-stp
I don't really see the point of crating 19 MBytes of logs for every
ttcn3-bsc-* test run that consists mainly of debug messages about
sending a message from left to right. osmo-stp is not the IUT here,
but merely a part of the test fixture.  Let's reduce log verbosity.

Change-Id: If1d22814d89c4e52b3b7804110256d896b7cc99f
2021-12-15 18:05:19 +00:00
Harald Welte ab69bcc39b debian-{buster,stretch}-*: Explicitly specify DISTRO variables
It seems a manual 'make' in the respective directories no longer
works, as always the default distro is used as upstream reference.

Let's work around this by adding DISTRO variable assignments to the
respective makefiles.

Change-Id: I8769d504ca7afde07d4a0ad1f03aaaec892bf576
2021-12-15 18:05:19 +00:00
Harald Welte d3d4bcec41 Add debian-bullseye-build container
Change-Id: Ie2c75f30a5fc46979812ddfbea349e3d2fa91a7d
2021-12-15 18:04:45 +00:00
Harald Welte 7b607306b7 sync debian-buster-build with debian-stretch-build
Change-Id: I6f871613fc4e8dd069cbe8c4a0ef3d1725be8c7a
2021-12-15 18:04:45 +00:00
Oliver Smith 1fe2668f46 osmo-remsim-latest: add logic for centos pkgs
Change-Id: If888f69fdcd349c71da06a0f0cf2b6b2f6319fb8
2021-12-15 17:17:18 +01:00
Oliver Smith d748508f3c osmo-remsim-latest: fix apt install command
Adjust to the renamed subpackage in the "apt install" command to fix:
  E: Unable to locate package osmo-remsim-client

Related: osmo-remsim I6c634572af5036fd7f9ce1fee6d1474e06bdaa5a
Change-Id: I349111f4dd968f8e4de9598cc35aa99df221e06b
2021-12-15 16:56:12 +01:00
Pau Espin b9e45af675 hnodeb: Update Dockerfile, configs with new deps, configs
Pull in libgtp, configure LL socket, etc.

Change-Id: I5b223149cbbea16e4ccd9b3874874c6366fe7969
2021-12-15 14:39:32 +00:00
Vadim Yanitskiy 709a30b536 ttcn3-{sgsn,ggsn}-test: set OSMO_SUT_{HOST,PORT}
This enables the test suite to obtain talloc reports between the
test case executions, which get stored together with the PCAP files.

Change-Id: I61fef7763e6445c231ff2664036e243a9ac96ff6
Related: Icd4c2d80db934535d499598282ed9416d8088163
2021-12-14 22:09:29 +03:00
Vadim Yanitskiy 7fc251e5bf ttcn3-bts-test/osmo-bts.cfg: use default {fn,rts}-advance values
It's better if we run ttcn3-bts-test with the default values, given
that they were significantly reduced some time ago.

Change-Id: If8438adfdbc506d2b6b7858ea8a0ea859ba246a1
Related: I7da3d0948f38e12342fb714b29f8edc5e9d0933d (osmo-bts)
Related: OS#4487
2021-12-14 13:01:36 +00:00
Oliver Smith 0de98b2a1c debian-stretch-build-dist: add python3-nwdiag
Recent versions of osmo-gsm-manuals need python3-nwdiag instead of the
python2 version. Install that too to successfully run the configure

Related: OS#5347
Change-Id: I127bd3855d44ccc68a5b0c4d83147fb470cc10c9
2021-12-13 15:25:58 +00:00
Oliver Smith b581b96c1a osmo-pcap-latest: fix install path for centos
Adjust to the package not being split in rpm packaging. This was not
noticed before, because we did not run TTCN-3 tests for osmo-pcap with

Related: SYS#5754
Change-Id: I775776ff7f358fee3d085f814c295c49225f5170
2021-12-13 12:06:59 +00:00
Oliver Smith a09e593d2d osmo-pcap-master: doesn't need libosmo-netif
Don't attempt to install libosmo-netif in this Dockerfile. I've noticed
this because we want to build osmo-pcap for CentOS7 with this container
to run the TTCN-3 tests, and we don't have libosmo-netif for CentOS7.

Add pkgconfig(libosmogb), which is required to build osmo-pcap
according to In Debian, this gets installed as part of

Related: SYS#5754
Change-Id: I9c3a3b43ee7c25c06042f3303b9edb4005e7db31
2021-12-13 12:06:59 +00:00
Oliver Smith 351c2b22ad debian-stretch-build-dist: osmo-uecups deps
Related: OS#5347
Change-Id: I19b6b0363aeeb89ab6aac2b125359589e6b9b5a7
2021-12-13 11:55:50 +00:00
Oliver Smith 8ad04b75c6 debian-stretch-build-dist: osmo-remsim deps
Related: OS#5347
Change-Id: I8fd4b9d3734dd3bc0e3fca8ceaedda2aedc6a055
2021-12-13 11:55:50 +00:00
Oliver Smith 92462a2a37 debian-stretch-build-dist: osmo-pcap deps
Related: OS#5347
Change-Id: If0f00dd09ce0db6a05972a564474a707d2d3174b
2021-12-13 11:55:50 +00:00
Oliver Smith 38a6000f8c debian-stretch-build-dist: osmo-hnodeb deps
Related: OS#5347
Change-Id: I9d708d86bf29f9fca0446fb990c606780bd7a1cb
2021-12-13 11:55:50 +00:00
Oliver Smith 8dcf51c48f debian-stretch-build-dist: osmo-gsm-manuals deps
Add dependencies for osmo-gsm-manuals, so we can build the release
tarballs for it (autoreconf -fi; ./configure; make dist-bzip2) in the
related jenkins job. During update of the list of projects for which we
build these tarballs, it became apparent that it was missing. Following
patches will add dependencies needed to build release tarballs for all
other projects that were missing from the list.

Related: OS#5347
Change-Id: Iba2e71b2e757bc527561d0f3e4a1af5f024a3cd7
2021-12-13 11:55:50 +00:00
Oliver Smith db275974b8 Add centos7 containers
Related: SYS#5754
Change-Id: Iadf3d0d7143c2d81ea5e87fd07a3f4cd9239cb46
2021-12-11 15:16:54 +00:00
Vadim Yanitskiy 39ae7ed2f3 osmo-pcap-latest: fix typo in Dockerfile: s/clint/client/
This patch fixes 'ttcn3-pcap-client-test-latest' job on Jenkins.

Change-Id: Ibf472ec712624b16adff4b0f043771f257e7d71f
2021-12-11 01:13:06 +03:00
Oliver Smith ff961f6a9b pull imgs
Pull debian-stretch-titan from if the repository is
enabled. Otherwise the image gets only pulled the first time, and does
not get updated once it becomes outdated.

Fixes: OS#5336
Change-Id: I1cf998c21e4ee1f723c3b783703e339328377f3e
2021-12-03 17:30:28 +01:00
Oliver Smith f61d3ad8b5 fix redundant titan image build
Do not build debian-stretch-titan, when is enabled.
The image that would be built at this point is not useful, since other
images like ttcn3-msc-test will use the debian-stretch-titan image from
the registry instead of the one that was just built locally.

Related: OS#5336
Change-Id: I7127e3ebac3a6a985c3ba50ba8c7cb8c5de978d9
2021-12-03 17:29:40 +01:00
Vadim Yanitskiy 69809ab0a0 ttcn3-msc-test/osmo-msc.cfg: disable encryption for UTRAN
The Iu/UMTS specific test cases in ttcn3-msc-test expect no
encryption in Security Mode Command by default (only integrity),
while osmo-msc would permit both UEA1 and UEA2 unless configured
explicitly.  This causes the related test cases to fail.

A similar change was merged to osmo-ttcn3-hacks, updating the
osmo-msc.cfg in there, however the actual configuration file
that is used to execute test cases on Jenkins was not updated.

Change-Id: I43f80e3fbd73be21fb89006e16de0e1df9ba03f5
Fixes: OS#5333
2021-12-02 23:57:37 +03:00
Vadim Yanitskiy 3a2bdf20c3 ttcn3-msc-test/osmo-msc.cfg: remove deprecated 'periodic location update'
Let's keep osmo-msc.cfg up to date with the one in osmo-ttcn3-hacks.

Change-Id: I0576f21230dff2c96060430ef9ffb6001d19542d
2021-12-02 23:43:52 +03:00
Vadim Yanitskiy 4a44d23aed Revert "osmocom-bb-host-master: install python-enum as fake_trx dependency"
This reverts commit c034da0547.
Python 2 is EOL, we are using Python 3 now with built-in enums.

Change-Id: I6aa653f2165bb9a81aa8253fabc0fb436bcba009
2021-12-02 23:39:28 +03:00
Vadim Yanitskiy 2586829c5c Revert "osmo-msc-latest: centos8: add libdbi-dbd-sqlite"
This reverts commit 9a526e876f.
There is no need to install this dependency explicitly anymore.

Change-Id: I093f17981f5a09346cf46fe33b94c4b7833757c5
2021-12-02 23:36:05 +03:00
Vadim Yanitskiy 487ed0e148 open5gs-latest: fix Dockerfile: remove custom mirror list
I was experiencing problems with Debian's mirrors while working on
this image, so I had to use a custom mirror list.  This is a left-
over that should have been removed before merging.

Change-Id: I313bb604b09293bff8753edeefa7f78cafc9cc22
Related: SYS#5602
2021-12-02 23:33:25 +03:00
Oliver Smith a7f0d71a76 ttcn3-sccp-test/ fix typo
Fixes: 305ce55 ("ttcn3: write Osmocom repository to configs")
Change-Id: I79734da2744502a2b8c4db9d38f992b77fe6a42a
2021-12-01 13:54:43 +00:00
Vadim Yanitskiy bcf017e455 ttcn3-{bts,bsc,msc,hlr}-test: set OSMO_SUT_{HOST,PORT}
This enables the test suite to obtain talloc reports between the
test case executions, which get stored together with the PCAP files.
Let's see how it works with the mentioned projects first;  others
can be configured later.  See [1] for more details.

Change-Id: Icd4c2d80db934535d499598282ed9416d8088163
Related: [1] I1b03b17426d8760c55976e3b78ca2f3af248c055
Related: OS#5328
2021-12-01 13:48:50 +00:00
Vadim Yanitskiy d5a6ce2939 debian-stretch-titan/Dockerfile: install osmo-python-tests
We need in order to obtain talloc reports for
each test case automatically.  See [1] for more details.

Change-Id: Ida8e08e7fe4f171f934a2d4eef4568da7c398f5c
Related: [1] I1b03b17426d8760c55976e3b78ca2f3af248c055
2021-12-01 11:40:19 +00:00
Oliver Smith 440e62b9aa redmine: process changelogs every 10 minutes
Wrap the original entrypoint script with a custom one that also runs a
loop in the background, which periodically lets redmine fetch git
repositories. When repositories are fetched, redmine interpretes
"closes" etc. in commit messages to mark issues as resolved.

Closes: OS#5331
Change-Id: I2a65fd6be22ae541a93c08c71cf286e4b5ad370f
2021-11-30 16:23:44 +01:00
Oliver Smith 305ce55b74 ttcn3: write Osmocom repository to configs
Write a line like 'Misc_Helpers.mp_osmo_repo := "nightly"' into the
TTCN-3 config file (e.g. BSC_Tests.cfg), before starting the testsuite.
This allows executing different code paths in the tests based on the

Related: OS#5327
Change-Id: Ic06532f7a67e59458652c5cf4c8f6fee8113e703
2021-11-26 18:12:50 +01:00
Pau Espin b7c430dd10 Introduce Docker image for ttcn-hnodeb-test
Change-Id: I191b9a29c75d0a1f0bc38d4e29facfc45826cd31
2021-11-24 22:22:29 +00:00
Pau Espin dcf499203d Introduce Docker image for osmo-hnodeb-master
Change-Id: I35e5324d981be8130fbc4e6dcd3e8933181e6821
2021-11-24 22:22:29 +00:00
Vadim Yanitskiy baade9eef3 open5gs-latest: new Dockerfile for latest open5gs from packages
Change-Id: I06b90b84d22ba8d34bed9f84861ff94bdcabe6c3
Related: SYS#5602
2021-11-23 12:20:05 +03:00
Vadim Yanitskiy 1e8e606d16 make/Makefile: allow specifying optional command for 'run'
Change-Id: I676c5525effe8f34ae11f7b8ed4da0d8961209bf
Related: SYS#5602
2021-11-23 12:19:57 +03:00
Vadim Yanitskiy 92f0b00cf1 open5gs-master: add missing dependencies
Change-Id: I39806a8cc33a1f975b03839fb16466dabb57a26d
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Vadim Yanitskiy 9539f24193 open5gs-master: there is no 'master' anymore, use 'main'
Change-Id: If02740d8ddb4775cc22e9d4ed78226d09c466626
Related: SYS#5602
2021-11-19 00:40:45 +00:00
Vadim Yanitskiy 8b2aeab0c2 ttcn3-stp-test: do not set mp_osmo_stp_newer_than_1_4_0
Setting a non-existing parameter makes TITAN unhappy:

  HC@fd91bc0a2114: Error while setting parameter field
                   'STP_Tests_M3UA.mp_osmo_stp_newer_than_1_4_0' to 'true':
                   Module parameter cannot be set, because no parameter with
                   name 'mp_osmo_stp_newer_than_1_4_0' exists in module

Change-Id: Ie4fba3eb73e0da60bc20859efddecc5ec816cb9e
2021-11-18 22:05:42 +03:00
Pau Espin 1821fd80e9 ttcn3-stp: osmo-stp in master is >1.4.0 now
osmo-stp 1.5.0 was released today, so we can drop those specific checks.

Change-Id: I354c1487d9a32e2c7d48c57e7b63007f5360677e
2021-11-16 19:12:31 +01:00
Pau Espin 8071b00c6b ttcn3-pcu: Update config for latest after new osmo-pcu release
New osmo-pcu 1.0.0 which supports all expected features. Hence we can
drop special quirks to have tests passing in latest.

Change-Id: Ieb85dac479e6960e4160767e514084b80edd297b
2021-11-16 19:12:27 +01:00
Pau Espin 3c4fe3d584 ttcn3-sip: Don't force mncc version 7 for latest
osmo-sip-connector 1.6.0 supporting latest mncc version was released.

Change-Id: Iff2bcbfb3e84140cccdf93b0924ede09e44793b0
2021-11-16 19:06:06 +01:00
Pau Espin 0b842d8970 ttcn3-sgsn: latest osmo-sgsn release supports RIM
osmo-sgsn 1.8.0 supporting the VTY commands was released, so no need to
drop those.

Change-Id: I803514a28491ebe142691062f6033f179474b064
2021-11-16 19:04:45 +01:00
Pau Espin 9581a23764 ttcn3-bsc-test: Leave mp_enable_dyn_sdcch8_test enabled in latest
Release 1.8.0 is already released, so latest should support this.

Change-Id: I560cb7d0ab61b5373982160032040a65dc043ce4
2021-11-16 19:00:36 +01:00
Vadim Yanitskiy ebb4f59a94 ttcn3-sip-test: use MNCCv7 for the '-latest' SUT
Change-Id: Ic1e6e5f9ea959166b727795232bb58b9a25cc049
Related: OS#5282, OS#5164
2021-10-28 17:17:22 +03:00
Harald Welte c18597226c redmine: upgrade to 4.2
Change-Id: I38b3ee8c47f22c601c3a26c5c7238ac8bebe33a8
2021-10-27 19:09:27 +02:00
Harald Welte a07f803328 upgrade to redmine 4.1
this requires a local patch to ruby-openid, as it apparently doesn't
suppor rails 5.x (Paramters are not a hash anymore, hence lenth
method cannot be used)

Change-Id: I028d6d72757abf5d990ca2e8327e5f0a9fe3d333
2021-10-27 18:49:16 +02:00
Harald Welte d03adb8afd upgrade gerrit to 3.2.12
Change-Id: I1d3e4a0198085e7cd2bfe32b080b89ab2632bdf4
2021-10-24 15:06:09 +02:00