Commit Graph

542 Commits

Author SHA1 Message Date
Pau Espin f63ab39214 ttcn3-sip: Update default mp_mncc_version
Keep it using the older version in MNCC_Emulation for older versions of
osmo-sip-connector (last tagged released), since those doesn't support
MNCC7 yet.

Change-Id: I5dbacdd4bd8110b7f6cf6bdb561af420b65c035f
2020-09-16 12:34:08 +02:00
Pau Espin be98438d94 ttcn3-msc: Update module params against new osmo-ttcn3-hacks.git
module param mp_enable_osmux_test is dropped in osmo-ttcn3-hacks.git
I8bc0551ec91a5fd8ea2f291a1e16a06a739c7a75.
module param mp_enable_crashing_tests is introduced in
osmo-ttcn3-hacks.git I46f1066323e19dfe708402a8c9c68e257f62751c.

Change-Id: I22bb43ba6d15eabcc731a2c3ef7aabc4f250d508
2020-09-15 20:54:02 +00:00
Harald Welte f28aa95173 New fpga-build image for building iCE40 gateware + RISC-V firmware
this will be needed for building e1-tracer + icE1usb gateware+firmware
on our jenkins slaves.

Change-Id: I7c2072b9524a2038d71c0fac4f2023b92af26382
2020-09-14 22:38:40 +02:00
Vadim Yanitskiy 078717ab2b ttcn3-bts-test/fh: do not configure CBCH slots statically
In BTS_Tests_SMSCB, we dynamically configure the CBCH slots via
the VTY interface, so there is no need to set them here.  This
was also the reason of some SMSCB test case failures, because
the BSC would send unexpected LOAD INDICATIONs.

Change-Id: I6e005ca772e26878c7b19df0d854936d7b7718dd
Related: SYS#4868, OS#4708
2020-09-12 20:16:31 +07:00
Pau Espin c90560f64f ttcn3-mgw: Update module param addresses naming to support ipv6
Depends: osmo-ttcn3-hacks.git Change-Id Ia393d7175de277ec8fa524ba74bf3b150b74c766

Change-Id: I2840eeee8ae53dc8bdf96ce7b6c76e4c8e0af859
2020-09-08 20:12:25 +02:00
Pau Espin 4d9cde0f4d ttcn3-bsc-sccplite: Bind osmo-bsc SS7 instance to container's local address
Change-Id: Ic2b608a055635f94d74cc24c3a934d6458934e82
2020-09-01 15:48:37 +02:00
Pau Espin 18de547d3e ttcn3-sgsn: Enable osmo-sgsn SS7 multi-homing and IPv6 features in tests
Change-Id: I21dbe79705dcc23426a88174120f6f810df84749
2020-08-30 16:07:57 +00:00
Pau Espin 2025b1a3f0 ttcn3-msc: Enable osmo-msc SS7 multi-homing and IPv6 features in tests
Change-Id: I784eb033a4887c5a9f2bfaa52aa39cb86cdf13ce
2020-08-30 16:07:10 +00:00
Pau Espin a985e1bd6e ttcn3-bsc: Enable osmo-bsc SS7 multi-homing and IPv6 features in tests
Change-Id: I662ede0957a67c7a733cba8e4e65bf0c8c72b878
2020-08-30 14:15:27 +00:00
Neels Hofmeyr c276d736c7 bsc CBSP: apply new cbc config
Adjust osmo-bsc.cfg to work with osmo-bsc
Icaa2775cc20a99227dabe38a775ff808b374cf98 and osmo-ttcn3-hacks
I7eea0dd39de50ed80af79e0f10c836b8685d8644.

