osmo-ttcn3-hacks/bsc
Daniel Willmann 637ef6c87f bsc: stop all components before terminating testcase
It seems mtc.stop() alone does not really solve the race conditions when
shutting down components. The error happens when messages are sent on
ports which are no longer connected since the receiving component has
terminated.
Some web search
http://www.ttcn-3.org/TTCN3UCAsia2007/Presentations/TTCN3%20UC%202007%20Concurrent%20TTCN.pdf
suggested that one should stop all components before
calling mtc.stop (slide 38). Slide 33 also mentions the difference
between .stop and .kill. Kill removes the port connections while stop
does not. And I think looking at the logs when the testcase teminates
(through mtc.stop or otherwise) it is internally calling kill on all the
components. So hopefully stopping all components and then stopping the mtc
will fix this nasty issue.

I verified locally that the situation improves between commits now when
running BSC_Tests.TC_paging_imsi_nochan_all 20 times in a loop and
otherwise generating load on the system. It reliably failed before this
patch and I wasn't able to get it to fail with it.

Change-Id: I398883492919ceabcf94b5cc2361c63ec772d9d5
2018-07-25 18:41:35 +00:00
..
BSC_Tests.cfg add regression test for paging with unknown MCC/MNC 2018-03-20 15:51:00 +01:00
BSC_Tests.default *.default: change logging filemask from ERROR | WARNING to += PARALLEL | VERDICTOP 2018-06-12 13:51:14 +02:00
BSC_Tests.ttcn bsc: stop all components before terminating testcase 2018-07-25 18:41:35 +00:00
BSC_Tests_LCLS.ttcn BSC_Tests_LCLS: try call legs with different codec/rate 2018-07-10 15:33:53 +02:00
MSC_ConnectionHandler.ttcn Stop tests after failures 2018-07-24 14:19:42 +02:00
README.md Add README.md file for several suites 2018-06-14 18:55:36 +02:00
README.txt BSC_Tests: Update readme + source code comments 2017-12-17 19:48:03 +01:00
expected-results.xml BSC_Tests_LCLS: try call legs with different codec/rate 2018-07-10 15:33:53 +02:00
gen_links.sh introduce a TTCN3 test suite for SCCP 2018-07-24 19:05:10 +00:00
osmo-bsc.cfg bsc: Enable LCLS in osmo-bsc.cfg 2018-06-03 15:15:25 +00:00
osmo-stp.cfg Add osmo-bsc.cfg and osmo-stp.cfg for this test case 2017-12-11 19:53:35 +01:00
regen_makefile.sh BSSAP_Adapter: Introduce transport over IPA/SCCPlite 2018-04-17 21:49:05 +02:00

README.md

BSC_Tests.ttcn

  • external interfaces
    • A-bis side: RSL (emulates BTS-side client)
    • A-side: BSSAP/SCCP/M3UA (emulates MSC-side)
    • MGW side: MGCP (emulates MGW side)

{% dot bsc_tests.svg digraph G { rankdir=LR; { rank=same; BTS; STP; }; BSC [label="IUT\nosmo-bsc",shape="box"]; ATS [label="ATS\nBSC_Tests.ttcn"]; BTS [label="osmo-bts-omldummy\nOML only"];

BTS -> BSC [label="A-bis OML"]; ATS -> BSC [label="A-bis RSL"]; ATS -> BSC [label="CTRL"]; ATS -> BSC [label="VTY"]; ATS -> STP [label="A BSSAP\nSCCP/M3UA"]; BSC -> STP [label="A BSSAP\nSCCP/M3UA"]; } %}