Commit Graph

616 Commits

Author SHA1 Message Date
Oliver Smith 27ce2c7ed9 debian-stretch-jenkins: move from osmo-ci.git
Put Dockerfile_osmocom_jenkins.amd64 ("osmocom:deb9_amd64") from
osmo-ci.git here and give it a more descriptive name.

The image is used to run contrib/jenkins.sh scripts of most Osmocom
projects. Move it to here, so we have all docker images in one place.
In the future, osmo-ci.git will use more images from
docker-playground.git in gerrit verification, such as
debian-buster-erlang.

Related: OS#4345
Change-Id: I125ae8a6bcabbd1f485028c79b0abacda0622c3a
2020-01-15 09:28:49 +01:00
Harald Welte 546df1aa93 Add debian-buster-simtrace2 Dockerfile
This container is useful for people wanting to have an easy method
to gain a build environment for the simtrace2 firmware + host utilities.

Change-Id: I08b2fc542dd3568d26f199427523cfa81eb26d70
2020-01-09 22:23:14 +00:00
Harald Welte 830401f3f1 docker-*-build: Add missign dependency to stow
Change-Id: Ia1adac1e8e56c6dfa283af9cf2e8f426c77ef2e1
2020-01-09 22:11:06 +00:00
Harald Welte 7a69037269 debian-*-build: Add {gcc,newlib}-arm-none-eabi for simtrace2 firmware
The sitmrace2.git firmware buidl requires this cross-compiler.  We
so far didn't build it within this container, but lets make sure
we could, if we'd want.

Change-Id: If335247381aab2621fcbe6e6e596a1416e05fdf4
2020-01-09 22:11:06 +00:00
Harald Welte 90566d6053 debian-buster-build: actually switch to buster
Change-Id: I35968431515e160b1ce6d766220a413a503f1a3a
2020-01-09 22:11:06 +00:00
Harald Welte 9fa9b24325 start debian-buster-build as copy of debian-jessie-build
Change-Id: I8eb6697ba736b933120bff5950b68294b4b4f842
2020-01-09 22:11:06 +00:00
Pau Espin 091f0a940a ttcn3-stp: Fix recent commit breaking tests
Recent test aiming at dropping different cfg file for latest also
dropped the cp of the regular cfg file. Let's re-add it.

Fixes: 0f34d37491
Change-Id: Ia79e5b50978ed09ce4d0a5a286770e867657ad3e
2020-01-07 12:01:03 +01:00
Harald Welte c76c3f24fd Add debian-buster-erlang container
The idea for this is to be used in build verification for erlang
projects.  We also include C compiler and common utilities for those
projects or upstream dependencies that may require it.

Change-Id: I06c11a188404e183ed04bacf1673ecef2dc9ca47
2020-01-05 18:38:22 +00:00
Pau Espin 898e276772 ttcn3-sip: Drop unneeded SIP_Tests.cfg modifications for latest
Latest osmo-sip-connector release 1.4.0 already behaves the same as
master.

Change-Id: I3c8ef08c7a60e0c83c43ea79e882dfb2d2328fa6
2020-01-05 11:22:36 +00:00
Pau Espin 4c7a7259d3 ttcn3-pcu: Drop unneeded modifications for latest
Latest osmo-pcu release 0.8.0 already behaves same as master.

Change-Id: I774af9eb7625891d906d33a0ea0ab3ffc5973a32
2020-01-05 11:22:36 +00:00
Pau Espin 3d14860d4e ttcn3-sgsn: Drop unneeded .cfg change for latest
Latest libosmo-sccp release 1.2.0 already uses same id as master.

Change-Id: Ib7473de84521c37d6408ac1235244250284bd59a
2020-01-05 11:22:36 +00:00
Pau Espin f6df33122a ttcn3-ggsn: Drop no longer existing m_ggsn_supports_echo_interval
It was removed since latest osmo-ggsn release is nowadays 1.5.0.

Depends: osmo-ttcn3-hacks.git Ie1c3cde2a01e8ea49aadcb1f7384995cb68039cb
Change-Id: I9ffd7549172055e6180a5c3f167dcc1133648243
2020-01-05 11:22:36 +00:00
Pau Espin 0f34d37491 ttcn3-stp: Drop unneeded different osmo-stp.cfg for latest
Latest tagged release of libosmo-sccp, version 1.2.0, already supports
the regular osmo-stp.cfg file.

Change-Id: Ifb3eb642fa5547d1ce2de81f51f181e226dceed7
2020-01-05 11:22:36 +00:00
Pau Espin 8b060352f2 ttcn3-mgw: Drop not longer existing mp_enable_conn_timeout_test
It was removed since latest osmo-mgw release is nowadays 1.7.0.

