aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-10-09stp: Add TC_rapid_init_shutdown()laforge/bvc-resetHarald Welte1-0/+36
Change-Id: I3d37cd80acfaf042b60f1590ee12a0e26d8853b5 Related: OS#4625
2020-10-09BSSGP_Emulation: Ensure BVC-RESET for BVCO=0 has no CellId IEHarald Welte1-1/+13
This is required by the spec, and implemented libosmocore since Change-Id Ie87820537d6d616da4fd4bbf73eab06e28fda5e1 So let's change our test expectations. Meanwhile, introduce mp_tolerate_bvc_reset_cellid for working around the bug in 'latest'. Change-Id: If6245d73ed701e631b67146ace4ba028bdb4226c
2020-10-08BSC_Tests: fix f_mo_l3_transceive(): relax DLCI matchingVadim Yanitskiy1-1/+1
Since If4d479a54cad467f53b49065c1c435a4471ac7d2, osmo-bsc started to send more concrete DLCI values on the A/BSSAP interface. In particular, the control channel identification bits now indicate whether it's SDCCH/FACCH or SACCH channel. Let's use '?' as the default DLCI template that we expect to get from the IUT, so those test cases, for which DLCI is not a part of the testing scenario, would not fail. Change-Id: Ida659d53e0d31f9aa0ea2ccccefc94d8c659eb76
2020-10-04pcu: Don't log timer operations of ClkGen-0 (every 4.16ms)Harald Welte1-0/+1
We don't need to spam the console with that kind of information. Change-Id: I029193f6e21415f53424ebf4417e3fcd9a53c86c
2020-10-04BSSGP_Emulation: Only add CellId to BVC-RESET[-ACK] conditionallyHarald Welte1-5/+25
We always used to include the CellID IE, but 3GPP TS 48.018 is actually quite specific about when it should be present and when not. Change-Id: Iffd023f0272c9ccb087bdd225fcfb08424a46bdf
2020-10-04regen-makefile.sh: Put libraries in LINUX_LIBS, not LDFLAGSHarald Welte4-4/+5
Additional libraries to be linked should be in LINUX_LIBS (appended at the end of the linker command), not part of LDFLAGS (prepended to the beginning of the linker command). On binutils 2.35.1 / Debian unstable, without this patch, I get /usr/bin/ld: IPL4asp_PT.so: undefined reference to `sctp_bindx' /usr/bin/ld: IPL4asp_PT.so: undefined reference to `sctp_connectx' which is resolved by this patch Change-Id: I8a339076f445e3c650e407ae982c7c2dc4a760b2
2020-10-03NS_Emulation: pass around string idenifier for components createdHarald Welte3-10/+11
We want to see useful identification for components in the log, and hence must be giving every component a name at create() time. Change-Id: I0fe650243953e4d85161684865acd0354b2e465f
2020-10-03NS_Emulation: Delay Tx of first NS-RESET until Provider tells us it's upHarald Welte1-5/+15
Change-Id: I300cfeb120540940990a834596b0a83a539df080
2020-10-03NS_Emulation: Refactor if/elseif/... clause to altsteps with guardHarald Welte1-71/+69
This makes for much more readable code, and we can even do without activating any default altsteps. Change-Id: I4c38dd55b7c27899735f5730851d36c1410d96a8
2020-10-03NS_Emulation: Introduce status events from provider -> emulationHarald Welte3-2/+40
This allows NS_Emulation to react to changes of the underlying transport layer (e.g. Frame Relay Link/DLCI up). Change-Id: If00e9c50dc664ce62b6c0cbde99d741e8173169b
2020-10-03NS_Emulation: Add [optional] support for FrameRelay transportHarald Welte4-8/+94
This adds a NS_Provider_FR which interfaces between FrameRelay_Emulation and NS_Emulation. Include support for it only if enabled at compile time to avoid pulling in a dependency on the FrameRelay stack for every user of NS_Emulation. Change-Id: I42ca811d23e383e362d2527c8ff2c916a62a5b42
2020-10-03stp: wait until IPA handshake is done in f_connect_ipaPau Espin Pedrol1-24/+16
Otherwise when trying to send stuff to an IPA ASP in some test, it may fail because the ASP is till not active in the STP (because IPA handshake was yet not finished, race condition). Change-Id: I8ea11fe331baf2b65ce0b7b3c1a2b480332faa2a
2020-10-03BSC_Tests: introduce TC_tch_dlci_link_id_sapi for OS#3716Vadim Yanitskiy2-0/+60
The aim of this test case is to verify DLCI / RSL Link ID conversion for MO/MT L3 messages on SAPI0/SAPI3. In particular, the test suite verifies the following scenarios: - RSL -> BSSAP: - 16 MO messages on FACCH/F with SAPI0, - 16 MO messages on SACCH/F with SAPI3; - BSSAP -> RSL: - 16 MT messages on FACCH/F with SAPI0, - 16 MT messages on SACCH/F with SAPI3. Change-Id: Ica69ae95b47a67ba99ba9cc36629b6bd210d11e4 Related: OS#3716
2020-10-03BSC_Tests: introduce f_mt_l3_transceive() sending BSSAP -> RSLVadim Yanitskiy1-0/+17
Change-Id: I5f1685815a4477b4d50351d3518ae21dd7d20139 Related: OS#3716
2020-10-03BSC_Tests: parametrize f_mo_l3_transceive()Vadim Yanitskiy1-6/+7
Change-Id: I617a103e9dae8f16e3f3996c89e53ace49f7bfa8 Related: OS#3716
2020-10-03BSC_Tests: s/f_verify_active_layer3/f_mo_l3_transceive/gVadim Yanitskiy1-3/+3
The new name is more concrete and better reflects what the function does: transmit a MO L3 payload to the IUT over the A-bis/RSL and receive it back on the A/BSSAP. Change-Id: Ic2b60b60c49ae7788ce03503b8b867bb9e55244b Related: OS#3716
2020-10-01BSSAP_LE: comment/log tweaksNeels Hofmeyr1-2/+3
Change-Id: I39ae5abc932c8cb5eb37b8c25a84621bd9ff30ca
2020-10-01fix typo BSSMAP_LE_LCS_CAUSE_UNSPEIFIEDNeels Hofmeyr1-1/+1
Change-Id: Iff154cba13febf1a2e623b6de64fb39ffb91b302
2020-10-01fix BSSAP_LE_Types FIELDORDERNeels Hofmeyr2-10/+10
Change-Id: I6f3d5b238912923431db36a1ba7b4973ae4e2e91
2020-10-01update expected resultsNeels Hofmeyr5-74/+158
Change-Id: Icb534a2b00fc48c3ead009a620e6061e595cb581
2020-10-01bsc: undup f_verify_active_layer3()Neels Hofmeyr1-30/+21
Change-Id: Ia4433618787b58f8789c9e97cdfbb8b320a09395
2020-10-01bsc: f_logp(): add VTY pt so it works on various componentsNeels Hofmeyr1-11/+11
So far only worked on test_CT, now also on MSC_ConnHdlr by passing the respective BSCVTY. Change-Id: I85ad0a59af72aa72e26a1252f946ada43388dc17
2020-09-29MSC_ConnectionHandler: allow to use IPV4 as defaultPhilipp 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. Lets add a module parameter in order to be able to use IPV4 as default if required. Change-Id: I30c77abef63636bb02db12d2f2b2d79ea244b96c
2020-09-28sip: ACK on SIP failure message to avoid it being retransmittedPau Espin Pedrol1-6/+23
Otherwise the SIP message is retransmitted by osmo-sip-connector around 10-11 times, even when next test has started, making it fail since it's not expected. Change-Id: Icd0f7a7fac4be2aa97eb986c3d3d27dd70a49357
2020-09-27NS_Emulation: Prepare NSConfiguration for non-IP providersHarald Welte9-69/+109
NSConfiguration currently contains parameters relevant only for IP based transport. Move IP/UDP parameters into a sub-structure in anticipation of Frame Relay support. Change-Id: I6904520d8c2f546327029777d68b1907611a8cf5
2020-09-25bsc: Call f_shutdown_helper() on all tests missing itPau Espin Pedrol1-53/+145
This should hopefully avoid sporadic errors during tear down of tests such as TC_si_acc_rotate. Change-Id: I8c8a1061b546576b7a5c4b11f20dfc887aaab6e0
2020-09-25pcu: Check stats for pcu channel allocation, bytes transferredDaniel Willmann5-2/+64
Change-Id: I90964b32fa11ed2582afc5fb56bd302b06606f86 Related: SYS#4877
2020-09-25NS_Emulation: Fix Tns-alive/Tns-test expiration detectionHarald Welte1-4/+4
Change-Id: Icb7d076f57c166b498c1b3edd84edcf13ea9739d
2020-09-25cosmetic: bsc: Fix indentation alignmentPau Espin Pedrol1-28/+28
Change-Id: I5484784fca254044055a9f131e1ebb19de8ceba5
2020-09-25SGSN: introduce NS testsAlexander Couzens4-3/+62
Similiar to the PCU_Tests_NS introduce SGSN_Tests_NS. Change-Id: Ib2bffbb110961474928f35d212cb492d4b6fdee0
2020-09-25Move RAW_NS to library to use it in SGSN NS testsAlexander Couzens2-1/+1
Change-Id: I5a0e62cc9f032c515188530c0ceee29061fe11d2
2020-09-25SGSN_Tests.cfg: fixup renaming remote_proto -> address familyAlexander Couzens1-3/+3
In an old version of the PCUIF version 10 this field was named remote_proto but got renamed into address_family before it was merged. Change-Id: Ia49169afe2db2503e99b62bb55639b2aeea546f2
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 fhp.ma_map.ma 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