path: root/bsc/
AgeCommit message (Collapse)AuthorFilesLines
2018-07-24introduce a TTCN3 test suite for SCCPStefan Sperling1-1/+1
This test suite acts as an SCCP server on top of M3UA. SCCP tests are run against the sccp_demo_user program which can be found in libosmo-sccp/examples. This program must be started in client mode: sccp_demo_user -c The SCCP test suite should then work out of the box with the provided SCCP_Tests.cfg file and this additional change to sccp_demo_user default point codes: There is currently only one test, for the libosmo-sccp crash reported as issue OS#2666. The implementation of this test is currently using an ugly workaround due to shortcomings of the M3UA Emulation layer (see source code comments). Whether a better solution is feasible is still to be determined. The test requires a patch to the SCCP Protocol Emulation which has been submitted upstream: Change-Id: I03f5e8b282a7396b45417495c88d8fb81b26cda8 Related: OS#2666
2018-03-18Remove M3UA/MTP3/SCCP code from this repo, use upstream reposHarald Welte1-9/+3
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-16ignore results of .ttcnpp filesNeels Hofmeyr1-0/+2
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 auto-generate .gitignore files to ignore symlinksNeels Hofmeyr1-1/+1
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 Hofmeyr1-8/+1
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-02-20IPA_Emulation: Make dependencies to RSL/MGCP/SCCP/GSUP conditionalHarald Welte1-1/+1
Let's use the preprocessor to avoid IPA_Emulation pulling *all* dependencies into each and any of our projects. The code readability suffers a bit from the many #ifdefs, but compilation speed increases if we don't have to pull in all those (recursive) dependencies. After all, a BTS test case will never need SCCP, GSUP or MGCP. Change-Id: Ic0231adbd2171214de133d26b3fbf36130ee8aa0
2018-02-13bsc: Add VTY module to BSC_TestsHarald Welte1-1/+5
Change-Id: Ia78f1231f56fc5f3b003bccc850ea109ed4ed2d8
2018-02-05Don't symlink non-existent fileMax1-1/+1
Change-Id: I10309f07fb207c027703f0b43a478c152a029b6d
2018-01-29bsc: Implement Assignment handlingHarald Welte1-1/+1
This adds code for the rather intricated and nested transactions happening on RSL, BSSAP, MGCP and RSL-IPA. We use explicit invocation of altsteps to simplify the main function f_establish_fully. Change-Id: I5f830b010ea1b466ae74fa810df86638a74a3b8b
2018-01-29BSC_Tests: Add MGCP_Emulation to gen_linksDaniel Willmann1-1/+1
Change-Id: Iac24d8d3baf7e4ca6bdab6b0be7b55096e490d01
2018-01-21Move BSSAP_Adapter.ttcn to library so it can be reusedHarald Welte1-1/+1
Change-Id: I6ecb1a4823ee036b65d4e4e8ebc23c1db4915a42
2018-01-21bsc test: Abstract out CTRL handling so it can be re-used from MSC testHarald Welte1-1/+1
We create a new Osmocom_CTRL_Adapter module which can be used by test suites using the 'extends' functionality. Change-Id: I3ef6cfaa738900e008155013a05b8ccf3d4b7aeb
2017-12-28GSUP Support and first test against OsmoHLRHarald Welte1-1/+1
Change-Id: Idd7a6aca1ab193da39294f49a3adc4c1cd7cecff
2017-12-25RTP_Emulation: Integrate IuUP supportHarald Welte1-1/+1
Change-Id: I46de7fb9c324654275a27aa5f8c1be70340e3229
2017-12-17BSC_Tests: Prepare for tests based on {RSL,BSSMAP}_EmulationHarald Welte1-1/+1
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-12Makefile: clone dependencies into 'deps' folderHarald Welte1-1/+1
We used to rely on out-of-tree git clones to be prepared by the user. This commit changes the system to make sure we clone all git repos we depend upon into the 'deps' folder, and then setup the symlinks to that folder. As a result, we should be able to support self-contained builds using the makefiles in this repo.
2017-12-09BSC_Tests: Add CTRL interface connectionHarald Welte1-1/+1
2017-12-09Extend IPA_Emulation with support for CTRLHarald Welte1-1/+1
2017-12-09BSC_Tests: Start with much simpler tests at BSSAP / SCCP levelHarald Welte1-2/+23
Rather than using the more complex RSL Emulation and BSSAP emulation components, we attach to the RSL and BSSAP Codec Ports and send some messages back and forth for low-level testing such as timeouts, response to RACH requests, failure of MSC to react to CR requests, etc.
2017-12-08bsc-tests: Add BTS_Simulation, RSL_Tests and .cfg fileHarald Welte1-1/+1
2017-11-25ts_BSSMAP_HandoReq: Hand in raw list as argument, not IE typeHarald Welte1-0/+59
Also, add new ts_BSSMAP_Paging() template.