Depends: osmo-ttcn3-hacks.git I537c0f5fd6f9e18e111c773c0e42e5f1120ce2f4
Change-Id: Ia457546431e0c3bb3148f4886644ed3fa2513835
2020-01-05 11:22:36 +00:00
Harald Welte ec08dfb465 add dahdi-source to debian-stretch-build container
... otherwise modern libosmo-abis builds will fail.

Change-Id: Ia1f0f59ba1c6ab0edcd06a7c0f939c00bdd1f738
Closes: OS#4344
2020-01-05 11:20:07 +00:00
Pau Espin db32c0a431 ttcn3-pcu: Run tests from PCU_Tests_RAW_NS.ttcn
NS tests have been splitted recently into their own module. Make sure we
call tests from the new module.

Depends: osmo-ttcn3-hacks.git If680d1bd7dbfe98829f330c33705e0f13bedf3c7
Change-Id: I3e2ec21c56fbfad5d1af051dcc0d0a9c88d2070a
2019-12-30 14:17:15 +01:00
Vadim Yanitskiy 76c87949db ttcn3-bts-test/oml: fix osmo-bts.cfg: osmo-bts-trx has no DSP/HW MS Power Control
It was noticed that most of the OML related TTCN-3 test cases do not
pass anymore, while some of them are green for the release builds.

The culprit is I49706926b1e962b18791174627bc3cc0cd0cd9d5, which did
not ensure backwards compatibility with older configuration files.
Let's remove 'ms-power-control dsp' and use the defaults.

Change-Id: I940df510d803d0eaa063dd5145c2f9a4c5d0543f
2019-12-19 11:15:04 +09:00
Harald Welte 8c111b0b41 osmo-remsim-master: Add libosmo-simtrace2-dev to container
This is a new build requirement.

Change-Id: Idd85dcd3802fcf75f65ea36fc5d13030c1b0662b
2019-12-18 14:01:44 +01:00
Pau Espin d47c78ce11 ttcn3-ggsn: Log osmo-ggsn stdout+stderr to file
Fixes: c3f157b939
Change-Id: Ia4c4589902bd72918f1d114afa890b049d6e8fd7
2019-12-17 10:56:04 +01:00
Pau Espin 1e7ad40cbe pcu-master: Remove non-existent --enable-trx configure option from Dockerfile
configure: WARNING: unrecognized options: --enable-trx

Change-Id: I24f10e2b99771cdd5a1e72a1ad5626aff649258f
2019-12-17 10:38:04 +01:00
Harald Welte 8e13dc1d7f ttcn3-stp-test: Support testing of 'latest'
Change-Id: I1ea9d3312a2775aee8c298370fc5cd84a4b62477
2019-12-10 21:31:27 +00:00
Pau Espin 1385d5e2be ttcn3-bts: Fix trxcon docker volume dir created as root
If directory is not created beforehand by the user, docker (root) will
create the directory before binding it to the container.

Related: OS#4313
Fixes: a66f6ebb23
Change-Id: I3f02faef1aa5846c48a3776191c3862bac913d10
2019-12-09 11:50:31 +01:00
Pau Espin 436ac6758d ttcn3-cpu: Support VTY prompt used in older versions of osmo-pcu
Change-Id: I8cec3da889623915ca46b5eb1b51bc81195accf9
2019-12-04 17:17:09 +01:00
Pau Espin a66f6ebb23 ttcn3-bts: Mount trxcon dir so logs can be retrieved outside of docker
Change-Id: Icd243b62b8c80cdb2c2f09e1308f00565589c0e7
2019-12-04 14:11:38 +01:00
Harald Welte ef5c43531a remsim: Ensure non-overlapping junit-xml filenames
The default filename pattern of the JUnit log plugins of TTCN-3 is
"junit-xml-%u.xml" where %u represents the PID of the process.  This
is typically a good idea as the PID doesn't wrap that quickly.  However,
if you're executing a new docker container for every test suite run,
then chances are high that two subsequent runs of the test suite
container might end up with the same PID and hence the smae filename.

This results in the output file being overwritten, which is what's
responsible for many missing  RemsimServer_Tests results on the
jenkins.osmocom.org test results analyzer.

Change-Id: I9b6d1b5a943eb4e058ad2bf7cf8acee7b70e68b6
Closes: OS#4205
2019-12-01 22:13:17 +01:00
Pau Espin f10f0e4df8 ttcn3-pcu: Set correct VTY listen addr in PCU_Tests.cfg
Now that osmo-ttcn3-hacks.git I221675721b65b3ab44179e9657da70ba4004d7de
introduced VTY support for PCU_Tests_RAW, we need to use the correct
addr here.

