summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-04-01improve documentation of templates used in GGSN_TestsStefan Sperling1-7/+8
Various improvements to the comments documenting packet templates used in GGSN_Tests: fix IPv4 vs. IPv6 confusion, clearly indicate whether templates are used for sending or for receiving/matching packets, and add a missing comment. Found while studying code to prepare for issue OS#2519. Change-Id: I3bfc21a5ba74e0505457e4874f93501ad7c68b7b Related: OS#2519
2018-03-29mgw: Fix mixed-up MGW / local IP addressHarald Welte1-2/+2
Change-Id: Ie4f6da896f53e9fabd7275fe6d8f8c6309e02d14
2018-03-29mgw: Don't use RTP_Endpoint anymore. We use RTP_Emulation new.Harald Welte1-11/+0
Change-Id: I6302412daaafc37c8e7740cce4806405d3086fa7
2018-03-29BSC_Tests: Add missing routing context to moduleparPhilipp Maier1-1/+2
The BSSAP_Configuration leaves the rctx parameter unbound. - Make sure that rctx is set to 0 Change-Id: If0f08665694be8eba817a4525686a9a37caf1dbb
2018-03-29msc: Fix config file syntax.Harald Welte1-2/+2
In Change-Id: I52a4c8118828c1605cf672889982f987568ad17d we introduced config file syntax errors. It seems that change was not tested at all before pushing :( Change-Id: I80577798b502957afaa46abb510bcca3dc174ee4
2018-03-29mgw: Add first tests for testing RTP streamsHarald Welte2-0/+174
The existing MGW tests were entirely on the MGCP side. Let's start some tests that exchange RTP frames with the MGW and validate that the MGW can actually act on what is configured via MGCP. Change-Id: If620d5f8927d0e3584e90a7a8f785c6fdd7c2d17
2018-03-29RTP_Emulation: Add f_rtpem_stats_compare() to match a pair of statsHarald Welte1-0/+12
Change-Id: I1682bc16a05f096976b7e68b6115850fc152f7aa
2018-03-29RTP_Emulation: Add convenience helper functions around procedure callsHarald Welte1-0/+30
Change-Id: I413aa2b86c2aebe8017112926fc88af0de4d43b7
2018-03-29RTP_Emulation: Make it less chatty in the logHarald Welte1-2/+2
Change-Id: I8ff3ce27967d624cce5edc10655b1294d57ca3a3
2018-03-29RTP_Emulation: Fix receive templatesHarald Welte1-2/+2
The connection ID part of the template must be updated after we created the respective sockets. It was done to early. Change-Id: I37306d841df3d27d30fd89fb99c863370517e3ff
2018-03-29mgw: Add statistics to RTP_Emulation and link/build it in mgw testHarald Welte3-7/+65
We're not using it so far, this is left for follow-up patches. Change-Id: I40c322374cd99adb75a0f09175023fc0b12291d2
2018-03-28BSSMAP_Templates: Add templates for HANDOVER REQUIREDPhilipp Maier1-1/+22
In order to form a minimal HANDOVER REQUIRED message additional Templates (ts_) are needed. - Add Template ts_BSSMAP_IE_SpeechVersion - Add Template ts_BSSMAP_IE_CurrentChannelType1 - Add Template ts_BSSMAP_IE_OldToNewBSSInfo Change-Id: I41c2a036465d422db9348d4d2d66bb332e16e155 Related: OS#1609
2018-03-28MSC_Tests: Add support for multiple BSCPhilipp Maier4-28/+80
The upcomming tests for inter-BSC handover make it necessary to simulate multiple (two) BSCs to the MSC, while the current Implementation can only handle one BSC instance at a time. - Allow multiple BSC instances to be created - Add a simple reset-test to test what happens when two BSC instances are started (BSSMAP reset from two different BSCs) Change-Id: I52a4c8118828c1605cf672889982f987568ad17d Related: OS#1609
2018-03-28Cosmetic: Update MSC_Tests.cfgPhilipp Maier1-2/+40
The MMSC_Tests.cfg config file lacks most of the test comments. - make sure the control section of MSC_Tests.ttcn and MSC_Tests.cfg match up. Change-Id: I89e6c65427a993261cab6a284e6cc3dbc5a5562f
2018-03-27deps/Makefile: Various updatesHarald Welte1-6/+6
* SCCP changes were merged upstream, we don't need to use osmocom fork * SCCP upstream now has proper tag based version * M3UA now has a new version tag (with Routing Context) * UNIX_DOMAIN_SOCKET has new verison tag (upstream requested changes) Change-Id: I5526c1688d84cf985299baa973271a620b4b4544
2018-03-27deps/Makefile: Add missing "git fetch" to /update and /clean targetsHarald Welte1-2/+2
When the Makefile was modified to use a new tag/hash of a given repo, the "make update" or "make clean" target will fail as the new version/tag is not yet known to the local repo, only to the remote (and hence we need a fetch). Change-Id: I52c44c744674cd4dab0c85086d68bde6f9be1fca
2018-03-27deps: Switch to our own fork of the M3UA ProtocolEmulationHarald Welte1-2/+2
.. as we have some patches that are not yet in upstream Change-Id: Ie8a9380ae8838c571fe3d0776f60485b34c85d4e
2018-03-27fix TCH/H for TC_chan_exhaustionPhilipp Maier2-7/+8
At the moment we use onle TCH/F and PDCH in our osmo-bsc config, but the tests TC_assignment_codec_amr_h and TC_assignment_codec_h requre a half rate channel in order to work. Configuring one TCH/F to TCH/H seems not to hurt any tests except TC_chan_exhaustion - also regard half rate channels in TC_chan_exhaustion - change included sample osmo-bsc.cfg Change-Id: Idd5a9602f1b49b5aa0fc510faa151fe16c0b404d Related: OS#3100
2018-03-26Makefile: Add new 'sip' testsuite to list of testsuitesHarald Welte1-1/+1
Change-Id: Ie7cc41a40fb8706e9b0752be6e7c1f34dc692d87
2018-03-26More progress on osmo-sip-connector testsHarald Welte7-49/+800
Change-Id: I34a5d7929264c7f5f21d3868a5f919874ffa106c
2018-03-26MNCC_Types: More types for MNCC server (MSC) side emulationHarald Welte1-1/+239
Change-Id: I1dd1744da7da983412d5d34c40fd896bc7b896db
2018-03-26MNCC_EncDec.cc: Fix decoding of speech versions in bearer capabilitiesHarald Welte1-2/+5
Change-Id: I4fd79ee769c967dc209a7e1859d9d8b18d09843e
2018-03-24MNCC_Emulation: Make ExpectedCreateCallback work for SETUP_REQ, tooHarald Welte1-2/+3
In server mode, we need to handle SETUP_REQ in ExpectedCreateCallback, not only SETUP_IND like in client mode. Change-Id: I988668cac9970af12d59d05a3a9facca257851c6
2018-03-24MNCC_Emulation: Send HELLO in "server" roleHarald Welte2-0/+15
Change-Id: I6ef9697ff365bae9fbf7c5888fdb0b88e63b13bb
2018-03-23bsc: Fix tons of TTCN3 compiler warningsHarald Welte6-25/+32
Change-Id: I60dc054d19a249d46d44585c17626746c34f4b09
2018-03-22sip: Add SIP_Emulation and first osmo-sip-connector test caseHarald Welte8-9/+769
Change-Id: Ifd47b0d48c609b4a678ea47aa7f89f5c12e6c0d2
2018-03-22bsc: TC_assignment_codec_*: Verify RSL side codec/modeHarald Welte1-0/+52
Let's not only match if the BSSMAP ASSIGNMENT COMPL matches what codec was requested in BSSMAP ASSIGNMENT CMD, but also verify that the RSL side channel was activated with the right channel mode IE. Change-Id: I6ef24b5b82a5c100ffffe056adadd26e69b968b9
2018-03-22RSL_Emulation: Introduce LastActTableHarald Welte1-2/+70
The LastActTable stores a copy of the decoded RSL CHAN_ACT for each channel number. This can be used by a RSL_DchanHandler to learn parameters of its own activation. Change-Id: I629d66e27cbe4c8b02e704a7181b3bff843e9aa4
2018-03-22preserve uncommitted local changes in ttcn3 deps repositoriesStefan Sperling1-1/+14
The previous Makefile rules would always overwrite uncommitted local changes within repositories under the deps directory. Let's assume that somebody who has local changes inside dependencies knows what they are doing, and eliminate the risk of discarding results of their work. Always skip repositories which contain local changes. Only print a warning about such repositories. Nothing changes for people who do not modify dependencies. While testing this change, I noticed that the 'make distclean' target was not reachable via 'make distclean', and I've fixed this as well. Related: OS#3090 Change-Id: I0ee4ed70868b1c1efa39ad2bf200bf59ae2a2019
2018-03-22BSC_Tests: split up f_mt_call and f_mo_callPhilipp Maier1-45/+50
The functions f_mt_call and f_mo_call establish a call, hold it for 3 sec. and tear it down again. However, there may be test situation where one wants to establish a call and then hold it in order to perform other actions. - split up the function into an _establish and _hangup part. - add a replacement f_mt_call and f_mo_call function for the already existing testcases Change-Id: I0da9cf64d10de4036eb037ef5e491bfe3088670b
2018-03-21BSC_Tests: remove obsolete VTY configurationPhilipp Maier1-4/+0
The settings concerning the IPA ping are a leftover from the time where osmo-bsc used an IPA multiplex to support the the SCCP lite A interface dialect. Since the related code is now removed and osmo-bsc has been migrated to libosmo-sccp and real AoIP interface, the configuration is no longer needed. Change-Id: If67cdba2a043c5dbf23f998659c5000db924a7df
2018-03-21bsc: Add tests for assigning channels of all 5 codecsHarald Welte2-2/+177
This tests if the BSC is chosing the correct codec during the assignment procedure. Change-Id: Ia67c09fa725eff48ec56779f8674ddcaa08a8793
2018-03-21MSC_ConnHdlr: Fix RlsChannelNr encoding in f_ChDesc2RslChanNr()Harald Welte1-6/+5
Make sure that the "tag" member of the RslChanelNr sub-structure is always initialized. This can be achieved without any extra code by using the existing templates rather than hand-coding it. Change-Id: I990ac8ac0ce51e11f1d683382c9fc2d4e1201aa7
2018-03-21bsc: Allow multiple subsequent calls of f_MscConnHdlr_init()Harald Welte1-3/+8
If the function was called once, don't start another VTY/telnet component. Change-Id: I47bdeb0417a6814ed3a3f5c0c5797bd1bc7a59ba
2018-03-21RSL: Add tr_RSL_ChanModeHarald Welte1-0/+10
Change-Id: I938b8898db1cd9638cf2858b3b593fa3fd39bf1e
2018-03-21Add BSSMAP SPDI definitions (speech/data indicator octets)Harald Welte1-1/+7
Change-Id: I3b81ea995667a4c9ffaf0f6891766d5b5af20636
2018-03-21bsc: Move TestHdlrParams to global per-component var g_parsHarald Welte2-27/+38
Change-Id: Ifd811bab7719b205a6174e3f6ba367643dfcb0ec
2018-03-21don't use setverdict(inconc) anymore. Use 'fail' at all timesHarald Welte4-6/+6
The problem is that Junit-XML doesn't have a mapping for inconclusive results, and hence they show up as 'passed'. By introducing this change, we make sure all tests that don't pass show up as failed. Change-Id: Iddd13d0055c91f9bd304ce9833fba0485abf4c4e
2018-03-21make management of osmo-ttcn3 git repository dependencies automaticStefan Sperling2-6/+57
Add rules to deps/Makefile which ensure that 'make deps' puts the git repositories of dependencies into a known state. In particular, set the origin remote url to a known value, and check out a known commit into the work tree. This change ensures that ttcn3 builds run with 'make' will always use correct versions of dependencies. The 'make update-deps' now has the same effect as 'make deps', but it is not yet removed in case build scripts rely on its existence. The new 'make deps' target is fast enough to be run before every build. Change-Id: I561eee7e12d976cd2265ba1bb8cd22dd8c1a0735 Related: OS#3090
2018-03-20log_merge.sh: Fix removal of log filesPau Espin Pedrol1-1/+1
Files are not being expanded and fails: Removing Input log files !!! rm: cannot remove 'GGSN_Tests*.log': No such file or directory Change-Id: I74e1f00c5e2b41668ebf2060f547fcc01212956d
2018-03-20make ttcn3 RNC paging tests passStefan Sperling1-6/+6
We do not implement paging by RNC. Fix test expectations accordingly. Change-Id: I490fdaa9a73565c7e53e9a7eeafa0ee89c29b9d8 Related: OS#3073
2018-03-20add regression test for paging with unknown MCC/MNCStefan Sperling2-0/+11
Verify that the BSC does not page a subscriber when a cell identifier with an unknown MCC/MNC is provided by the MSC. This test introduces a magic value which represents an unknown MCC/MNC combination: MCC=678 MNC=f90 Change-Id: I0b0af14a9a1cb7e5a7a4ec12cc489473fd7ead02 Related: OS#2980
2018-03-19MSC_Tests: Test what happens when the DLCX is droppedPhilipp Maier2-6/+58
Test the reaction of osmo-msc when the DLCX at the end of a call is not answered. Normally osmo-msc should time out and clear the connection. Change-ID osmo-msc:I78f1b6a9149488a4ad3f120c1e190a83c07d4b89 fixes a regression that causes osmo-msc to segfault due to a use after free. This testcase provokes the situation that leads to the crash. Change-Id: Ic124ea116496209f9a1d8e74ae3e3a36cf866db0 Related OS#2881 Related OS#2882
2018-03-19cosmetic: correct indentationPhilipp Maier1-1/+1
Change-Id: I5fdb3d3db201e33456e03ffda55752efe4ada733
2018-03-18msc: wait for clear-command/complete/sccp-releaseHarald Welte2-48/+35
Not all tests were waiting/expecting the complete connection shutdown, which results in the possibility for CLEAR CMD to arrive during shutdown of the TITAN components and cause related errors. Change-Id: I3a6c2e1f78b58f86ef84d4e323f432016a9afa7e
2018-03-18fix regression in start-testsuite.sh (false shellcheck advice)Harald Welte1-1/+1
Change-Id: If05d13c0dedfedf517005e5418acc677ddc5e75f
2018-03-18Osmocom_VTY_Functions: Less logging verbosityHarald Welte1-1/+0
We don't need to print all prompts at start of every test case Change-Id: I32d13b6f97f76ab6057cc213c1698c1eb97b9d90
2018-03-18msc: Fix TC_cl3_{no,rnd}_payloadHarald Welte1-0/+3
It may very well be that the MSC is first accepting the SCCP connection and possibly sending a L3 (error) message before clearing/closing the SCCP connection in case of errors in the COMPL L3 info. Change-Id: I4cf08608413e9e1fb54848849baed79204f5dcd1
2018-03-18BSSMAP_Emulation: handle zero-length L3 Info in f_bssap_l3_is_rr()Harald Welte1-0/+3
Change-Id: I5666911d67388347d04724635cf6f56e164a82f8
2018-03-18MSC_Tests: Fix to use 2-digit MNCHarald Welte1-2/+2
Until recently, OsmoMSC didn't distinguish 2-digit from 3-digit MNC, and the config file states '42' as MNC while the tester used '042' in several locations. This causes almost all MSC_Tests fail with recent osmo-msc. Let's fix the tests to use '42', as they should always have. Change-Id: Id02bfd74127cf5551923912934240035106a8a4e