aboutsummaryrefslogtreecommitdiffstats
path: root/bsc
AgeCommit message (Collapse)AuthorFilesLines
2018-01-29bsc: Expect CRCX and send an ACK backDaniel Willmann1-3/+7
Change-Id: Ic4fabc2a2cf034a831e446697b3a22f4d1d0c6d6
2018-01-29bsc: Reply to CRCX with ACKDaniel Willmann1-0/+5
Change-Id: Ieaea431a99241d8844b915e1b46b77c79fff24df
2018-01-29bsc: Register expect criteria for MGCP CRCXDaniel Willmann1-0/+6
Change-Id: I04afa663f4397d5d9b8dec06671aec84f4c4f80e
2018-01-29bsc: Start MGCP_Emulation and extend MSC_ConnectionHandler for MGCPDaniel Willmann2-3/+39
forward-ported by Harald Welte Change-Id: I1f316a9ed5859670348ea7aa352604020d6b09f5
2018-01-29BSC_Tests: Add MGCP_Emulation to gen_linksDaniel Willmann1-1/+1
Change-Id: Iac24d8d3baf7e4ca6bdab6b0be7b55096e490d01
2018-01-24MSC_Tests: Use enum instead of magic numbers for CM_SERVICE_TYPEHarald Welte1-1/+1
Change-Id: Ic90b4a0aa47821877a2d3566606b9c9dd5919968
2018-01-21BSSMAP_Emulation: Decode DTAPHarald Welte1-1/+3
It's quite cumbersome if the user of the BSSMAP_Emulation (the ConnHdlr) will have to manually decode the DTAP in every BSSAP/DTAP message he receives (and encode on the transmit side). Let's introduce a new optional mode in which the DTAP messages are already decoded for more convenient matching inside the ConnHdlr. Change-Id: I35cd4ea78aca0ce7c7d745e082d7289882c11e81
2018-01-21Move BSSAP_Adapter.ttcn to library so it can be reusedHarald Welte2-163/+1
Change-Id: I6ecb1a4823ee036b65d4e4e8ebc23c1db4915a42
2018-01-21bsc test: Abstract out CTRL handling so it can be re-used from MSC testHarald Welte2-52/+4
We create a new Osmocom_CTRL_Adapter module which can be used by test suites using the 'extends' functionality. Change-Id: I3ef6cfaa738900e008155013a05b8ccf3d4b7aeb
2018-01-21BSSAP_Adapter: De-couple from BSC-testing MSC_ConnectionHandlerHarald Welte2-8/+10
... and pave the way from using it on the other side in MSC testing Change-Id: I0095f7d24dd8b24f759e4c74a4e7856ec4503ed2
2018-01-17Add "SourceInfoFormat := Single;" to all test configsHarald Welte1-0/+1
This will make sure that all log files will contain information about the .ttcn source file name and line number that has caused the log, which is extremely useful during debugging. Change-Id: Id6785757f20279ba84b34747f878baf67d065b20
2018-01-12Test control connection status query for MSC 0.Stefan Sperling1-0/+11
This new test exercises the new 'msc.0.connection_status' control command which is added in https://gerrit.osmocom.org/#/c/5630/ Change-Id: I55faa1ec413629234e24831dbc05d8b0afec8099 Related: OS#2729
2018-01-09Fix BTS location area code assignment in test configuration.Stefan Sperling1-2/+2
The paging tests expect BTS 0 and 1 in LAC 1, and BTS 2 in LAC 2. BUt the osmo-bsc configuration file had BTS 1 in LAC 2, and BTS 2 in LAC 1. Change-Id: I1d6b02fe06116dee59977422bc93bcafcd3aba76
2017-12-28GSUP Support and first test against OsmoHLRHarald Welte1-1/+1
Change-Id: Idd7a6aca1ab193da39294f49a3adc4c1cd7cecff
2017-12-28bsc-test: Fix compilation after IuUP support was introducedHarald Welte1-1/+1
Ever since I46de7fb9c324654275a27aa5f8c1be70340e3229 we had problems linking the object files together due to a missing object Change-Id: I5d8c37f924b3a2c8b28cace4da2add1fadd0151a
2017-12-25RTP_Emulation: Integrate IuUP supportHarald Welte1-1/+1
Change-Id: I46de7fb9c324654275a27aa5f8c1be70340e3229
2017-12-25BSC_Tests: Fix TC_assignment_fr_a5_4Harald Welte2-6/+15
Don't expect the ASSIGNMENT to fail in case of unsupported A5/4, but expect a CIPHERING MODE REJECT. Change-Id: I15024f61e67795b7e5ce72e1b641db6ca92ff76d
2017-12-23MSC_ConnectionHandler: fix f_rsl_reply() for RSL_MT_ENCR_CMDHarald Welte1-1/+1
For some weird reason the link_id is *not* the second IE in RSL_MT_ENCR_CMD, while it is in all other RSL RLL or DCHAN messages. Change-Id: Iea93aa8dba74d25c74a257d011ba43308ee375e4
2017-12-23convert TC_assignment_sign to 'new style' testsHarald Welte1-9/+19
the use of the MSC_ConnHdlr automatically handles the MODIFY on both RR and RSL level. Change-Id: Iad7122ff5220ffc1640d802db47b1aa97986ed5b
2017-12-22BSSAP_Adapter: Fix missing 'repeat' in as_reset_ack()Harald Welte1-0/+1
The as_reset_ack() exists to acknowledge any incoming RESET without every test case having to deal with it explicitly. However, of course, the processing of an inbound RESET should not abort but the alt clause shall continue. Change-Id: I94dc72b5788ccc8dff2c4b80599c9fbf7e90e730
2017-12-18BSC_Tests: remove bogus line sfrom osmo-bsc.cfgHarald Welte1-5/+0
Those lines serve no purpose (and are being removed from osmo-bsc master) Change-Id: Icf037e8cd9a51e676eac472b29c0d616a5632c5d
2017-12-17BSC_Tests: Delete unused/dead codeHarald Welte3-86/+0
Change-Id: Ife089a2c292f4eae7a7c76dd2f112e7821f02cda
2017-12-17BSC_Tests: Update readme + source code commentsHarald Welte2-5/+75
Change-Id: I7b7d0e504e3e94077d674b464f39bd8851941922
2017-12-17MSC_ConnHdlr: Fix f_rsl_reply() for RSL_MT_ENCR_CMDHarald Welte1-0/+5
In all RSL messages the link identifier is usually the second IE. However, as the only known exception, the RSL Encryption Command has it as third IE. Fixes the following error message: Dynamic test case error: Using non-selected field link_id in a value of union type @RSL_Types.RSL_IE_Body Change-Id: I2bbb83b5394d0b693a47d286beed5c699ab6e8ae
2017-12-17BSC_Tests: reduce amount of sleeping to speed up test suiteHarald Welte1-2/+1
Change-Id: Ifd956556969467d4f059d2c8e58a924eb7ec0418
2017-12-17fix TC_ctrl expectation: We expect 3 BTSsHarald Welte1-1/+1
Change-Id: I4ba5d357474d43c3065858bfa18bf73f1c4eba5d
2017-12-17BSC_Tests: Only start the number of BTSs required for a givenHarald Welte1-29/+29
Change-Id: Ife3ec4900a73a29c2ef258a5a9d38b95ced8dc86
2017-12-17BSC_Tests: Implement ecnryption related proceduresHarald Welte2-11/+35
Let's verify the operation of the CIPHERING MODE COMMAND as issued by MSC, performed by BSC and implemented by simulated BTS/MS. Change-Id: Ibc06bd2177c63837a794a0ca1f54ebef17499e78
2017-12-17MSC_ConnHdlr: Tighten permitted messagesHarald Welte1-4/+8
Accept CRCX only once; Accept MDCX only after CRCX; Accept RSL MODIFY only after RR MODIFY. Change-Id: I44abdc3d000c76243f9885f0e30e15c2dc9aadaa
2017-12-17BSC_Tests: Migrate various ASSIGNMENT tests over to MSC_ConnHdlrHarald Welte1-76/+108
This way we benefit from the ability to handle the RR MODE MODIFY, RSL MODE MODIFY, IPA CRCX and IPA MDCX capabilities of the MSC_ConnHdlr component. While each test case now needs a separate function in addition to the actual testcase, this allows for more flexibility and a more complete emulation of BTS behaviour. Change-Id: Iba50663cb5104bf34bd6fc8aac2aa3b47155fe99
2017-12-17BSC_Tests: Re-wire MSC_ConnectionHandler to handle BSSAP and RSLHarald Welte2-103/+158
Using the MSC_ConnHdlr component, we can now handle the BSSAP (MSC) and RSL (BTS) side of a single radio channel. Change-Id: I00dcf1e4eaa7f133788cc01fbbcd4148a0258ef4
2017-12-17BSC_Tests: Prepare for tests based on {RSL,BSSMAP}_EmulationHarald Welte4-12/+42
The existing tests were implemented directly on top of the BSSMAP and RSL CodecPorts. If we loop in the RSL_Emulation and BSSMAP_Emulation components, we can properly multiplex/demultiplex multiple MS (radio channels) on both the RSL and the MSC (SCCP connection) side. In order to have a single component that handles both the RSL and the BSSAP side of a given channel/subscriber/call, we introduce the concept of BSSMAP "Expects", where the test csse can register the L3 INFO that it sends in the RLL ESTablish INDication on the RSL side, so the BSSMAP handler cna route the BSC-originated SCCP connection with that L3 INFO back to the same component. This is a bit inspired "in spirit" of the "expect" mechanism of netfilter connection tracking. Change-Id: I71f777cd4f290422fa68897952b6505875e35f0e
2017-12-17BSSMAP_Emulation: use BSSAP_CodecPortHarald Welte1-1/+2
So far, BSSMAP_Emulation used the SCCPasp_SP_PORT directly, explicitly calling BSSAP encode/decode functions while processing the primitives. Let's clean this up and use the BSSAP_CodecPort which has meanwhile been developed as a dual-faced port that can be stacked between SCCPasp and the user to avoid any manual encode/decode function calls. Change-Id: Icded789d18f3469f74e16f552df2c7ac44ac4294
2017-12-15update README.txt with status of current implementationHarald Welte1-18/+33
Change-Id: Idd5ac4273975b5c0e3ea373f1b8f6d6b2e534c0b
2017-12-15BSC_Tests: Update CFG with list of test casesHarald Welte1-0/+35
Change-Id: Ia3b8632e0528e862288f7c8565a2e1db04f9eebc
2017-12-15BSC_Tests: Ensure MSC passes SpeechCodecList in AoIP ASSIGNMENTHarald Welte1-0/+19
Change-Id: I66deffc50b5adcc8707747c0baa2e65ee36bf18e
2017-12-15BSC_Tests: Add whole bunch of new assignment testsHarald Welte1-1/+121
Change-Id: Ia7304f2e2265c2ebd92575a9403b082579397656
2017-12-15BSC_Tests: Add TC_outbound_connect to test if BSC rejects inbound SCCP ↵Harald Welte1-0/+15
connections Change-Id: Ie9087df9ff9b48c8be242b1ae66cbca936b07121
2017-12-15BSSMAP_Templates: Enable use for AoIP, not just E1-CICHarald Welte2-3/+5
Change-Id: I421ade4ae1c0c19c9c2b1172cdcf8d6c4cd55205
2017-12-15BSC_Tests: Add TC_assignment_cic_only (AoIP Assign. must fail with only CIC)Harald Welte1-0/+25
Change-Id: Iee7202841ad8466a65b5d54679262be100863e39
2017-12-14BSC_Tests: Add test case for RSL link drop counterHarald Welte1-0/+20
Change-Id: I7b692cceaed07c112f8c62b87081cfdb322c8120
2017-12-14BSC_Tests: Add TC_chan_exhaustion to test for channel exhaustionHarald Welte1-0/+51
We ensure that all channels are allocated, and that the first allocation beyond the avialable channels will fail and generate an IMM_ASS_REJ. WE also verify that the related counters are incremented as expected. Change-Id: Iade77321588190cec89cfcd9c18d84a7144e0198
2017-12-14BSC_Tests: Add TC_chan_act_nack to test RSL Channel Activate NACKHarald Welte1-0/+26
Change-Id: Ic0188065f50d29c44d7bf220f2ef881997a14b68
2017-12-14BSC_Tests: Add TC_paging_counter to test paging related countersHarald Welte2-0/+40
Change-Id: I48057cb4eeb96637a663940cf4de4df1a9f2e85d
2017-12-14BSC_Tests / RSL_Types: Add enumerated for RSL Cause valueHarald Welte1-1/+1
this looks much more human-readable in the logs... Change-Id: I2bc3de37a3059cc16c6293df45e5c4d620422502
2017-12-13BSC_Tests: Add more tests about invalid channel activationsHarald Welte1-0/+107
Change-Id: I8a44b5eab6c6e09330305547d145820983f90140
2017-12-13BSC_Tests: remove copy+paste CHAN RQD -> CHAN ACT -> CHAN ACKHarald Welte1-20/+15
... and replace it with a function Change-Id: Id75cc92ddf1c1833c892a7bfa77d6561fd0f3679
2017-12-13BSC_Tests: Make as_Tguard() more robust (don't abort after RESET)Harald Welte1-0/+1
Change-Id: Ia5a39d372c1b7ec8267446f2762aabc600667775
2017-12-13bsc: Run three virtual BTSs (2 in one lac, 1 in another)Harald Welte2-24/+247
This allows us to verify if the BSC pages *only* where it is supposed to page based on the cell identity list in the 08.08 PAGING. Change-Id: I53ffe44279a7b83e045b3fdb25da64529955d457
2017-12-13generalize shared code from regen_makefile.sh into shared helper scriptHarald Welte1-9/+1
Change-Id: I86a738420851a7d9e3bdb2671f6862c3d505a4ba