Commit Graph

542 Commits

Author SHA1 Message Date
Pau Espin cafa320eba osmo-gsm-tester: Use non 'inst' name as target install dir, and remove it once archived
osmo-gsm-tester uses also the "inst/" directory, so using that name to
install from cmake is not a good idea here, since they will end up in
the same directory under /tmp/trial/inst.
Also, make sure the temporary install dst directory is removed after
creating the archive, since at that point is no longer needed.

Change-Id: Ib6610487140f0703d5817241bc4a63027696c1d4
2020-03-20 19:17:35 +01:00
Pau Espin 41230705dc osmo-gsm-tester: Build srsLTE inside the docker instance if inst not provided by host
osmo-gsm-tester.git/contrib/jenkins-build-srslte.sh cannot be used
because there's a need to split the fetch step from the build step.
That's because we want to fetch in the host (in order to use host's user
ssh key for potential private repos) while still building inside the
docker container, where we have all the dependencies (and where the
binaries are going to be run afterwards by osmo-gsm-tester).

During the changes above it was also noticed that /tmp/trial on the host
got its UID+GID changed (because we switch user inside the container to
downscale privileges). Fix it by chown'ing the directory back to the
host user's UID+GID.

Change-Id: Ia0db8fba840392a0b7883cfc15e45c2e80407a16
2020-03-19 20:13:58 +01:00
Pau Espin 853ddcd792 osmo-gsm-tester: Base docker image on debian-stretch-jenkins
That image contains extra runtime dependencies (such as libua5.3) which
may be required by software run by osmo-gsm-tester.

Change-Id: I5c6239e1beb0cdc6d2b1477ddb60d66debe5d1aa
2020-03-12 15:51:08 +00:00
Pau Espin 9145a91594 osmo-gsm-tester: Allow passing osmo-gsm-tester params from jenkins.sh caller
After this patch, one can run osmo-gsm-tester with specific parameters
(debug level, suite and tests to run, etc.) by using
OSMO_GSM_TESTER_OPTS variable:
OSMO_GSM_TESTER_OPTS="-s 4g -t ping -l error" ./jenkins.sh

Change-Id: I2e8ff51a3152125148c6a117a987e8c11a576e1e
2020-03-12 15:49:48 +00:00
Pau Espin d61b741a61 osmo-gsm-tester: Allow setting rtprio inside the container
This fixes for instance srsLTE being unable to create a thread with
realtime priority.

Change-Id: If0d033c6e912795804e6d7322c22fdfc6602028b
2020-03-12 15:49:48 +00:00
Harald Welte dbd6d77a7e remsim: Enable "classic" client tests (client in separate container)
Change-Id: I0754a7c3c9f9caa65d33bb0a404b53f826cd0a75
2020-03-12 09:34:38 +00:00
Harald Welte 1c39da5d44 osmo-remism-latest: Actually use 'latest', not 'nightly' feed
Change-Id: I790a7c0777298c7e9786521858d3fd9b39831ad6
2020-03-11 10:02:20 +01:00
Pau Espin 0e0085d03b debian-stretch-jenkins: Install libulfius from osmocom OBS repos
We currently build libulfius 2.5. It doesn't say anywhere in osmo-remsim
that libulfius-3.6.4 is required anyway.

Change-Id: Ie6b07f676f8e06959eaac5e865c163de3f9c939d
2020-03-04 15:30:11 +01:00
Pau Espin 4b686a004e osmo-gsm-tester: Copy limits.d files to docker image
These are required to allow setting rt prio for jenkins user inside the
docker container, as well as for being allowed to create coredump files.

Change-Id: I8ed6193196d739c1416976d431d07b8a0c55ee2a
2020-03-02 18:04:24 +01:00
Pau Espin 2a9cf7a53a osmo-gsm-tester: Improvements anv fixes to run 4G network with latest ogt version
* Fix wrong KI.
* Add an extra IP address to slave so that ENB and EPC can be run on
  different IP addresses and their GTP ports don't collide.
* Add required rf parameters to resources.conf

Change-Id: I0198bc99f75e9567ee717aa79e434ec28705fac9
2020-03-02 17:28:39 +01:00
Pau Espin 79032097dc osmo-gsm-tester: Add missing srsLTE dependencies (soapy)
Currently srsLTE trials link against soapySDR library to have LimeSDR
support. We need to move installation of those new packages further
below in the Dockerfiler because that lib version is only available with
osmocom repositories (which were added at a later point in the file).

Change-Id: Ia0e506954ffebd94adb75fec6bf481e41f9ec436
2020-03-02 17:28:39 +01:00
Pau Espin 3e59758fd7 osmo-gsm-tester: new versions require python3-numpy
Change-Id: Ic1a9edbaf4151aabd157f859ec6fbec30d4f27b0
2020-03-02 16:39:53 +01:00
Pau Espin c9fa2a8808 Introduce osmo-gsm-tester docker setup
This set up allows running a typical osmo-gsm-tester set up with a main
unit (ogt-master) attached to one (or more) slaves where resources are
located and processes are run.

