osmo-ttcn3-hacks/mgw
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
..
MGCP_Test.cfg MGCP_Test: fix config file include path 2018-03-16 13:46:40 +01:00
MGCP_Test.default remove *.default from [EXECUTE] in *.default files 2018-03-13 14:30:55 +01:00
MGCP_Test.ttcn mgw: Don't try to send packets while MDCX is underway 2018-08-01 17:55:54 +02:00
README.md Add README.md file for several suites 2018-06-14 18:55:36 +02:00
RTP_CodecPort_CtrlFunct.ttcn mgw: Add RTP_CodecPort throguh which we can send/receive RTP+RTCP 2017-11-18 13:28:07 +01:00
RTP_CodecPort_CtrlFunctDef.cc mgw: Add RTP_CodecPort throguh which we can send/receive RTP+RTCP 2017-11-18 13:28:07 +01:00
RTP_Endpoint.ttcn Stop tests after failures 2018-07-24 14:19:42 +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
regen_makefile.sh mgw: Add statistics to RTP_Emulation and link/build it in mgw test 2018-03-29 08:49:15 +02:00

README.md

== MGW_Test.ttcn

  • external interfaces
    • MGCP (emulates call agent)
    • RTP (stream source/sink)

{% dot mgw_tests.svg digraph G { rankdir=LR; MGW [label="IUT\nosmo-mgw",shape="box"]; ATS [label="ATS\nMGCP_Test.ttcn"];

ATS -> MGW [label="RTP"]; ATS -> MGW [label="MGCP"]; MGW -> ATS [label="RTP"]; } %}