Commit Graph

386 Commits

Author SHA1 Message Date
Harald Welte aa1ccdabb7 Add Dockerfile for osmocom redmine:3.2 container
this container has mscgen + dot/graphviz, as we need it.

Change-Id: I8950f74da4d2ed10f15bcbe7596f6e9c13474e58
2018-05-13 21:21:50 +02:00
Harald Welte a421358ab8 Add osmo-*-latest Dockerfiles
Those containers are using the OBS-built "latest" packages on Debian 9

Change-Id: I6a564206dd81743deb1eb27eca7081bc333d7434
2018-05-04 18:12:37 +02:00
Neels Hofmeyr 5d2ffd0abf ttcn3-{mgw,ggsn}-test: use VOL_BASE_DIR from jenkins-common.sh
Do not brush over VOL_BASE_DIR with a new temp dir, since jenkins-common.sh has
already figured out where these should run.

Should fix jenkins job build failures for mgw and ggsn, after the merge of
I8cf6014725ae8ba602be5f3ec31dfb8e49ff993e.

Change-Id: Iee034df93bf8e8b995262749cf4654886032af2b
2018-05-03 14:26:50 +02:00
Neels Hofmeyr 18392ee604 jenkins.sh: stay in the jenkins workspace, not in /tmp
On jenkins, place all logs and manage docker volumes in the workspace instead
of a /tmp/* dir. Use $WORKSPACE/logs as docker volume base to begin with, thus
there needs to be no copy from /tmp to $WORKSPACE/logs.

On non-jenkins runs, place all in a /tmp/* dir still, but also skip copying of
the logs: just have a /tmp/logs symlink to the last tmpdir.

Change-Id: I8cf6014725ae8ba602be5f3ec31dfb8e49ff993e
2018-05-02 09:36:57 +00:00
Harald Welte aff7d1b4d8 ttcn3-ggsn-test: Add VTY IP to config file
In Change-Id: I1dc299407c61b1c865035add44067b8ab89001b3
a VTY interface was added to osmo-ttcn3-hacks.git, but
it was missed to update the config file here for the dockerized
execution, rendering us with broken test builds ever since.

Change-Id: I9539f7a28cf9214bd73ac9f80d22c71041c47adb
Related: OS#2519
2018-04-26 07:02:31 +00:00
Holger Hans Peter Freyther b210f3aa6e Add Dockerfile for gerrit and monkey patch
The openid support doesn't allow to add custom providers but we like the
convenience of a single click. Take the official docker image and patch
the HTML template. It seems to have changed little over the time, and it
might continue like that...

I have filed https://bugs.chromium.org/p/gerrit/issues/detail?id=8828 so
that we can drop this hack in the future...

Change-Id: I713948fbb93355c2e33e3b92969e2389cb88c938
2018-04-24 16:19:49 +00:00
Neels Hofmeyr 2f61bf81e9 jenkins.sh: have one common function to collect logs
To remove code dup and prepare a change to where logs are written, add
collect_logs() to jenkins_common.sh and call that from each jenkins.sh after
the tests are done.

The 'rm -rf' is already done before a test starts. No need to do that again
after each test.

Change-Id: I5d8472ec36b07c828685b1bd7718e31392d168a3
2018-04-24 13:46:05 +00:00
Neels Hofmeyr 9f5131ab9d jenkins.sh: drop obsolete VOL_SUITE_DIR
Subdirs' jenkins.sh scripts create their own subdirs without exception.

Change-Id: Iaf428cde0f4d3efbdb31d7af434aa82425c1bc5f
2018-04-24 13:46:03 +00:00
Harald Welte 588da83011 bsc + msc: Add missing BSSAP_Configuration.transport field
After merging Change-Id: Ie844c4de62e0ef5d5c4c366185968211a7f6d676
in osmo-ttcn3-hacks, the module parameters for BSSAP configuration
require one extra argument.

Change-Id: I2a0011bc6f7bdf013005d1ea36da591673344eed
Related: OS#2544
2018-04-18 15:40:33 +02:00
Harald Welte 67c306a8df ttcn3-*-test: Remove cherry-pick of CCM related HACK
This is no longer needed as the fix for https://osmocom.org/issues/2718
has been merged to master of osmo-ttcn3-hacks

Change-Id: Ia0c1c134405fdbce1c65059d705827f1a643e774
Related: OS#2718
2018-04-17 21:58:08 +02:00
Harald Welte 8e337f0bca ttcn3-msc-test: Add SMPP config bits
Change-Id: I595a1ca2d47667e654f8a0a69bfe98c91ac58d39
2018-04-14 19:40:12 +00:00
Alexander Couzens 5910de0394 Makefile: use $USER/image when depending on a generated image
Te make scripts will generate docker images like
"$username/foobar-test". When depending on an previous image,
the $username must match or the build will about with image not found.

Change-Id: Ied42c3e1de9a2ffaca22ba4cd02e6a398e48e97d
2018-04-12 09:20:34 +00:00
Alexander Couzens a80e410fc5 add .gitreview
Allows `git review` to automatic setup gerrit

Change-Id: I179c02d38496bf3d408020db7f0baf79ee064705
2018-04-12 09:20:24 +00:00
Neels Hofmeyr 2d734900d8 ttcn3-bsc-test: bsc cfg: fix ARFCN-BSIC collisions
All three BTS are configured for ARFCN 871 and BSIC 63, which causes trouble
for handover tests. Set BSICs to 10, 11 and 12 (not 0,1,2 to mark the
distinction from the cell_identity).

It wasn't a problem so far since we cheated by passing the BTS target number
from VTY. But as soon as we will start identifying handover target cells by
ARFCN+BSIC exclusively, TC_ho_int would fall on its face without this patch.

See also: osmo-ttcn3-hacks I2ea8889ea40953f5a23eab40db52585556a410bc
Change-Id: I29a117aa54aa06ca49646f25a08af8521832fd8d
2018-04-11 01:24:05 +02:00
Vadim Yanitskiy 9d3b695d46 ttcn3-bts-test/jenkins.sh: fix fake_trx.py path
Change-Id: Ie9931651d477dc95c561a5ed554d5360b465d4da
2018-04-10 18:08:10 +07:00
Vadim Yanitskiy 54f75b6c8d trxcon/Dockerfile: use 'master' branch
The 'laforge/trx' branch of OsmocomBB was used to make basic
TTCN3 tests, such as the 'max_ta', work ASAP. Now all required
changes and some bug fixes have been merged to the 'master'.

Change-Id: I4c3012c4ad24dfebea61e14038bea86d4f56832d
2018-04-08 01:14:09 +07:00
Harald Welte 7bbf1c8f7c ttcn3-bts-test: Configure BTS to have dynamic PDCH
This is required by later versions of the osmo-ttcn3-hacks BTS
test suite after Change-Id I2a42531dc5555ab4772d538fda462343605b8feb

Change-Id: I229000ce7609845fdf24cafe1f5ec2bfa3f507e8
2018-04-06 13:47:34 +02:00
Neels Hofmeyr 6239abbd9c root Makefile: fix ttcn3-msc-test rule, drop an extra .PHONY
Change-Id: I098d9d84d9ce89b1dab204b90d2cd7ee7b3f19c9
2018-04-05 13:52:19 +02:00
Neels Hofmeyr 2f1b669e2f fix 'make -C subdir': use $(CURDIR) instead of $PWD
$(PWD) reflects the dir of 'make' invocation, $(CURDIR) the dir stepped into.
So obtain the current dir from $(CURDIR) instead of $(PWD).

So far, when doing 'make -C osmo-foo-maser', the image's name would be derived
from the root dir's basename and all images were tagged as 'docker-playground'.
With this fix, 'make -C' from anywhere still tags with the proper name.

Change-Id: I1dd0fd1ad89fdee18fdbea851ccc831ad60aeccf
2018-04-05 03:15:23 +02:00
Neels Hofmeyr 1b51ff89c5 osmo-bsc.cfg: drop legacy config: timeout-ping, timeout-pong
Change-Id: I70bffa7ed96da099993ba0cedc50178ca9e00db4
2018-04-05 00:54:18 +02:00
Neels Hofmeyr 024458ce91 ttcn3-bts-test: properly configure CTRL interface
osmo-ttcn3-hacks adds configuration of the CTRL interface in
I502b4891e6720ae2fb251c03542f707880a6f728. We need proper IP addresses here for
the f_ipa_ctrl_start() to work.

WARNING: This commit has to be merged "at the same time" as
I502b4891e6720ae2fb251c03542f707880a6f728 or the jenkins ttcn3-bts-tests will
fail.

a) if we want to set a modulepar mp_ctrl_ip here, it needs to be added to
osmo-ttcn3-hacks.

b) if we have the f_ipa_ctrl_start() in osmo-ttcn3-hacks, we need to configure
the proper IP and bind interface here, or all tests will fail because
f_ipa_ctrl_start() cannot connect.

Change-Id: I1ec86b157ebd46bf622a0ca51eba225f15c99fbb
2018-04-03 19:29:45 +02:00
Philipp Maier a13c475215 MSC_Tests: Fix routing key in ttcn3-msc-test
the routink key for virt-bsc0-0 and virt-bsc1-0 is the same
(0), virt-bsc0-0 and virt-bsc1-0 should use different routing
keys.

- Keep the routing key of virt-bsc1-0 and assign routing key 1
  to virt-bsc1-0

Change-Id: I1380ba389dc777cdac84677588b85759cad4bc14
2018-03-29 17:19:35 +02:00
Harald Welte b369792722 ttcn3-bsc-test: Fix config file syntax
In osmo-ttcn3-hacks Change-Id I52a4c8118828c1605cf672889982f987568ad17d
we introduced changes to the BSSAP_Adapter, but the config file for
the BSC hasn't been updated accordingly here.

Change-Id: I7cfc6414c1a783bab54f0d82589de82af4764daa
2018-03-29 14:35:35 +00:00
Harald Welte f4857ed00c msc: Fix osmo-stp.cfg
In Change-Id: Ie7780750f7032453951f6849ecee6ab7cc34e8c2 we not only
introduced a MSC_Tests.default with syntax errors, but also a
osmo-stp.cfg with syntax errors :((

Change-Id: If7a7ff3d7ddb255654d14fe17033390214fe5341
2018-03-29 13:56:23 +02:00
Philipp Maier 92344af824 ttcn3-msc-test: update configuration
The MSC_Tests.ttcn testsuite is now able to present multiple BSC
to the MSC (IUT). This change requires the configuration files
of osmo-stp and of the testsuite to be changed.

- update MSC_Tests.cfg to present up to two BSCs to the MSC
- update osmo-stp.cfg to support the additional connection
  from the testsuite

Change-Id: Ie7780750f7032453951f6849ecee6ab7cc34e8c2
Depends: osmo-ttcn3-hacks I52a4c8118828c1605cf672889982f987568ad17d
Related: OS#1609
2018-03-28 17:44:43 +00:00
Harald Welte c3835fc65e Add git-daemon docker container
Change-Id: I1d3632c43a9ec551164401beecbaf94a49e2a470
2018-03-28 17:43:33 +00:00
Harald Welte d8f0860056 Add gitolite Docker container
Change-Id: I1cd4aecd6ca6794c72e5eaabc3678500ed8a8d72
2018-03-28 17:43:33 +00:00
Neels Hofmeyr b0a6dce4fe Makefile: add dependency tree to rebuild specific test suites' images
Change-Id: I1b3b750b0bf51c93c3b237acfd09d30262544045
2018-03-28 17:37:55 +00:00
Harald Welte b317348065 Add osmocom-extended cgit container
This uses the debian-nginx container "ankitrgadiya/cgit:debian-nginx"
and adds pygments for syntax highlighting, as well as the osmocom
commit filter for linking to gerrit change-ids as well as
redmine issues

Change-Id: Iec75769a972950ed9df95d5b36aa930daad1565a
2018-03-28 13:45:48 +02:00
Harald Welte ca0a2752c6 rename ggsn-test to ttcn3-ggsn-test to align with other naming
Change-Id: Ib2278d582048adb4d8bd3b25578372b3e1abfd77
2018-03-28 10:37:48 +00:00
Harald Welte 9ce4ef3b4b rename mgw-test to ttcn3-mgw-test to align with other containers
Change-Id: If38e95cf40829038c078eb6ecd3df840b2a7b178
2018-03-28 12:27:12 +02:00
Harald Welte 845d397c19 mgw_test: Use entire "control" section of testsuite
Change-Id: Id4121bd6974b58faaa8c471597708085ce14a192
2018-03-28 12:21:36 +02:00
Philipp Maier 41962f7bf5 ttcn3-bscc-test/osmo-bsc.cfg: Add TCH/H channels
The configuration of osmo-bsc currently only supports halfrate
traffic channels. In order to test assignments which contain
half rate codecs we also have to have halfrate channels available.

Change-Id: Ibcce03ab0c98545a1f316d88e1f3dd75e2ff65e1
Related: OS#3100
Related: OS#3095
2018-03-27 13:35:29 +02:00
Harald Welte 284a8816f2 add ttcn3-sip-test container
Change-Id: Ibfe2a2b47c266788d51e98d64bca7017caf19e29
2018-03-27 09:21:20 +02:00
Harald Welte b0bc0c237e add 'osmo-sip-master' Dockerfile
Change-Id: Ie9623df1b3181ddcfd868c14f0b05614853447b0
2018-03-27 08:24:48 +02:00
Harald Welte 6f786a7383 ttcn3-bsc-test: Enable all codecs on all BTSs
We now have TC_assignment_codec_ tests which assume that those
codecs are available.

Change-Id: I0ff19a4bc9bba5ff2de3b5d4c399b483e8ca097b
2018-03-22 18:30:08 +01:00
Neels Hofmeyr 116e442b2a fix ttcn3-bsc-test: BSC_Tests.cfg: set mp_test_ip
Allow the osmo-bsc-main docker container to reach the virtual MGW set up by the
ttcn3-bsc-tests.

The module parameter mp_test_ip sets the IP address at which the virtual
services are set up to listen for connections -- currently actually only the
virtual MGW. Set this to 172.18.2.203 instead of using the default 127.0.0.1.

This fixes the second half of the disconnect between BSC and virtual MGW in
this docker setup. The first half is Ib53f000ec7e717b14a3e5df6e803d3d0950b937f

Change-Id: I3038481ed0bba1084b63dc6a6d2ff6e970100890
2018-03-20 16:58:06 +01:00
Neels Hofmeyr 2f5a5b689c fix ttcn3-bsc-test: osmo-bsc.cfg: add mgw IP
The osmo-bsc-main docker container is run in a separate docker container and
cannot reach the virtual MGW set up by the ttcn3-bsc-tests.

From ttcn3-bsc-tests/jenkins.sh it is clear that the tests are run at IP
172.18.2.203. Add this as the 'mgw remote-ip' setting in
ttcn3-bsc-tests/osmo-bsc.cfg.

This fixes the first half of the disconnect between BSC and virtual MGW in this
docker setup. The second half is I3038481ed0bba1084b63dc6a6d2ff6e970100890.

Change-Id: Ib53f000ec7e717b14a3e5df6e803d3d0950b937f
2018-03-20 00:42:45 +01:00
Neels Hofmeyr a966cdfe4c debian-stretch-titan: add vim
When developing in the actual docker containers, vim is inexpendible.

Change-Id: I964e29c82ab9a1fb2a39845bc45a0d2cead56880
2018-03-19 14:12:43 +01:00
Harald Welte 32f13b23af ttcn3-bsc-test: Fix location of respawn.sh script 2018-03-19 07:47:10 +00:00
Harald Welte c90d07003c ttcn3-msc-test: Disable MM INFO
In the past, MM INFO transmission was broken, so the tests were
written without expecting it.  Now, the bug in osmo-msc has been
fixed.

With the config file enabling it, and the tests not expecting MM INFO,
a lot of them failed. Let's disable MM INFO for now until the tests
can deal with it
2018-03-18 21:38:43 +00:00
Harald Welte 3c34820699 ttcn3-msc-test: fix MNC/MCC to match MSC_Tests.ttcn
We recently introduced verification of the MCC/MNC, and the osmo-msc.cfg
MCC/MNC settings mis-matched those of MSC_Tests.ttcn resulting in lots
of test failures.
2018-03-18 17:06:39 +01:00
Harald Welte 2f5541b134 ttcn*test: use log_merge.sh to generate per-testcase merged logs 2018-03-18 13:33:39 +00:00
Harald Welte c99a78fc9e remove osmo-bts-omldummy container, it's now part of osmo-bts-master 2018-03-17 15:41:43 +00:00
Harald Welte e90ee9602b debian-stretch-titan: Use osmocom build of titan 6.3.x
Debian 9.0 ships with titan 6.1.0 which for some unknown reasons
causes segfaults in the C++ part when parsing CTRL messages and
according to TITAN project is not supported anymore anyway.

So let's use a 6.3.x build, or whatever is the highest version in
the network:osmocom:latest feed instead.
2018-03-16 17:41:44 +01:00
Harald Welte 76e59987b3 bts-test: Change logging to file so we get BTS/BSC logs as test result 2018-03-13 13:29:23 +00:00
Harald Welte f08dadbf5f Add *.control to the [EXECUTE] statement of all ttcn3 test suites
In osmo-ttcn3-hacks, we have removed the *.control from the *.default
files, so let's add it here in the config files.  You can now change
the tests to be executed by simply editing the config here.
2018-03-13 13:26:51 +00:00
Harald Welte a59c18da01 Add ttcn3-hlr-test container 2018-03-01 16:22:21 +00:00
Harald Welte c8158f9349 Add new 'osmo-hlr-master' container (for upcoming HLR tests) 2018-03-01 15:19:53 +00:00
Harald Welte c0da6a0e7a Add osmo-bts-test + dependencies 2018-03-01 15:19:49 +00:00