AgeCommit message (Collapse)AuthorFilesLines
2020-09-24HACKSpmaier/test_v6_2Philipp Maier2-21/+22
2020-09-24MSC_ConnectionHandler: use IPV4 as defaultpmaier/test_v6Philipp Maier2-3/+15
When the BSC sends a CRCX without an IP address in it, the testcase will automatically assign an IPV6 address in the response. However, this breaks compatibility with older versions of osmo-bsc that do not have IPV6 support. Change-Id: I30c77abef63636bb02db12d2f2b2d79ea244b96c
2020-09-23bsc: Check attempted/successful channel requestsDaniel Willmann1-0/+2
Change-Id: I5b5c7c72eea28314da2ee7725d94d85917aa3ad3 Related: SYS#4877
2020-09-22mgw: Introduce test TC_crcx_osmo_ignPau Espin Pedrol3-2/+38
Related: SYS#5063 Change-Id: I79415c385e89fe859854430bb20940f078fccea0
2020-09-22{BTS,PCU}_Tests: bump default PCUIF version: 9 -> 10Vadim Yanitskiy3-1/+3
Both osmo-bts and osmo-pcu are switching to PCUIFv10 soon, so let's use the new version by default. For older (latest) IUT versions not supporting PCUIFv10, one would need to override this module parameter in {BTS,PCU}_Tests.cfg. Change-Id: I9350c4a54434c3d46ce9424f382ca0057e58d053 Related: SYS#4868, SYS#4915
2020-09-21pcu/GPRS_Components: allow passing/matching of TS/TRX/BTS/BLK numbersVadim Yanitskiy1-39/+84
This change will facilitate adding test cases for multi-slot TBF allocation across several TS and/or TRX instances of a BTS. Change-Id: I9bff9e912bf73ad6259946a6ea5b08f3e2f728c8 Related: OS#4756
2020-09-20MSC_ConnectionHandler: do not allow as_Media_mgw to exitPhilipp Maier1-1/+1
The altstep as_handover needs to repeat until the IPACC and the MGCP rtp negotiation is done (MDCX). By setting the norepeat flag of the sub altsteap as_Media_mgw to true, we allow as_handover to exit early, even when the handover is not done yet, which eventually causes the testcase to fail. Change-Id: I303879a9153d25a02743dc1d4713ae74918b9be7 fixes: OS#4752
2020-09-18sgsn: update expected-results.xmlAlexander Couzens1-1/+5
Change-Id: Ic06dc761508addd0e2ca85d0cd9f996f13cf84fb
2020-09-18sgsn/SGSN_Tests.cfg: also run Iu testsAlexander Couzens1-0/+1
Change-Id: Ia6ee4b2776cfbb9295334617d8c201c21d1663f7
2020-09-18bsc: Rework CBSP tests to support testing IPv6Pau Espin Pedrol1-43/+143
Change-Id: I859edebd24634ec9b448cd114f5541c93e552b0b
2020-09-18{PCU,SGSN}: Add missing address_family field in NSConfigurationHarald Welte2-0/+4
Change-Id: If63a96ec7ad28e87ff8bd18bf189d9395dda9c0d
2020-09-17NS_Provider_IPL4: map the IPL4 port to the system port before using itAlexander Couzens1-0/+1
Change-Id: Ia588ff82764e531c14665454eed035cd17b047ad
2020-09-17NS_Emulation: remove dependency on PCUIF_TypesAlexander Couzens6-4/+25
The dependency of PCUIF_Types creates also a dependency on Replace the PCU_AddrType by an unix like address family defined in the Osmocom_Types to reduce the dependency. Change-Id: I0b4fda96accef401ffc009010f9f5621583fd6dd
2020-09-17Don't map NS_Emulation_CT:NSCP anymoreHarald Welte2-4/+0
NS_Emulation_CT:NSCP used to be a NS_CODEC_PT, which is a translation port on top of the IPL4asp. Such ports need to be mapped to a system port at start-up. However, in I4d0b7ad0ed9447a038dd3eeee2b975146d10fba0 we introduced a new underlying component called NS_Provider. Hence, NSCP is actually connected to that underlying component, and no longer mapped. The corresponding change in pcu/SGSN_Components.ttcn and sgsn/SGSN_Tests.ttcn has unfortunately been missed in the above-mentioned change. Fix that. Change-Id: I4c085210e6021e38a38ebc052ec3d9b345638cd2
2020-09-17fixup BTS_Tests: verify hopping parameters in the INFO.ind messageVadim Yanitskiy1-1/+1
Pass transceiver number to f_resolve_fh_params(), otherwise the hopping parameters would always be generated for TRX#0, and thus the expectations for TRX#N > 0 would be wrong. Change-Id: If1a25f5ff1b1bca900d54cc56e2045df5a81f4e2 Fixes: I9bb164fd2c7c48b91e0d7bd1abaf3cfec155342c Related: SYS#4868, OS#4547
2020-09-17fixup BTS_Tests: also match MA length in TC_pcu_info_ind_fh_params()Vadim Yanitskiy1-1/+1
The bit-mask in is octet-aligned, so we cannot use its length. Use the number of transceivers instead, since they all belong to the same BTS. Change-Id: I772d13841babd2856b6b2fcf126ba47fb20b055a Fixes: Ibebbedecaed0a3f24a1bc7b520013fa563c4bbda Related: SYS#4868, OS#4547
2020-09-17NS_Emulation: Introduce NS_Provider underneath NS_EmulationHarald Welte4-65/+136
This is a step to prepare the NS_Emulation for operating on top of Frame Relay, not just UDP/IP. We replace the NS_CodecPort (mapping to a IPL4asp) with a newly introduced NS_Provider_CT, specifically a NS_Provider_IPL4_CT. This change removes any IP specific bits from NS_Emulation and moves it into the newly-created NS_ProvideR_IPL4. Change-Id: I4d0b7ad0ed9447a038dd3eeee2b975146d10fba0
2020-09-17BSSGP_Emulation: Fix build without BSSGP_EM_L3Harald Welte1-1/+4
Change-Id: Ic58e2d6bc37cb8fd8f0235b8497f674db7cfdd85
2020-09-16PCUIF_Types: fix version 9 remote addressAlexander Couzens1-1/+1
Change-Id: I8a337399632e11d8a376e7a7fa3ff7a2396a80b1
2020-09-16sip: Set & validate IP addresses and portsPau Espin Pedrol1-14/+98
Change-Id: Ie382f31b8b414daf598220c2e1b325b821129a40
2020-09-16msc: Validate RTP addr+port passed from MNCC to MGCP MDCXPau Espin Pedrol1-7/+21
Change-Id: I0b53643ed3a8f8550b2ea6e8832068d603a676e1
2020-09-16mncc: Support IPv6 addresses (new version mncc 7)Pau Espin Pedrol7-31/+158
Apparently commit 06b859ca314f53a902329ed95848dbafef1d4f87 forgot to bump the MNCC_SOCK_VERSION field from 5 to 6. Change-Id: I5448ff931ec33f24f4837a51376f1703fe97683b
2020-09-16library: CBSP_Adapter: Improve robustness of rebind and reconnectPau Espin Pedrol1-0/+13
Change-Id: Ibafbc8496eeadd0ea1b97056ef3b8a92bc43e9f1
2020-09-15msc: Introduce module param to disable crashing test in latestPau Espin Pedrol1-4/+7
Otherwise all tests run after ruing MSC_Tests_Iu.control fail. Change-Id: I46f1066323e19dfe708402a8c9c68e257f62751c
2020-09-15msc: Drop parameter mp_enable_osmux_testPau Espin Pedrol1-14/+5
That was needed for osmo-msc <= 1.3.0, and we are at 1.6.1 now. Change-Id: I8bc0551ec91a5fd8ea2f291a1e16a06a739c7a75
2020-09-15fixup library/PCUIF_Types: version 10: do not add redundant paddingVadim Yanitskiy2-1/+23
Unlike osmo-pcu, osmo-bts does check length of the messages received over the PCU interface, so I7a532d7abff8af354e40c5d706bb882efc6f905f caused all the related test cases in ttcn3-bts-test to fail. Reverting it is not a solution, because we cannot maintain different padding attributes for two different protocol versions. Let's add a wrapper function that would call enc_PCUIF_Message() and append padding depending on the configured protocol version. In addition, let's add a module parameter that would allow us to (optionally) disable padding for ttcn3-pcu-test. This change makes all broken PCUIF specific test cases pass. Change-Id: Ica9e0c49c8b16e7d585a481670762c6433c61118
2020-09-14RAW_NS: remove usage of mp_gb_cfgAlexander Couzens3-19/+18
RAW_NS uses module parameter from SGSN_Components. To decouple RAW_NS from SGSN_Component pass the cell_id via a function argument. Change-Id: I91d9db85519675054aaab83c85fac43e67391f33
2020-09-14RAW_NS: remove usage of mp_nsconfigAlexander Couzens3-26/+26
RAW_NS uses module parameter from SGSN_Components. To decouple RAW_NS from SGSN_Component pass the NSConfiguration via f_init_ns_codec() Change-Id: Ida8b8a6af815dc11b2ff4c65e19cc5ec25f18ae2
2020-09-14RAW_NS: f_init_ns_codec: add argument tc_idx to modify the portAlexander Couzens1-2/+2
In preparation for the SGSN tests allow to change the source udp port for every test case. Change-Id: I465ad2c8580e74cce4dab46f4ec29a9043df9938
2020-09-14BSC_Tests/hopping: also verify handling of ARFCN 0 in MAVadim Yanitskiy1-3/+13
According to 3GPP TS 44.018, table "Mobile Allocation information element", in the cell allocation frequency list the absolute RF channel numbers are placed in increasing order of ARFCN, except that ARFCN 0, if included in the set, is put in the last position in the list. Let's verify that the IUT handles this corner case correctly. Change-Id: I3afadfde03f6ea766c0756a181ef129e4b05c383 Related: SYS#4868, OS#4545
2020-09-14BSC_Tests/hopping: fix: consider ARFCN of the transceiver itselfVadim Yanitskiy1-2/+13
The Mobile Allocation IE generated by the IUT includes not only the list of hopping ARFCNs, but also ARFCN of the transceiver itself. This is the correct behaviour, and that's why we see sporadic test case failures like this one: Mobile Allocation IE does not match (tn := 1): { len := 3, ma := '001010101011111100000000'B } vs expected { len := 2, ma := '0010101010111111'B } The last '0'B bits may look like redundant padding, but actually only 7 of them are. The MSB '0'B bit in the last (third) octet corresponds to pre-configured ARFCN 871. Since f_TC_fh_params_gen() generates all ARFCNs in GSM-900: - in f_TC_fh_params_gen(), pick an ARFCN value from GSM-900; - in f_TC_fh_params_set(), change ARFCN of a given transceiver; - in f_TC_fh_params_gen_tr_ma(), consider that ARFCN; - in f_TC_fh_params_unset(), bring it back to 871. Change-Id: Id11be94087c18d8159af4b7988826023832f9944 Related: SYS#4868, OS#4545
2020-09-14BSC_Tests/hopping: turn FHParamsTrx into a record, add ARFCN fieldVadim Yanitskiy1-26/+29
This record must contain not only the hopping parameters, but also ARFCN of the transceiver they belong to. Since ARFCN of the transceiver also becomes part of the Mobile Allocation, we need to take it into account in the matching functions. Change-Id: I4722dc3f758a097806811cb0b59aa4093374c74c Related: SYS#4868, OS#4545
2020-09-14BSC_Tests/hopping: fix ArfcnList: use GsmArfcn instead of integerVadim Yanitskiy1-1/+1
Change-Id: I63adf2ffaaf789a97d29ec5c1b7b7a551e56769c Related: SYS#4868, OS#4545
2020-09-14BTS_Tests_SMSCB: handle frequency hopping parametersVadim Yanitskiy1-4/+20
Change-Id: I1fd0a46b3d23afabae81fd1da5d2466e61e4a806 Related: SYS#4868, OS#4708
2020-09-14BTS_Tests: group hopping parameters into a separate recordVadim Yanitskiy3-46/+62
Change-Id: Iedb5d858a2d4f5d5a45e7465ae6586b3ae4bbb72 Related: SYS#4868, OS#4708
2020-09-14BTS_Tests: simplify MA length calculation in f_resolve_fh_params()Vadim Yanitskiy1-3/+1
Change-Id: I13f1d45162b520eff0d2e9823604fda85b71970b Related: SYS#4868, OS#4708
2020-09-14BTS_Tests: also match MA length in TC_pcu_info_ind_fh_params()Vadim Yanitskiy1-1/+2
Change-Id: Ibebbedecaed0a3f24a1bc7b520013fa563c4bbda
2020-09-13BSC_Tests: set verdict to pass when TC_emerg_premption is donePhilipp Maier1-0/+2
The testcase TC_emerg_premption does not set a verdict when done. Make sure that the verdict is set to pass when the test is done. Change-Id: Ie612b32cfa9cedd1e0f1d51e48911da94ec325cf Related: OS#4549
2020-09-13deps: switch TELNETasp and M3UA back to upstreamHarald Welte1-4/+4
the respective changes we had have long been merged upstream, so let's switch back from our own forks to upstream Change-Id: I52bdac20745bc3f5ce618ea804686781483a6f4c
2020-09-13BSSGP_Emulation: Make L3 (SM/GMM) decoding a compile-time optionHarald Welte5-13/+48
This allows us to build low-level tests that don't require all of L3. Change-Id: I7ef7e93e2cd1d37e7e4a62947ca8dfde30d93b95
2020-09-13lib: Move ts_RaCapRec from RLCMAC_CSN1_Templates to L3_TemplatesHarald Welte2-53/+52
There is no reason whatsoevery why a L3_Templates.ttcn file should ever include types from RLC/MAC. This creates a dependency nightmare. The type for which ts_RaCapRec is written (MSRACapabilityValuesRecord) originates from titan.ProtocolModules.MobileL3 so it's completely unclear how any of that ever related too RLC/MAC. Change-Id: Ie1ccef090ad51e26ccae17998e4294c6e27cf9c8
2020-09-13move some key types from GSM_RR_Types to GSM_TypesHarald Welte4-21/+22
This in turn means Osmocom_Gb_Types doesn't need to depend on GSM_RR_Types anymore, which is particularly ugly as the latter now depends on RLCMAC_*, creating a long chain of dependencies. Change-Id: I8c8da7709695ff0023f71b3999291e2515b22e46
2020-09-11library: Osmocom_Types: fix extra indention tabAlexander Couzens1-77/+77
The top level context doesn't have an indent. Change-Id: Ib94fa74a7752f21ba8203a5de17ce2b10d800d16
2020-09-11library: GSM_Types: fix extra indention tabAlexander Couzens1-210/+210
The top level context doesn't have an indent. Change-Id: Ifece2e9fa782f173665e10fa9174403cccac7eb6
2020-09-11BTS_Tests: verify NSVC IPv4/IPv6 in the INFO.ind messageAlexander Couzens1-0/+52
Change-Id: Iae854875a45dbc29cd46a267ccaf60f1f2ac2973 Tweaked-By: Vadim Yanitskiy <> Related: SYS#4915
2020-09-11library/PCUIF_Types: version 10: do not add redundant paddingVadim Yanitskiy1-1/+0
Change-Id: I7a532d7abff8af354e40c5d706bb882efc6f905f
2020-09-11PCU_Tests_NS: add missing bound of nrfAlexander Couzens1-1/+1
Otherwise it will try to use setverdict() with an unbound PDU Change-Id: Ieafe9017126dd293aad09dad3c8a4180c9c29fa0
2020-09-11BSC_Tests: check for the same measurement bandwidth as in SI2quater on ↵Alexander Couzens1-1/+2
Channel Release osmo-bsc is using the same LTE neighbors of the SI2quater in the Channel Release - Cell selection indicator after release of all TCH and SDCCH IE. Ensure the same measurement bandwidth is present to not overwrite the measurements bandwidth from the SI2quater. Change-Id: I9aa30dfd1e2c1b80e037bd71ebc4cdd3752638b4
2020-09-11BSC_Tests: fix whitespace typoAlexander Couzens1-1/+1
Change-Id: I68d7b6ef1d35b798f66a04bce4de29fdd75ff7f1
2020-09-11library/PCUIF_Types: version 10: support IPv6 NSVC addrAlexander Couzens5-4/+59
Change-Id: I13b03c380edc2dc609c5e4053462a3cd6f78ce72 Tweaked-By: Vadim Yanitskiy <> Related: SYS#4915