Related: Icaa2775cc20a99227dabe38a775ff808b374cf98 (osmo-bsc)
Related: I7eea0dd39de50ed80af79e0f10c836b8685d8644 (osmo-ttcn3-hacks)
Related: OS#4702
Change-Id: I9e9760121265b3661f1c179610e975cf7a0873f1
2020-08-28 08:44:27 +00:00
Pau Espin 1f45fb08ff jenkins-common.sh: Add function to print docker network related parameters
Change-Id: Ie00561de7a4494065156a124565e2190151e6019
2020-08-27 12:49:43 +02:00
Pau Espin 8d4a97a3fc ttcn3-stp: Configure M3UA setup to use IPv6 together with IPv4
Depends: libosmo-sccp.git Change-Id I09226a5cecc37dd4676acd61c2051befe5234cb3
Depends: osmo-ttcn3-hacks.git Change-Id Ib1925ed1df5cea3fa66f28b5625532d454a2c338
Change-Id: Id6e197cc3ba71e36f29ceec44742b7452a47b36b
2020-08-27 10:47:28 +00:00
Daniel Willmann 49fa190470 ttcn3-mgw-test: Removing the e1 config options on latest
Fixes the test failure on ttcn3-mgw-test-latest

Change-Id: I3143ba905a77fabd1074dbd618c7ae48fa92a77a
2020-08-25 11:30:59 +02:00
Harald Welte a8521eb11a msc: Disable expecting CommonID when testing 'latest'
As of osmo-ttcn3-hacks.git Change-Id I4976d9bb1f07c8ab4ffa02848414f8ddd1bdfd3f
the test suite expects the MSC to send a CommonID to the BSC.  As
older/existing tagged osmo-msc don't do that, we needt odisable that
check when verifying 'latest'.

Change-Id: If2e4cc41cb7b5758a78d694d62b34390a08e6387
Related: OS#2969
2020-08-19 07:29:31 +00:00
Philipp Maier 02bd8bc60e osmo-mgw.cfg: fix config file + add E1 trunk
The config file of osmo-mgw has an incorrect indentation. Also no E1
trunk is configured, so that the E1 related tests fail. Lets fix this.

Change-Id: I3b19afc0809bd56e9fe0f5e968e1c000d29f4abd
2020-08-18 21:01:50 +02:00
Alexander Couzens 7bc7dccd0b debian-stretch-jenkins: install osmo-python-tests for python2
osmo-python-tests for python2 is being used when building
old releases.

Change-Id: I63b3e92e745a664d5d0168c718daddae83c20df5
2020-08-17 08:34:13 +00:00
Harald Welte cc1620eac8 ttcn3-ggsn-test: Use IPv6 address of the tester as "DNS1"
We cannot rely on every test slave always having proper IPv6
conenctivity to a public DNS server, and that DNS server to respond
to ICMPv6 echo request.  We're testing half of the internet instead
of our GGSN.  Let's use the IPv6 address of the docker container
running the test sute, which is guaranteed to always exist.  We have
no problems with routing, as the ICMPv6 is hand-crafted and encapsulated
into GTP before it's sent to the kernel IP stack - so basically on the
transmit side, the kernel doesn't know anything about the destination
address of the encapsulated IPv6 packet.

Closes: OS#4713
Change-Id: I1377ffa2cc6980168297d5ff5c81fa5dad94d7a9
2020-08-16 14:53:36 +02:00
Harald Welte 5edd774edc ttcn3-ggsn-test: Add static IPv6 addresses to containers
Change-Id: Id8656f09eb1d879153dc4034bd562596ee6e35db
2020-08-16 12:49:51 +00:00
Harald Welte 873f496d2b migrate ttcn3-msc-test from 172.18.1.0/24 to 172.18.20.0/24
When introducing IPv6 support, we map the third digit of the IPv4
address (X) to the 6th byte of an IPv6 prefix "fd02:db8:X::/64"

However, the docker daemon seems to use "fd02:db8:1::/64" internally
for its default network, so creating a docker network with the same
IP address is failing.

Let's move the MSC test suite to another sub-net (1->20) to avoid
related problems.

