AgeCommit message (Collapse)AuthorFilesLines
2019-03-27WIP: GbProxy Testslaforge/gbproxyHarald Welte4-0/+277
Change-Id: I064f5fe22497f2b53c895d4d26d540e4187d2651
2019-03-27Move NS_RAW_CT to new NS_RAW moduleHarald Welte5-235/+267
Change-Id: I666b1ca737e9984fc72a4da8934a34ebf478ff21
2019-03-27WIP: More PCU testsHarald Welte2-0/+105
Change-Id: I42613ba11e1757c92eae16072370fbfe584f1de6
2019-03-27pcu: Add TC_pcuif_suspend() to test PCU->BSSGP SUSPEND processingHarald Welte2-0/+66
The PCU is supposed to forward any RR SUSPEND received by the BTS on dedicated channels and pass it to the SGSN via BSSGP. This provides knowledge to the SGSN that the MS is not reachable via PS/TBF anymore until it completes its CC dedicated mode transaction and RESUMEs. Change-Id: Iaf35e0c1087413db1dc7d169fa716df14c78f5db
2019-03-27PCU: make f_bssgp_establish() run on BSSGP_Client_CTHarald Welte1-2/+2
This means it can be used in different/other scenarios, e.g. with tests that use PCUIF directly. Change-Id: I1aa5dc090aac78a85a85ac190343befb0199a093
2019-03-27PCUIF: Add templates for PCU_IF_MSG_SUSP_REQHarald Welte1-0/+32
Change-Id: Ib7661790b9531be829ee550ce889151ebe1885ac
2019-03-27pcu: Fix MCC/MNC handling: use 'F' between MCC and MNC in 2-digit caseHarald Welte3-5/+5
Change-Id: Ifdb64c501095839e86894716769adb53e3c17382
2019-03-27Osmocom_Gb_Types: Add more templates for BSSGP SUSPEND/RESUMEHarald Welte1-1/+176
Change-Id: Ife25401043d565e52a73206c562bbb68bcfdbafa
2019-03-27GSM_RR_Types: Add enc_RoutingAreaIdentification()Harald Welte1-0/+3
This allows us to encode a stand-alone RAID as needed in some places. Change-Id: I28222304b2bac893b216c47e6dc002886fab6406
2019-03-27BSSGP_Emulation: Handle incoming BVCI=0 messagesHarald Welte1-1/+21
Like BVCI=PTP, the BVCI=0 messages must be dispatched by their TLLI, but using the BSSGP_SP_SIG port instead of BSSGP_SP. Change-Id: Ic456d43ec07600162991698ec3d75d36785b2fb8
2019-03-27pcu: move f_pcuif_tx() to PCU_Tests_RAW as it runs on RAW_PCU_CTHarald Welte2-4/+4
Change-Id: Ic60a7fc657df17ff2d3a889501f0576b98f1f4ad
2019-03-27pcu: Ensure we're always using the same defaults for the CGIHarald Welte2-4/+4
Not all parts of the code explicitly specify each and every parameter of the Cell Gobal Identifier (particularly we don't do that for the PCU INFO IND), and hence multiple parts only interoperate if the same defaults are used in all locations. Change-Id: Iac9be9a8d4ccb4d01cc343d763d2e35873e3844f
2019-03-27PCU_Tests.ttcn: Use "normal" Osmocom TTCN-3 coding styleHarald Welte1-519/+519
Change-Id: I6eaca0ec7fb9c2dc5d59e385bc3a3a8bb85fe23a
2019-03-27NS_Emulation: Disable sending NS-RESET from SGSN to BSSHarald Welte1-1/+3
Change-Id: I2a5775fcaf63ac008adecaf2c602c82e9e4ccb5a
2019-03-27NS_Emulation: Add minimal support for SGSN-side SNS handlingHarald Welte3-5/+57
Change-Id: I1edf739d6fd39478f662a28a7d9334ca51c270a3
2019-03-27BSC_Tests: execute S15-S0 related tests only on AoIPPhilipp Maier1-17/+20
Make sure that the S15-S0 related testcases are only executed when AoIP is used as transport. Change-Id: I62d51bbe4b1f089ded6c271b68414a4a37d509d8 Related: OS#3864
2019-03-26bsc: add TC_chan_rel_hard_clear_csfb to expected-results.xmlPhilipp Maier1-0/+1
The testcase TC_chan_rel_hard_clear_csfb is missing from the expected-results.xml. Lets add it. Change-Id: I087e6715364f72944cb47fa64d96eab6538afda5
2019-03-21BTS: use PCU-related test cases as version stringMax1-18/+35
When running PCU-related tests against BTS use name of the test as a PCU version string sent from TTCN-3 code. This makes it easier to separate OsmoBTS log output related to different test cases. Change-Id: I9ef9e46061ef116529bdea196050f914804615b3
2019-03-20pcu: Add SNS tests for SGSN-originated BVC-RESET handlingHarald Welte2-8/+76
Change-Id: Ib6b80acf98711f4749da4faf549b02ff2b82425f
2019-03-20expected-results: add new S15-S0 related testscasesPhilipp Maier1-0/+17
The S15-S0 related testscases are missing from the expected-results.xml file. Lets add them. Change-Id: I28a853ec25feb723b2d333061e1ae4d2e0b34d86 Related: SYS#4470
2019-03-19msc: f_tc_sgsap_mt_sms_and_nothing: also do f_sgsap_bssmap_screeningNeels Hofmeyr1-0/+2
The only reason to omit f_sgsap_bssmap_screening() in this was the still pending SMS in the database. Since SMS are now removed, f_sgsap_bssmap_screening() will succeed. Change-Id: Ibea1e1fb33e0dde7e8bf51ff226d5e57c5a5d763
2019-03-19BSC_Tests: add testcases to verify S15-S0 handlingPhilipp Maier3-0/+230
The handling of the AMR rate configuration bits S15-S0 is currently only superficially checked. Lets add more some more elaborated testcases to check through varios different situations. Also make sure that the resulting mr configuration IE is verified Change-Id: Ica323deb9836deea72982e093c9cb31deb5a216b Related: SYS#4470
2019-03-19BSC_Tests: fix TC_assignment_codec_amr_f/hPhilipp Maier1-2/+2
The testcase TC_assignment_codec_amr_f uses a combination of S-Bits that has S1 which configures a set of four rates at once. This is quite a complex situation and since the BSC was upgraded with new features affecting the behavior in this special case lets simplify this testcase for now. depends: osmo-bsc Ie52376b51fe07ed07056e8df2e9557293ff67a78 Change-Id: Ibf730f76947cdeed23eb3119167450e3b7a9b314 Related: SYS#4470
2019-03-19MGCP_Test: Test AMR octet-aligned/bandwith-efficient mode conversionPhilipp Maier2-0/+67
osmo-mgw now implements a conversion between the AMR octet-aligned and banwith-efficient payload format. Lets add tests for this Change-Id: I050bfeabfb5fdbf986d429eef3af69fe8158d56e depends: osmo-mgw I622c01874b25f5049d4f59eb8157e0ea3cbe16ba related: SYS#4470
2019-03-19MGCP_Test: allow setting of fmtp parametersPhilipp Maier2-7/+22
When creating an RTP flow, there is currently no way to set SDP fmtp parameters. Lets add a template and a parameter in order to be able to set those parameters. Change-Id: Ic1840d5023cb3888a17980f4ed08c19175864896 Related: SYS#4470
2019-03-19msc: TC_lu_disconnect: add final delay to fix spurious failureNeels Hofmeyr1-0/+1
I hit a "Broken pipe" error, hoping that the bit of delay makes the teardown more stable. Change-Id: I765a75f91a748239f6cc82f4a61f02d59166f00b
2019-03-19Use dumpcap for ttcn3-tcpdump-*.sh if availableMax2-1/+18
Check if dumpcap is installed (either as suid or with appropriate capabilities) and use it for packet capture instead of 'sudo tcpdump' if available. This makes it easier to use TTCN-3 testsuite as regular user without altering sudoers. Change-Id: I77df04d51a469c924cf727f0596cc33565909746
2019-03-17msc: for mo and mt call, interleave MGCP and AssignmentNeels Hofmeyr1-13/+21
Upcoming osmo-msc changes move away from the current ordering of MGCP and Assignment messages. Allow these async dialogs to appear in any order. Change-Id: Ia06af1e347601949f4ddb19f963daa400766d9e7
2019-03-16pcu: Verify IPv4 address communicated in PCU-originated SNS-CONFIG PDUHarald Welte1-1/+3
Prior to this patch, the test accepted anything as list of IPv4 endpoints in the PCU-originated SNS-CONFIG PDU. Using this patch, the corect IPv4 address and UDP port number is verified. Change-Id: Ia57100c7833bebc8d77118968c19ab12a3834036 Related: OS#3845
2019-03-16pcu: Test SNS where initial IP/port is not part of configured NS-VCsHarald Welte2-0/+91
As per section 6.2.1 of 3GPP TS 48.016, the initial IP/port where the SNS SIZE/CONFIG procedures are being performed is not automatically part of the later NS-VCs. This means we shall not perform the NS-ALIVE procedure or any other procedure beyond SNS with that specific endpoint. This adds a new TC_sns_1c1u_separate() to test for this behavior. Change-Id: Ie2a017250ca1d5386e2cf42d1945e61d170ac92d Related: OS#3844
2019-03-15pcu: Fix PCU_Tests_RAW_SNS.TC_pcuif_rachHarald Welte1-0/+7
Change-Id: Ifb19e68a4b2b3250cdc6079dcd7f42656c57cee0
2019-03-15pcu: Fix TC_sns_so_config_success expectationsHarald Welte1-2/+2
If there's only one IP/PORT/NSVC, we cannot expect something happening on another NSVC. In this test case, only index 0 / NSVC0 is used. Change-Id: Ia83d726c4223d61544f80d266ea832fcaa235518
2019-03-15Log PCU socket path on errorsMax1-6/+6
Change-Id: I5a4a7c9dc630ecd6fc0ca7a21d4b528d811edd06
2019-03-14Generalize ttcn3-tcpdump-*.shMax2-14/+14
Prepare for supporting alternative packet dumpers: * reword comments * rename pidfile * move tcpdump-specific option inside if * move comment about sudo closer to actual sudo invocation Those are cosmetic changes which do not affect how packet dump is made but makes it easier to support alternative packet dumpers in follow-up commit. Change-Id: Ib2528db65348c0422fe8b7c7c53656fbce4f6405
2019-03-14Log FN and RA in TC_rach_max_taMax1-1/+1
Similar to other RA-related tests, log FN and RA values in case of test failure. Change-Id: I815b10d0f0e9f29de7d306fa052b72b9e483dd9d
2019-03-14ggsn: add tests to validate IPv4v6 pdp ctxOliver Smith2-0/+198
Add related templates based on 3GPP TS 29.060 Figure 37A and create tests based on existing IPv4 and v6 ones. Related: OS#2900 Change-Id: I3bab7df5caddc5c8b973c81544f954d5473ac234
2019-03-14msc: TC_gsup_cancel: end with f_expect_clear() to avoid broken pipeNeels Hofmeyr1-0/+2
Change-Id: I3b3ae0b9c3f02f523dfb60c9efb732db3ade2785
2019-03-14msc: add codec to all Assignment Complete messagesNeels Hofmeyr2-4/+14
So far we omit a Speech Codec (Chosen) from Assignment Complete messages, which is actually a mandatory parameter. osmo-msc seems to carry on nevertheless, but it actually shouldn't be able to. Always send a Speech Codec (Chosen). Change-Id: Ib35f019383db8ace05a9dc349648e2da7ba58bfa
2019-03-11IPA: log host:port on listen errorsMax1-1/+1
Change-Id: I0e25961698ab70a2822e2b2be5b514c3603981ca
2019-03-11TC_rach_content(): fail test explicitlyMax1-2/+3
By default Misc_Helpers.f_shutdown() will set test verdict to 'none'. Let's fail test explicitly if we had any timeouts. Related: OS#1854 Change-Id: Ifff8b3b83eeedea0d308f7ab0bfe347e2dc278c8
2019-03-07msc: f_tc_sgsap_reset: add final delay to fix spurious failureNeels Hofmeyr1-0/+1
Change-Id: I20fd583311ee69f2cdee6448e809214ab261f6bd
2019-03-07msc: move sms sending to BSC_ConnHdlr and send from within test flowNeels Hofmeyr1-6/+4
For the sole reason that f_vty_sms_send() was put on MTC_CT for no apparent reason, we start the test function and send an SMS with an arbitrary two seconds delay. Instead move it to BSC_ConnHdlr and place SMS sending in the actual test function flow where it belongs. Change-Id: I5f348b3d30342b7c4871a1fc8f94648923e82eea
2019-03-07msc: as_clear_cmd_compl_disc: log unexpected messageNeels Hofmeyr1-2/+3
When receiving an unexpected BSSMAP message that fails the test, log it. Change-Id: I5cafac3318a50567f1916ea670af55558e97bf17
2019-03-07msc: add as_optional_cc_rel to ignore CC REL during call abort testsNeels Hofmeyr1-9/+23
When aborting a call with a Clear Request, it is actually a good idea to release an ongoing call with a CC Release message from the MSC. Allow this. Change-Id: I8378f7602fecac8262b31b47ad9327a3782c1bcd
2019-03-07log time in tcpdump-start and -stop.shNeels Hofmeyr2-0/+5
Also log the testcase name in The output now looks like ------ MSC_Tests.TC_mo_cc_bssmap_clear ------ Thu Mar 7 13:21:00 UTC 2019 [...] Thu Mar 7 13:21:04 UTC 2019 ====== MSC_Tests.TC_mo_cc_bssmap_clear pass ====== The reason to log start and end dates came up like this: I noticed a segfault in a tested program at a specific time. From the timestamp I tried to find out which of the tests saw the failure. (After a segfault, all subsequent tests run and fail, but it is not obvious which failure occured because of a segfault, and which ones just normally failed before that.) Looking at the timestamps of the log files didn't help, because the ttcn3_logmerge touched those after the tests completed. So the only way is to cat each individual log file and find the timestamp. So this adds an overview of the timestamps without needing to open log files. Change-Id: I0832d9b5df599baad5dec8d3a993481b4286fbb3
2019-03-04library/GSUP_Types.ttcn: add CHECK-IMEI messageOliver Smith1-3/+55
Implement necessary messages for Procedure Check_IMEI_VLR (TS 23.018 Chapter This lets the VLR ask the EIR to check if an IMEI is valid. In the Osmocom stack, we don't have an EIR and this request is handled by the HLR. We are able to store the IMEI in the HLR as side-effect (OS#2541). This is roughly based on TS 29.002 8.7.1 MAP_CHECK_IMEI service, but only implements the bare minimum required IEs (imei and imei_result). Related: OS#3733 Change-Id: Ie1ae5c66ad3f9b42b345020de62a0c276cd8d709
2019-03-02PCU: Add simple test for PCUIF RACH IndicationHarald Welte1-0/+20
Change-Id: I8fa6de711391837ed16888c48b22cd29892f222f
2019-03-02PCUIF: Add send + receive templates for TIME_INDHarald Welte1-0/+22
Change-Id: I57d776d8d2d8300805b8b8e724c288ba29c4b284
2019-03-02PCUIF: Accept any ARFCN in tr_PCUIF_DATA_REQHarald Welte1-1/+1
Change-Id: Ic334d8809baea86ea93f429b200204861b989030
2019-03-02PCU: Split RAW_PCU_CT from RAW_NS_CTHarald Welte2-19/+24
Let's split the PCUIF-side component from the NS-side component and create a new RAW_Test_CT which derives from both. Change-Id: I15021c5dea16e39a530d8d9080e37a7f2a6c4fa7