Change-Id: I6807dafd79e58750ffa953da30eb34671aa25808
2019-11-30 09:34:59 +00:00
Neels Hofmeyr 65712d64e5 for sip-latest tests, use MNCC version 5
osmo-sip-connector master and the ttcn3 tests have moved to protocol version 6.
While the extension is gracefully handled by the ttcn templates to make do with
both protocol versions, the actual protocol version number sent to
osmo-sip-connector breaks the tests if it doesn't match. So that master can
still run v6 yet also pass 'latest', configure v5 when the version is not
'master'.

When 'latest' also moves to v6, we of course can revert this again.

Related: Iaca9ed6611fc5ca8ca749bbbefc31f54bea5e925 (osmo-sip-connector)
Related: I39d55432776926a385e1b85b21bcdea8180a8946 (osmo-ttcn3-hacks)
Change-Id: I2174e90bdea32f06cd3e8298696b93027e7906bc
2019-11-28 20:58:27 +01:00
Pau Espin c3f157b939 Update ttcn3-*/jenkins.sh to log stdout+stderr of process to log file
This way we get VTY parsing failures as well as backtraces upon process
crash.

Related: OS#4212
Change-Id: I3d9f6de638dbc07391a32c6a0cbd469dc5adf2b5
2019-11-20 17:17:45 +01:00
Pau Espin 0193073507 respawn.sh: Add logging and limit loop iterations
Since we'll now log the script and its children output to a file, let's
make sure the loop doesn't run countless times upon failing child
process, producing lots of potential undesired output. For instance, if
osmo-bts fails to read vty config and exits immediately.

Change-Id: Icc8cac889d94d4cce7d6365781d5b5364404b5b9
2019-11-20 17:14:54 +01:00
Pau Espin a9877bf487 Update osmo-*/Dockerfile to log stdout+stderr of process to log file
This way we get VTY parsing failures as well as backtraces upon process
crash.

Related: OS#4212
Change-Id: I9493ff73ef27c7c6d32b00cf827704b3f9cbf86a
2019-11-19 18:29:00 +00:00
Pau Espin f19670453d Drop default vty cmd 'ms-power-control dsp'
That's the default value for all BTS, so no need to have it there.
Furthermore, forthcoming osmo-bts patches will drop osmo-bts-trx support
for DSP/HW based MS Power control, which means BTS will reject this
setting. Let's drop it now and let osmo-bts binary to select the
preferred one.

Related: OS#1851
Change-Id: I0f69880a5028002a53736653735c11ae3cd53f07
2019-11-14 18:40:08 +01:00
Harald Welte 49544ac592 ttcn3-stp-tests: laforge/stp has been merged master; use master
Change-Id: I0ec887f40d00f7c24b67a4525b363abb869ad18b
2019-11-13 17:44:04 +01:00
Pau Espin 1569ceb9f4 ttcn3-stp/Makefile: Drop defaulting to branch laforge/stp
Once osmo-ttcn3-hacks.git branch laforge/stp has been merged (where
STP_Tests devel was done), we can use master like we do for other
suites.

Change-Id: I844ecf8a636ead55b7b406cb97424a4a35a6b674
2019-11-12 13:10:38 +01:00
Pau Espin a319eac111 ttcn3-stp: Update osmo-stp.cfg to match new TTCN3 tests expectancies
Change-Id: If3b3b7f1c05bcd2b0ea2b1ef6f432eb5f0013026
2019-11-07 18:39:22 +01:00
Pau Espin 8944147dbd ttcn3-stp/Makefile: Set branch to laforge/stp only if envvar not set
Change-Id: I1f4061f2b1d62e6a42af4629ce462269cfaf317f
2019-11-06 16:00:24 +01:00
Pau Espin 6135fcdafc ttcn3-stp: AS missing asp reference in osmo-stp.cfg
Change-Id: I3cac64217acf60720388f24713268a22e342e993
2019-11-05 19:32:38 +01:00
Pau Espin 1b8ddfc33e ttcn3-stp: Log osmo-stp output to file and gsmtap
Similar to what we do with other suites.

