osmo-ttcn3-hacks/msc
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_ConnectionHandler.ttcn bsc: inter-BSC HO: add TC_ho_out_of_this_bsc, TC_ho_into_this_bsc 2018-09-26 07:27:24 +00:00
MSC_Tests.cfg MSC_Tests: Add support for multiple BSC 2018-03-28 12:34:54 +02:00
MSC_Tests.default detect VTY TELNET port connection failures (attempt #2) 2018-07-27 17:20:38 +02:00
MSC_Tests.ttcn MSC_Tests: Extend timeout in TC_mo_setup_and_nothing 2018-10-22 20:23:26 +00:00
README.md Add README.md file for several suites 2018-06-14 18:55:36 +02:00
expected-results.xml update expected results 2018-09-06 14:13:34 +02:00
gen_links.sh Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling 2018-10-24 15:10:13 +02:00
osmo-msc.cfg ensure well-formed config files 2018-09-25 18:51:28 +00:00
osmo-stp.cfg ensure well-formed config files 2018-09-25 18:51:28 +00:00
regen_makefile.sh msc: import GSM 7-bit coding functions 2018-06-02 04:55:18 +07:00

README.md

MSC_Tests.ttcn

  • external interfaces
    • A: BSSAP/SCCP/M3UA (emulates BSC-side)
    • MNCC: MNCC/unix-domain (emulates ext. MNCC side)
    • MGW: MGCP (emulates MGW side)
    • GSUP (impllements HLR side)

{% dot msc_tests.svg digraph G { rankdir=LR; MSC [label="IUT\nosmo-msc",shape="box"]; ATS [label="ATS\nMSC_Tests.ttcn"];

ATS -> MSC [label="MNCC"]; ATS -> MSC [label="SMPP",style="dashed"]; ATS -> MSC [label="CTRL"]; ATS -> MSC [label="VTY"]; MSC -> ATS [label="GSUP"]; ATS -> STP [label="A BSSAP\nSCCP/M3UA"]; MSC -> STP [label="A BSSAP\nSCCP/M3UA"]; } %}