Change-Id: I9c5f9b96d5523eae09f3f2e6c813e9e0d047f9ab
2020-08-14 08:03:41 +02:00
Daniel Willmann 68ddce97e3 Update bsc tester config to enable stats testing
Change-Id: I6ed591cdc4d3108547eda2a1755ae6f6cef2b4d2
Related: SYS#4877
Depends: I8526b645dc4af59adcc1855699421a026f505c1d (osmo-ttcn3-hacks)
2020-08-13 23:00:44 +02:00
Vadim Yanitskiy 149de2822d ttcn3-bts-test/fh: fix: properly rename classnames
Not only append ':hopping' to classnames equal 'BTS_Tests', but
also 'BTS_Tests_SMSCB' and 'BTS_Tests_LAPDm', so they would not
shadow non-hopping test cases in the test results analyzer.

Change-Id: Ie6ed7844c2d0dfd839181bce971506284da03d28
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy a21c4f2fac ttcn3-bts-test/fh: fix: do not run BTS_Tests.control twice
Apparently, TITAN concatenates the contents of all sections, so
we end up with the following set of test cases:

  [EXECUTE]
  BTS_Tests.control
  BTS_Tests_SMSCB.control
  BTS_Tests_LAPDm.control
  BTS_Tests.control

Change-Id: I71802daec4a5591cbf0fce59a4247027f8dfca46
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy c91dae9d1d ttcn3-bts-test/fh: fix: properly include BTS_Tests.cfg
Include the correct configuration file, not the one from the image.

Change-Id: Iecae5cddfbbce4c3bc4077c6c09f527914c06e4b
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy 617835b50b ttcn3-bts-test/jenkins.sh: use bts-tester-{generic,oml,virtphy,hopping}
Let's use separate directories to store the artifacts of different
TTCN-3 test case groups.  This would prevent the test suite from
overwriting *.log and *.pcap files when running both generic and
hopping configurations together, and simplify the overall hierarchy.

Change-Id: I7c41cfb395047433e22e9c65c8c00ae284717b32
Related: SYS#4868, OS#4546
2020-08-13 19:27:39 +00:00
Vadim Yanitskiy 075a487ad9 ttcn3-bts-test/jenkins.sh: do not create unused directory
Change-Id: I01efad7f86723301807237d9fae515e82cae125b
2020-08-13 19:27:39 +00:00
Harald Welte 306a51dd30 Enable IPv6 in docker networking
We previously only allocated IPv4 sub-nets to the network segments
created with 'docker network'.  Let's fix that by assigning both
IPv4 and IPv6 address ranges to each docker network.

Related: OS#4700
Change-Id: I8802208fddcce1ffa57e5626575d23d02b320d99
2020-08-13 15:01:58 +00:00
Neels Hofmeyr 7b5248b464 bsc-sccplite CBSP: fix osmo-bsc.cfg to contain 3 BTS with a CBCH
Fix the TC_si2quater_* test fallout.

When adjusting the bsc AoIP test config, forgot to also adjust the SCCPlite
test suite config, which caused fallout in the SCCPlite tests.

Related: Idbcc703ace7012fb395f0eef3e445df28b368d74 (docker-playground)
Related: Iac46ee2cc5bc0978d5f5baa550baf493a7c56b1b (osmo-ttcn3-hacks)
Change-Id: I810ff6f89d722e7274046c360a2cbebf6f6ee53a
2020-08-13 13:08:26 +00:00
Neels Hofmeyr cca5e49c4e bsc CBSP: fix osmo-bsc.cfg to contain 3 BTS with a CBCH
The bsc/BSC_Tests_CBSP.ttcn rely on a configuration where the first three BTS
carry out SMSCB messaging, and the fourth BTS does not. That requires a CBCH
channel config on bts 0, 1, 2.