Change-Id: Ib12bc92c86e4a2ba15e1eec56f2ac0905281b21d
2019-11-05 17:16:20 +01:00
Pau Espin d6ac128cf8 make: Fix OSMO_BB_BRANCH not being passed correctly
Change-Id: Ia289f8e71e8bb6c59b1caa7a23981a1f08a2f49e
2019-11-05 13:02:24 +01:00
Philipp Maier e0079d37cf ttcn3-bts-test: remove obsolete vty config
The configuration file for osmo-bsc contains obsolete config statements,
which cause osmo-bsc to crash. Lets remove those config statements.

Change-Id: Ic91e2ee1e9132886cd02535bc84a568d4c25dbb4
2019-10-31 12:56:57 +01:00
Philipp Maier 7cb84b0d16 osmo-bsc-latest: remove obsolete logging categories
The logging categories cc and mgcp are obsolete for osmo-bsc and will
cause recent versions of osmo-bsc to crash. Lets remove this logging
categories from the config file now.

Change-Id: Idd85318abe3fc982909c11115c886835a3d8cd37
2019-10-30 13:49:16 +00:00
Oliver Smith b6ab37d964 repo-install-test: disable osmo-ggsn service
OsmoGGSN is not able to use the tun4 device from the default config in
docker. Since the more strict config checking in [1], it does not just
report a warning, but fails to start:

	<0002> ggsn.c:189 APN(internet): Opening TUN device tun4
	<0001> tun.c:184 errno=2/No such file or directory open() failed
	<0002> ggsn.c:191 APN(internet): Failed to configure tun device
	Error occurred during reading the below line:
	  no shutdown
	Failed to open config file: '/etc/osmocom/osmo-ggsn.cfg'

Fix the repo install test jenkins job by not checking osmo-ggsn anymore.
In theory, we could probably create the tun device on the host, and
mount it inside the docker container. But that would require some
additional logic to clean it up properly, and it does not seem worth the
effort right now.

[1] libosmocore Ic9c1b566ec4a459f03e6319cf369691903cf9d00
Change-Id: I15c7a2f38a21cd96c9852ad26f4b4a81798e6593
2019-10-30 13:00:29 +00:00
Harald Welte 436fe0c143 stp: don't only execute STP_Tests.control, but also M3UA and IPA
Change-Id: Icc7d168dc90d3551d27c1be27c50d66dd84f0a50
Related: OS4220
2019-10-30 12:01:14 +01:00
Harald Welte 1e45b4d966 osmo-stp-test: Ensure we build the laforge/stp branch
Change-Id: I2cf300eb37b327450da0f8b20ee209a6109bf8fe
Related: OS#4220
2019-10-30 11:55:25 +01:00
Philipp Maier 80030e9815 osmo-bsc.cfg: remove obsolete logging categories (cc, mgcp)
The logging categories cc and mgcp are obsolete. The tests still contain
logging statements with those categories, which makes osmo-bsc
terminate during startup while parsing the configuration file.

Change-Id: Ifd6bf46b73420c0443f997ea953318710544b751
2019-10-30 08:08:31 +00:00
Daniel Willmann d74bc618e5 Add docker image for osmo-nitb-latest
Change-Id: I23cb350ded2940bd63b47ae84e44faa3292b0d9d
2019-10-29 12:37:18 +01:00
Pau Espin 5e70a29727 Introduce ttcn3-stp-test
Currently builds from osmo-ttcn3-hacks.git branch laforge/stp instead of
master, since it's only available in the former branch. Once it gets
merged, we can modify Dockerfile as explained in it.

OS#4220
Change-Id: I635c891f5da7b8c59527abbad14d7377465d1045
2019-10-24 16:46:02 +02:00
Pau Espin dbeec9ec47 ttcn3-bsc-sccplite: Enable color output in log file
Change-Id: I63932a9d2aafad68624aee3e42bef0bd4c2c4717
2019-10-23 17:59:27 +02:00
Pau Espin 6a994afdf9 Fix trailing whitespace
Change-Id: Ib51a84560bad521d0adf4bb883c10418c51468a2
2019-10-23 17:58:05 +02:00
Pau Espin 4c73bc883d bsc: Set route ctx 0 for IPA and 1 for M3UA
Since libosmo-sccp.git 89407619a31a4332bdb59e7921b99a29b7d6e00c it is
not allowed to use routing ctx != 0 for IPA AS.

Change-Id: If3e883aa988ffa1686f1363d5d5d4dbb21ce36c7
2019-10-22 18:44:59 +02:00
Daniel Willmann c66029cd99 Fix ttcn3-pcu-test-latest
Remove the gsmtap-categories that are unknown to the latest osmo-pcu
release.

Change-Id: I4ed750aaa728272fcda09fd23cf172db0e539aa8
2019-10-15 12:55:43 +02:00