summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-04-06add compare-results.sh, call from start-testsuite.shNeels Hofmeyr11-2/+633
Compare current test results to the expected results, and exit in error on discrepancies. Add compare-result.sh: (trivially) grep junit xml output to determine which tests passed and which didn't, and compare against an expected-result.log, another junit file from a previous run. Summarize and determine success. Include an "xfail" feature: tests that are expected to fail are marked as "xfail", unexpected failures as "FAIL". In various subdirs, copy the current jenkins jobs' junit xml outputs as expected-results.log, so that we will start getting useful output in both jenkins runs and manual local runs. In start-testsuite.sh, after running the tests, invoke the results comparison. Due to the single-line parsing nature, the script so far does not distinguish between error and failure. I doubt that we actually need to do that though. Related: OS#3136 Change-Id: I87d62a8be73d73a5eeff61a842e7c27a0066079d
2018-04-05gitignore vim swp filesNeels Hofmeyr1-0/+1
Change-Id: I2d60ad2365c7fd82210ee1dac96fabab19617280
2018-04-05bts: Add first tests about IPA style dynamic PDCHHarald Welte1-1/+181
Change-Id: I56d8b0284e8e4eee4ce6454f7a495ee09c40fe42
2018-04-05RSL_Types: Fix msg_disc of IPA PDCH ACT/DEACT + inverse templatesHarald Welte1-6/+55
The MDISC_IPACCESS is only used for the media (CRCX/MDCX/DLCX) related commands, not for the PDCH activation/deactivation. The latter uses normal MDISC_DCHAN. Also, add the inverse templates for PDCH actiation/deactivation, so we now have both receive and transmit template for each of the 6 related messages (activation, deactivation, plus each their ACK + NACK). Change-Id: I170a90391859d71e1f96a72205487cccba5b6ae7
2018-04-05bts: Add first five dynamic PDCH testsHarald Welte1-1/+193
NOTE: This needs changes to your osmo-bsc.cfg, as it will now need an osmocom-style dyn PDCH on TS4, and an IPA-style dny PDCH on TS3. --- a/ttcn3-bts-test/osmo-bsc.cfg +++ b/ttcn3-bts-test/osmo-bsc.cfg @@ -154,10 +154,10 @@ network phys_chan_config TCH/F hopping enabled 0 timeslot 3 - phys_chan_config TCH/F + phys_chan_config TCH/F_PDCH hopping enabled 0 timeslot 4 - phys_chan_config TCH/F + phys_chan_config TCH/F_TCH/H_PDCH hopping enabled 0 timeslot 5 phys_chan_config TCH/H Corresponding change in docker-playground.git has Change-Id I229000ce7609845fdf24cafe1f5ec2bfa3f507e8 Change-Id: I2a42531dc5555ab4772d538fda462343605b8feb
2018-04-04BTS_Tests: Prepare for ConnHdlr with PCU socket accessHarald Welte1-11/+23
For upcoming dynamic PDCH activation/deactivation tests we would like to access the PCU socket from ConnHdlr, rather than test_CT. Let's prepare for that. Change-Id: Ib8811dd87f737f326f7ed8f652aa6f552c3f05f8
2018-04-04PCUIF_Types: Fix bit-order of pdch_maskHarald Welte1-1/+1
The bit-string type should be indexed by timeslot number, i.e. the first element [0] should equal timeslot 0, the last one TS7 Change-Id: Ib89689abd998d4940895ba04f49eb140888bc73f
2018-04-04document the purpose of IP addresses used by GGSN testsStefan Sperling1-0/+19
The purpose of the various IP addresses used by our GGSN tests is not immediately clear. Add documentation based on the current status quo. Change-Id: I079efcff3dab09d71330625f5b661cd81e42bf38
2018-04-03bts: enable CTRL interface testsNeels Hofmeyr1-0/+5
Start and stop the CTRL interface and provide CTRL bind interface config modulepars. Possibly everyones' local setups may need modification to allow the ttcn3-bts-tests to reach osmo-bts-trx's CTRL port. WARNING: This commit has to be merged "at the same time" as I1ec86b157ebd46bf622a0ca51eba225f15c99fbb or the jenkins ttcn3-bts-tests will fail. a) if we want to set a modulepar mp_ctrl_ip here, it needs to be added to osmo-ttcn3-hacks. b) if we have the f_ipa_ctrl_start() in osmo-ttcn3-hacks, we need to configure the proper IP and bind interface here, or all tests will fail because f_ipa_ctrl_start() cannot connect. Change-Id: I502b4891e6720ae2fb251c03542f707880a6f728
2018-04-02bts: new f_rsl_transceive_ret(): like f_rsl_transceive() with return valueHarald Welte1-4/+13
Change-Id: I0cdc6b87566b9d101ecb12a77eac18a50689e088
2018-04-02RTP_Emulation: Fix RTCP handlingHarald Welte1-2/+2
Change-Id: I58e1d993921fadc457d7cd0348d4c9c2171b5748
2018-04-02L1CTL_PortType: Remove some logging, make it less chattyHarald Welte1-2/+0
Change-Id: I9e9160f53480713c9551a185478a6b58fa02a709
2018-04-02L1CTL_Types: dl_info is part of TRAFFIC_CONF, not just TRAFFIC_INDHarald Welte1-1/+2
Change-Id: I575b981d6ea59702927bbb2a2ae24b2e8652cc5d
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