Related: Iac46ee2cc5bc0978d5f5baa550baf493a7c56b1b (osmo-ttcn3-hacks)
Change-Id: Idbcc703ace7012fb395f0eef3e445df28b368d74
2020-08-12 21:11:48 +00:00
Neels Hofmeyr 596aa901ce jenkins-common.sh: exit early on full disk
When my disk runs full, jenkins-common.sh fails to create a VOL_BASEDIR right
at the start, and hence no testsuite gets its external volumes mounted
properly. However, the test suite still starts up with missing cfg files etc,
and fails in non-obvious ways, until I find out the disk is full some minutes
later. Instead, verify that the base dir really exists or bail out right there.

Change-Id: I6540797c8e0ee3e7b09d4a80592d5e270e7d9adc
2020-08-12 18:23:05 +00:00
Vadim Yanitskiy 27a063fc2f ttcn3-bts-test/jenkins.sh: enable frequency hopping test cases
Change-Id: I2b8ee5037146203801ab92a1b4fe6703522d8093
Related: SYS#4868, OS#4546
2020-08-08 01:37:35 +07:00
Vadim Yanitskiy 46a29a706e ttcn3-bts-test/osmo-bsc.cfg: do not enable CBCH slots by default
As it turns out, test cases from BTS_Tests_SMSCB configure the
CBCH slots "on the fly" depending on the test case parameters.
This configuration also makes some test cases fail, so let's
(re)configure SDCCH8+CBCH timeslots to SDCCH8.

Change-Id: I3699450542dc1350971fbf87ad60a330428dec27
2020-07-31 05:02:17 +07:00
Vadim Yanitskiy 9619d2355b ttcn3-bts-test: add configuration with frequency hopping parameters
The Physical channel configuration is the same as in the non-hopping
configuration file.  Hopping parameters are listed below the table.

== Physical channel configuration (FDMA) ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  | ARFCN |       871        |       873        |       875        |       877        |
  +-------+------------------+------------------+------------------+------------------+

== Physical channel configuration (TDMA) ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS0  |   CCCH+SDCCH4    |    TCH/F (a)     |    TCH/F (a)     |    TCH/F (a)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS1  |      TCH/F       |   SDCCH8+CBCH    | SDCCH8+CBCH (b)  | SDCCH8+CBCH (b)  |
  +-------+------------------+------------------+------------------+------------------+
  |  TS2  |    TCH/F (c)     |    TCH/H (c)     |    TCH/F (d)     |    TCH/H (d)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS3  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |  TCH/F_PDCH (e)  |
  +-------+------------------+------------------+------------------+------------------+
  |  TS4  | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH | TCH/F_TCH/H_PDCH |
  +-------+------------------+------------------+------------------+------------------+
  |  TS5  |    TCH/H (f)     |    TCH/H (f)     |    TCH/H (f)     |    TCH/H (f)     |
  +-------+------------------+------------------+------------------+------------------+
  |  TS6  |    SDCCH8 (g)    |     PDCH (h)     |     PDCH (h)     |    SDCCH8 (g)    |
  +-------+------------------+------------------+------------------+------------------+
  |  TS7  |     PDCH (i)     |     PDCH (j)     |     PDCH (i)     |     PDCH (j)     |
  +-------+------------------+------------------+------------------+------------------+

== Hopping configuration ==

  a) HSN=0, MAIO=0,1,2
  b) HSN=1, MAIO=3,5
  c) HSN=2, MAIO=0,1
  d) HSN=2, MAIO=2,3
  e) HSN=3, MAIO=3,2,1,0
  f) HSN=5, MAIO=0,1,2,3
  g) HSN=6, MAIO=1,0
  h) HSN=6, MAIO=1,0
  i) HSN=0, MAIO=1,3
  j) HSN=0, MAIO=0,2

Change-Id: I7822c3581fccba3277a63577e740e7486307635d
Related: SYS#4868, OS#4546
2020-07-21 19:46:56 +00:00
Vadim Yanitskiy d3ce838e0c ttcn3-bts-test/osmo-bsc.cfg: change pchan config for TRX#1..3
The new physical channel configuration will be used in the upcoming
multi-transceiver test cases.  Rather than having the same logical
channel combinations configured for all transceivers, it makes
sense to test more deviations.  TRX#0 has kept unchanged.

