AgeCommit message (Collapse)AuthorFilesLines Use shellcheck to harden scriptHarald Welte1-2/+2
Change-Id: Iaf887da7ad95ba8b1fe93fe6c29f0518961d2fbb
2018-03-18log_merge: Use shelcheck to harden the scriptHarald Welte1-5/+5
Change-Id: I1b3a35b5f7ada2dbb0401a5d90a77a53979e1183
2018-03-18log_merge: Fix input filename patternHarald Welte1-2/+2
Change-Id: Iece1063403673a65007f41b6955e384a67acd45f Use Module.Testcase like the pcap filesHarald Welte1-1/+1
So far, pcap files used Module.Testcase.pcap while log files used Module-Testcase.merged - let's unify this a bit. Change-Id: I900ae41c3586bad41451bbcf481963384c6db061
2018-03-18Make Console Loggign a bit more verbose: add all USER "log()"Harald Welte1-1/+1
Change-Id: Ib5a78079dd31def39fb649a4e7dc027c53692abc
2018-03-18add script to generate per-testcase merged logsHarald Welte2-0/+32
Change-Id: Ife6153d2cc10f85e79e8df7a0e34a44648618976
2018-03-18selftest: Remove unneeded broken symlinkHarald Welte1-1/+1
Change-Id: I41f062e7658665e13d7ccbfecd6c5788d9b37a75
2018-03-18Remove M3UA/MTP3/SCCP code from this repo, use upstream reposHarald Welte76-26133/+32
Originally, this code was not yet in an official upstream git repo. However, it has been for many months, so let's remove our local copy and use upstream git repositories like for all the other modules. Change-Id: I2c616fb865df32cfec323d42e5d0d06de40c497b
2018-03-17SCCP: Fix connection refusal table according to A.1/Q.713Harald Welte1-2/+4
There's one value (00010001) which is not listed in the table, and hence the exisging code contains an off-by-one error due to the missing line. Change-Id: Ib2072a5fa3dabd66e0af53b77672f3a67d1e21f0
2018-03-17bsc: fix shutdownHarald Welte2-1/+19
Change-Id: I23932927bd6bb9b5e447acbeafc2748a77513a0d
2018-03-17bsc: Clear RSL port of all BTSs, not only those where we expect pagingHarald Welte1-2/+2
After all, we don't want stale queue entries especially in those where we are not expecting any paging. Change-Id: Id876b68087ef13d58177027b7e664404e6b7b2d9
2018-03-17bsc: Fix encoding of 2-digit MNC (paging tests)Harald Welte2-3/+3
The TTCN-3 data types are abstract data types, Encoding artefacts like 'F' for padding shouldn't be seen by the user. Hence, let's pass a 2-digit-long or 3-digit-long hexstring into the encoder functions and let them determine if they should introduce any 'F' for padding or not. Change-Id: If4d3dfc16381493d7e710be746ed963975051fc1
2018-03-17bsc: TC_paging_imsi_load: retransmit 'no paging buffer space'Harald Welte1-0/+8
If 5 seconds expire, the BSC will automatically re-fill a credit of 20 paging slots [to work with BTSs where the paging buffer space indications somehow are missing]. Let's make sure we don't hit that case, even if the operating system sleeps for more than 5s in this test . Change-Id: I1c65096a685b70dc5183592382ec03553ba3628f
2018-03-17bsc: TC_paging_imsi_load: clear RSL queue before checking for pagingHarald Welte1-0/+2
Change-Id: I27ce27b3f9e33e7696fee71032fe28ce9ea6327c
2018-03-17BSC_Tests: Fix TC_rsl_unknown_unit_id / TC_oml_unknown_unit_idHarald Welte1-4/+0
We are testing purely IPA/RSL/OML, and half-starting the BSSAP/M3UA emulation is not a good idea, if it generatees events that we don't catch Change-Id: Ie90cd88e63ba6062e4ea2592045e9c97bc11887e
2018-03-17BSC_Tests: Adjust TC_ctrl to match new '3 digit MNC situationHarald Welte1-2/+2
Change-Id: Ia19aeb1a7adf4f838bd289b0140a98501907d1ae
2018-03-17bts: Add TC_sacch_multi_chgHarald Welte1-0/+72
Change-Id: I0b002488729f30cc8d0ff6f4ca16637c35ee956f
2018-03-17bts: Add TC_sacch_multi to test for scheduling of multiple SI on SACCHHarald Welte1-1/+46
Change-Id: I2b9a68a0dc004c2ebc8a39f0c7b7aad690675a2d
2018-03-16sgsn: test GMM Attach with 3-digit leading-zero MNCNeels Hofmeyr2-4/+31
Add general infrastructure to - pass an MCC-MNC for BSSGP to use into f_init(); - verify that the Attach Accept PLMN matches the BSSGP one. Add TC_attach_mnc3() to feed an MNC with three digits and a leading zero, to verify the recent mnc3 patches. When testing against a libosmocore and osmo-sgsn before mnc3, this results in: Test case TC_attach_mnc3 finished. Verdict: fail reason: "mismatching PLMN in Attach Accept: 02342F; expected 023042" With the current master branches the proper 3-digit MNC with leading zero is fed back into the Attach Accept message. Change-Id: I8901ec0b090e342ebb04a04f9d759fc46c7d9cab
2018-03-16ignore results of .ttcnpp filesNeels Hofmeyr13-0/+30
Add another macro ignore_pp_results to and call from all files, to add results of *.ttcnpp files, i.e. generated *.ttcn files, to .gitignore. Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61
2018-03-16gitignore Makefiles produced by 'make compile'Neels Hofmeyr1-0/+6
Change-Id: Ia71e76f0dce2ba2f9f5837f4d3d099dff92e8787
2018-03-16gitignore *.{cc,hh}, whitelist library/*.{cc,hh}Neels Hofmeyr1-2/+4
ttcn3 creates these files, and they clutter 'git status' output. Change-Id: I6b7868ae71d3d3e710232b22a964f701ae8bd05d
2018-03-16MGCP_Test: fix config file include pathPhilipp Maier1-1/+1
The config file mistakenly references the defaults for the MSC. - correct include path to use MGCP_Test.default Change-Id: I12c6907717dfba1c31790a2b71f42e37743351af
2018-03-16MSC_Tests: Test SCCP clearing on release timeoutPhilipp Maier1-0/+39
Provoke a timeout error in the MGCP FSM which then triggers a release on the CC layer. Ignore this release and let the CC leyer timeout. The MSC is expected to clear the SCCP connection. Change-Id: If3e0bee11763f1c6b2cfae91f2a818ff7d0df9e7 Related: OS#2881 Related: OS#2882
2018-03-16MSC_Tests: Support wildcarded endpoints (follow up)Philipp Maier2-7/+46
The following tests still lack support for wildcarded endpoints: MSC_Tests.TC_lu_and_mo_call MSC_Tests.TC_emerg_call_imsi MSC_Tests.TC_mo_crcx_ran_reject MSC_Tests.TC_mt_crcx_ran_reject - Also add support for wildcarded endpoints for those tests. This is a follow up patch for: Change-Id I0efeae0f8a6e98deb843e79648f84a262f1d98f8 Change-Id: I16cb2582b9d1764d7cb7e4b787368a4dd5ddf69c Related: OS#2710 auto-generate .gitignore files to ignore symlinksNeels Hofmeyr6-6/+16
In each subdir that is a target for symlinks, automatically ignore the results of gen_links(): - At the top of, clear the .gitignore. - In the loop, add each link name to the local .gitignore. - In selected, there is also a "manual" link creationg. So that this also ends up in the local .gitignore, have the link creation as separate gen_link() macro which at the same time adds to ./.gitignore. - in the root .gitignore, ignore all the subdirs' generated */.gitignore files. Change-Id: I73c11fe8362358bf7e1bdf0e1be53399b5d3351b
2018-03-16fix don't include source dir as link targetNeels Hofmeyr13-96/+24
First of all, use one common place to define the gen_links() macro, in In this new file, add a 'shift' to exclude the $DIR arg from also appearing in $FILES. This prevents the following wrong symlinks in the source dirs: M3UA_CNL113537/src/src MTP3asp_CNL113337/src/src SCCP_CNL113341/src/src Change-Id: Ia8493e77df1ba8723f2c5d2a49816247b0fb55f7
2018-03-14MSC_Tests: Support wildcarded endpointsPhilipp Maier2-3/+16
At the moment the testsuite is unable to detect when the call agent performs a CRCX request with a wildcarded endpoint. - Set a default endpoint name in cpars in case the MSC does a CRCX request with wildcarded endpoint name. - Detect if the MSC supplied a wildcarded endpoint name. Do not overwrite the default setting in cpars then. - Attach the endpoint name as Z: parameter in the response so that the MSC knows which endpoint to use. (Unconditional, does not harm on non wildcarded requests) Change-Id: I0efeae0f8a6e98deb843e79648f84a262f1d98f8 Related: OS#2710
2018-03-14fix cell identifier generation in ttcn3 paging testsStefan Sperling2-2/+6
The cell identifier used by the paging tests is 001-01, i.e. uses a 2-digit MNC. With the introduction of 3-digit MNC support in osmo-bsc, the paging tests became incompatible with a osmo-bsc config with: network country code 1 mobile network code 1 Explicitly declare a Cell_Identity with 2-digit MNC (includes an 'f'). Also, fix f_enc_mcc_mnc to properly encode 2-digit MNC values. Related: OS#2847 Change-Id: Ide5228b403e43de8649b6eda18749ea2a9f592a9
2018-03-14MSC_Tests: Respond to BSSMAP releasePhilipp Maier1-0/+5
The testcase TC_mo_crcx_ran_timeout does not respond to the BSSMAP relase request that is sent when the MGW times out. - Acknowledge the release request before waiting for the MSC to clear the SSCP connection Change-Id: Ifcf9ebd2cc5184524ecae735257ed12a0ca70f71 Related OS#2881 Related OS#2882
2018-03-13PCUIF_Types: Upgrade to PCU interface v9Harald Welte1-2/+4
Change-Id: If024bbe51d91666fcfe9d3458d85ff269c327a7c
2018-03-13bts: Verify the PCU protocol interface versionHarald Welte2-5/+50
Change-Id: If2033720a38879cd2f4c4f8d3fe3fed1468da3cb
2018-03-13remove *.default from [EXECUTE] in *.default filesHarald Welte12-8/+5
The problem is that the .cfg file cannot override the [EXECUTE] provided list of tests Change-Id: I7e1e0499b3b32014b25ae4b515263f57a4ea6daf
2018-03-12bts: Add TC_sacch_info_mod and TC_sacch_fillingHarald Welte2-0/+118
Change-Id: I38b3e302eddb699b2dbdae06fc929dd59de7b2dc
2018-03-12bts: Add f_rsl_transceive() flag to ignore all unrelated messagesHarald Welte1-6/+8
f_rsl_transceive() is currently using a number of default altsteps, but those are not applicable in all cases. Let's make this configurable, and use that flag during channel release. Change-Id: I34d8e9350dbe2b032a7454d7f003262e27c802ad
2018-03-12bts: Add TC_deact_sacch()Harald Welte3-3/+118
This test case checks on each logical channel if the DEACT SACCH RSL message actually deactivates downlink SACCH as expected. Change-Id: Id8219ffce0635071cb50669b89368de51fe82843
2018-03-12bts: Add f_shutdown() for clean shutdown; use it from testsHarald Welte1-4/+35
Change-Id: I225d2363c77dce969bda95ff27506bece586a34a
2018-03-12bts: Send DM_REL_REQ to L1 when closing logical channelHarald Welte2-0/+6
Change-Id: I0c0bb52b4de20dfd2d4ea8d0045ea63d84686ac5
2018-03-12bts: f_rsl_transceive: Add altsteps for sacch/facch/meas_repHarald Welte1-0/+3
It may be that during CHAN DEACT we still receive any of those messages, which is not an error condition. Let's activate the related altsteps. Change-Id: Ic27b28ead3fc4bff82655d0e8d88fda01b71eca7
2018-03-12bts: Make f_TC_meas_res_periodic work with real BTSHarald Welte1-5/+10
In a real BTS + OsmocomBB-L1, we cannot control fake ToA/RSSI, but we simply assume the signal is strong/good. Change-Id: I55a79f9e23118d2bb28f27cbcc7ab28712570ef1
2018-03-12bts: Ignore first MEAS REP as it often contains bogus valuesHarald Welte1-2/+12
The first measurement report typically has bad performance as it contains measurements taken before the MS actually started to transmit on it. Let's make sure we only validate all but the first MEAS REP Change-Id: I5edfdca0c2b5c63073dca7f12f9c0d447e37995c
2018-03-12bts: Introduce RxLev/RxQual tolerance valuesHarald Welte1-4/+43
In real-world measurements there's always some tolerance. Use templates for integer ranges of rxlev + rxqual and add some module parameters to make them configurable. Change-Id: I41396ad081706a0dbd6cc992b81d9bba266b6d6d
2018-03-12bts: Make PCU and TRXC sockets optionalHarald Welte1-4/+13
If we want to test with a real (remote) BTS, we can neither access the PCU socket nor is there any fake_trx control socket for fake toa/rssi Change-Id: Ibb02cf289b0d2e77170f146463822c164efc21cd
2018-03-12bts: Align default SI contents with what we see from OsmoBSCHarald Welte1-5/+5
Change-Id: I8d0fa73e1a9b859e1833b0d2ce8cb6bbf07938cc
2018-03-12BTS_Tests: Access Control Classes are invertedHarald Welte1-1/+1
No normal phone would ever send us a RACH request due to all ACC being barred in the SI of BTS_Tests Change-Id: I149dca67971bde3072ec2081d9ad7e8f43434ebf
2018-03-12L1CTL: Have proper timeout during resetHarald Welte1-3/+16
Change-Id: Ib6b33f522eddb1377e9857cc5d88363852732b46
2018-03-12L1CTL: make sure to self.stop in all setverdict(fail) casesHarald Welte2-15/+44
Change-Id: I2013a8ec0641d8ef935e6615c1bde599f42db260
2018-03-12L1CTL/bts: Fix tons of compiler warnings by splitting rx+tx templatesHarald Welte5-75/+128
Change-Id: I9c8be0856516a6a168795c792f76d14c08c3dabb
2018-03-12WIP: Work towards a more real DL TBF receiver implementationHarald Welte2-17/+161
Change-Id: I300312734d99f2b8a406f39e04b4f738940f7579
2018-03-12pcu: First DL TBF hackHarald Welte6-20/+279
Change-Id: Ib3f09e125a7a4492d9072f8e9f5896eaac7ed03b