osmo-ttcn3-hacks/bsc
Daniel Willmann d93047434b Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling
This function can now be called from anywhere to try and safely shutdown
a testcase. It is not optimal as we can't call "all component.stop" from
outside the mtc, but without any proper and orderly shutdown handling of
all our emulation components I believe this is the best we can do.

To use it:

import from Misc_Helpers all;

in your module and then call

Misc_Helpers.f_shutdown(__BFILE__, __LINE__);

You can also pass the function a verdict and a message and it will take care
of calling setverdict, but beware of the following:

While setverdict would accept any number of arguments as log message
and convert them to a log string f_shutdown expects one charstring.
It's possible to use the log2str function to use the log arguments in
setverdict for f_shutdown, for example

setverdict(fail, "Template didn't match: ", tmpl_foo);
would become
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo));

Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267
2018-10-24 15:10:13 +02:00
..
BSC_Tests.cfg Add a TTCN3 module for IPA protocol testing 2018-10-08 17:56:36 +02:00
BSC_Tests.default detect VTY TELNET port connection failures (attempt #2) 2018-07-27 17:20:38 +02:00
BSC_Tests.ttcn add an IPA test which sends a chopped payload 2018-10-15 16:41:16 +02: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 MSC_ConnectionHandler: Use explicit AoIP flag 2018-10-10 14:23:40 +00: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: add 3 tests for inter-BSC HO outgoing failures 2018-10-11 17:21:47 +02:00
gen_links.sh Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling 2018-10-24 15:10:13 +02:00
osmo-bsc.cfg osmo-bsc.cfg: drop 'add' keyword from 'neighbor add' 2018-09-27 22:01:40 +02:00
osmo-stp.cfg ensure well-formed config files 2018-09-25 18:51:28 +00: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"]; } %}