== Physical channel configuration ==

  +-------+------------------+------------------+------------------+------------------+
  | # / # |      TRX#0       |      TRX#1       |      TRX#2       |      TRX#3       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS0  |   CCCH+SDCCH4    |      TCH/F       |      TCH/H       |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS1  |      TCH/F       |   SDCCH8+CBCH    |       PDCH       |      TCH/H       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS2  |      TCH/F       |       PDCH       |   SDCCH8+CBCH    |      TCH/H       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS3  |   TCH/F_PDCH     | TCH/F_TCH/H_PDCH |       PDCH       |   SDCCH8+CBCH    |
  +-------+------------------+------------------+------------------+------------------+
  |  TS4  | TCH/F_TCH/H_PDCH |   TCH/F_PDCH     |      SDCCH8      |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS5  |      TCH/H       |      SDCCH8      |      TCH/F       |      TCH/F       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS6  |      SDCCH8      |       PDCH       |       PDCH       |       PDCH       |
  +-------+------------------+------------------+------------------+------------------+
  |  TS7  |       PDCH       |       PDCH       |       PDCH       |      SDCCH8      |
  +-------+------------------+------------------+------------------+------------------+

Change-Id: Ib27704dcba3979d69e44065c472b1452eaa11a7a
Related: SYS#4868, OS#4546
2020-07-21 19:46:56 +00:00
Vadim Yanitskiy e6e2b06689 make: use $(nproc) instead of hard-coded number of cores
Change-Id: Ie93b81a8a9206c47c4e4d4834fc5c03d9bf4254c
2020-07-13 02:52:10 +07:00
Pau Espin fc5cab9e3a ttcn3-bts: Fix most OML test failing after osmo-bts shutdown optimization
Since osmo-bts.git 0a6bdb024f5429a35c56178496158c9b1c3ee032, the process
is quickly terminated during shutdown if no TRX is running. Since in the
OML tests the TTCN3 components implements the OML IPA server side, most
of the time when osmo-bts starts it finds no one listening on the
address and exits immediately. This makes respawn.sh script run osmo-bts
lots of times per seconds (since osmo-bts terminates quicker now). As a
result, it quickly consumes the 500 launch threshold and exits without
starting osmo-bts being launched anymore.
As a result, only first tests pass, and all the later ones fail because
osmo-bts never connects.

Let's add a sleep 1 between respawns in respawn.sh only when running OML
tests (not needed in the others since there's an osmo-bsc always
running). This also clears a lot of output in the logs of osmo-bts
processes restarting over and over again.

Change-Id: I10d3e1ef8325dd78f9ae2b95fbfd1c6d893bf8a4
2020-07-08 12:37:29 +00:00
Neels Hofmeyr 37a603b1d3 ttcn3-msc-test latest: do not require VLR cell id match in latest build
Depends: Ie410714a96353f74a52a104c56fa0a08683e0004 (osmo-msc)
Change-Id: I052fea208021509e12826c50474b96474e7a58c2
2020-07-08 01:45:41 +00:00
Vadim Yanitskiy c33612da64 ttcn3-bts-test/osmo-bsc.cfg: use logging level 'notice' by default
Change-Id: Ib0bfbe0d98ef0d3e6d627e737edbbf013a5f19c0
2020-07-06 03:35:13 +07:00
Vadim Yanitskiy 438e63ec76 ttcn3-bts-test/osmo-bts.cfg: use logging level 'notice' by default
Change-Id: I51e95a83aac0af1223d9608c234b87162835c9bc
2020-07-06 03:35:09 +07:00
Pau Espin d1dcc58323 Makefile: Support overriding LIBOSMOCORE_BRANCH
gr-gsm-master is using it but it cannot be overriden. Similarly iy can
be helpful to do so in temporarliy modified images when testing
libosmocore features.