As an example, current config allows running an iperf3 test over an srsLTE
stack using the ZeroMQ backend.

Change-Id: Iac7c0b613048ce332642d3957c55cc7c53b56d42
2020-03-01 19:23:00 +00:00
Harald Welte dc6979956c remsim: Integrate pcscd+ifd-vpcd for bankd tests
This way we can actually tests TPDU transmission from a simulated
remsim client through the real bankd into a simulated SIM card.

Change-Id: I584e4c5e3d120bfbd26ade545fe41e541308f26a
2020-02-18 08:17:06 +00:00
Harald Welte d08e26ecb4 osmo-remsim-master: Add vpcd + pcscd to Docker image
This way we can run the container with osmo-remsim-bankd + ifd-vpcd,
i.e. with a simulated smart card reader behind the bank.

Change-Id: I463eca0f66197b409e00028e75e9501de620cc8b
2020-02-17 22:29:36 +01:00
Harald Welte 8e2329e2ec redmine: We no longer need the hmac diff
The upstream redmine container/image has meanwhile upgraded to a more
recent version of the ruby base modules which don't require to be
patched anymore.

Change-Id: I0fd7684bdab55eece889a7d9e524ec2a25b30a3b
2020-02-16 10:47:10 +01:00
Harald Welte 3f2d5cf89c update gerrit to 2.16.16
We want to stay on the 2.16.x branch so we cannot use 'lastest'

Change-Id: I20d81678a2d759bb3ac2a31945e684bf4065a8ff
2020-02-16 10:46:59 +01:00
Oliver Smith 65f89f05d0 ttcn3-hlr-test: mp_hlr_supports_dgsm := false
Disable mp_hlr_supports_dgsm, until patches providing the VTY commands
are merged to osmo-hlr.git.

Related: OS#4380
Change-Id: I766d54c65ae9e7b6333f9bcfce49a70c588845d0
2020-02-10 08:28:19 +01:00
Oliver Smith bce6e2d186 ttcn3-hlr-test: set mp_hlr_supports_dgsm
Related: SYS#4618
Depends: osmo-ttcn3-hacks Ia7f92d33691f910549353b16a7b0efc18e521719
Change-Id: Iafdf267c6012264966857e41e855fa971f773023
2020-02-10 07:22:09 +00:00
Pau Espin 17b5945020 stp-master/Dockerfile: Install sccp_devmo_user bin instead of libtool wrapper
Related: OS#4343
Change-Id: Ic727d2ce0d010ad58276c912fd70ab76d4570dc2
2020-01-21 11:24:04 +01:00
Pau Espin 482184cb3e sccp: Enable gsmtap log target and configure stderr logging
Depends: libosmo-sccp.git Ie75d004a0e9f24309060f241f22209df1bbe358e
Change-Id: Ia36f5a4ac7d4d400c218ca3a394ea0482f1ae2d8
2020-01-20 16:08:41 +01:00
Pau Espin 031356cdc3 ttcn3-pcu: Bind VTY to assigned IP addr
Change-Id: I5240f7ff5d669228077e703b124e6b9de6e7f2b7
2020-01-20 14:03:27 +01:00
Pau Espin b2f417d9a8 Introduce ttcn-sccp dockerized setup
Since examples/sccp_demo_user (the binary used to test SCCP) is not
installed by libosmo-sccp.git during make install, we need to install it
manually after "make" step, and hence it's only available in
osmo-stp-master, because in osmo-stp-latest we used packaged files.

Related: OS#4343
Depends: osmo-ttcn3-hacks.git Ied9fbfb9bd35a99205ca13db033dd9ea03d51238
Change-Id: I5a7e6ff5f6e5f6e34d6a5ab29bd760a6f9d49c4b
2020-01-17 18:00:41 +01:00
Pau Espin fd77c845df README.md: Document how to get gdb backtrace from process crash
Change-Id: I507707a3ed0e7f88bcc9006612df531c848b949e
2020-01-16 14:50:15 +01:00
Pau Espin 259fd3cedf ttcn3-stp: Set default OSMO_TTCN3_BRANCH to master
Change-Id: I6b19e50f65bca6fe556c748f3c2b633f65037dce
2020-01-16 14:26:35 +01:00
Oliver Smith e8ec219ba2 debian-buster-erlang: rename user to "build"
Match username of debian-stretch-jenkins, so we can use the same docker
arguments for both images in gerrit-verifications.yml of osmo-ci.git.

Related: OS#4345
Change-Id: Ia3eaec6090c9652549b2850de74ee21730374bbd
2020-01-15 09:37:46 +01:00
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