Change-Id: Ia9f26f3513da339d2255a0f6b2277682fe15bdf2
2020-06-30 18:23:04 +02:00
Pau Espin ad4fa373a8 bsc: Store osmo-bts-omldummy logs out of docker container
Change-Id: I0c02c4a9311122c3fe8ca877e02043f697723281
2020-06-25 13:42:59 +02:00
Neels Hofmeyr 42b731e09b ttcn3-bsc-test latest: remove MSC pooling specific bits in latest build
Change-Id: I2b129caa513686a105d31ae56b065757b12fcac8
2020-06-24 20:39:02 +02:00
Neels Hofmeyr fa9d43eb38 MSC_Tests.cfg: tweak comments
Change-Id: If5f9cff03f078987c5b9051f8d63c239bf92ddb7
2020-06-22 16:07:07 +00:00
Vadim Yanitskiy 4b422ce2be ttcn3-bts-test/BTS_Tests.cfg: configure number of transceivers
Change-Id: I5d4d9a16d5e30bccc25e8f1030f22b6e49b64c67
Depends: Ic9dd49a2fc856de593b52b3ec0c559e0e15ca173
Related: OS#3155
2020-06-22 18:17:00 +07:00
Neels Hofmeyr 04c20edefd collect core dumps: '--ulimit core=-1' and WORKDIR=/data everywhere
Change-Id: Ief73b53ed9da6f5af82975bc36d851277d5d3185
2020-06-21 20:58:22 +00:00
Neels Hofmeyr 2eb5e0e6a0 bsc.cfg: SCCPlite = AoIP: adjust logging config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

Do the same logging in both SCCPlite and AoIP osmo-bsc.cfg.

Change-Id: I4a8fe459ec580078228c6775df357b6e0acbbb03
2020-06-20 20:02:56 +00:00
Neels Hofmeyr b0b594e77c attempt to capture core dump from osmo-stp during ttcn3-bsc-test run
When launching osmo-stp-master from ttcn3-bsc-test, set ulimit=-1 to allow core
files.

In osmo-stp-master set WORKDIR to /data to hopefully get the core file ending
up there without the need to set a /proc/sys/kernel/core_pattern globally in
the jenkins slave.

Change-Id: Idd67fcb3f564b9cff9b4596bf639ed1bd1b58daf
2020-06-20 18:42:57 +02:00
Neels Hofmeyr 329612ea9c bsc: adjust osmo-bsc.cfg for MSC pooling tests
Depends: I6c251f2744d7be26fc4ad74adefc96a6a3fe08b0 (osmo-bsc)
Change-Id: I353a2023d41d9f083acdd61da11109cb5a002f9b
2020-06-20 14:06:18 +00:00
Neels Hofmeyr 7557c2d75c bsc.cfg: SCCPlite = AoIP: adjust si2quater config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

Make the SI2quater config reflect that of the AoIP osmo-bsc.cfg.

Change-Id: I4dbabcc28309424a336d2a052a067484d17663ac
2020-06-16 00:49:30 +02:00
Neels Hofmeyr c98125fbfc bsc.cfg: SCCPlite = AoIP: adjust handover config
Adjust the SCCPlite osmo-bsc.cfg according to changes applied in osmo-bsc.cfg,
which were obviously forgotten to also apply to the SCCPlite test runs.

These handover config changes should fix the TC_ho_* tests in
ttcn3-bsc-sccplite.

Change-Id: I9694863b2db6be6384d1d6ffb35fc477fe774d02
2020-06-16 00:49:30 +02:00
Neels Hofmeyr 7a8e34981c BSC_Tests.cfg for SCCPlite: adjust cfg for multiple MSCs
Forgot to also adjust the SCCPlite structure in previous commit
c7b52048e6, which broke SCCPlite testing.

Change-Id: I923e398ccd4bdd31c8325de1a850fe4c3236db79
2020-06-16 00:49:30 +02:00