Osmocom test suites in TTCN-3 (Eclipse Titan) https://osmocom.org/projects/core-testing-infra
Go to file
Vadim Yanitskiy 91f8a09220 PCU: introduce f_shutdown() to ensure proper tear down
Most of existing test cases are built on top of the PCU interface
abstraction components (see PCUIF_Components.ttcn). This means
that during the test case execution, additional components are
running in parallel, among with the MTC (Main Test Component).

When a test case terminates, either normally or due to an error,
it may happen that the virtual BTS component is stopped before
the associated TDMA clock generator. In this situation, sending
a clock indication towards the stopped BTS component would
lead to a dynamic test case error.

Let's take the process of tear down under control, and ensure that
the clock generator is stopped first. To achieve that, every test
case needs to call f_shutdown() in case of an error, as well as
in case of the normal termination.

Note we cannot use the existing f_shutdown() from Misc_Helpers,
because doing 'all component.stop' does not gurantee that the
clock generator is stopped first, and I experienced at least
one DTE while trying to integrate it.

Change-Id: I6a859687d9605cc08c51ff44d946c279b79bedfa
Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
2020-05-07 02:43:55 +07:00
COMMON initial chekin of code received by Ericsson on 20170410 2017-04-12 12:13:44 +02:00
ROHC_CNL113426_LATEST import Ericsson NS, ISUP, ROHC and SNDCP modules for TITAN 2017-07-25 08:23:52 +02:00
SCCP_Test WIP: gen_links.sh + regen_makefile.sh for make SCCP_Tests 2020-01-12 11:48:58 +01:00
asn-test HNBAP, RUA and RANAP protocol codecs 2019-04-25 20:07:11 +00:00
bin Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
bsc Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
bsc-nat Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
bts BTS: verify presence of GPRS Indicator in SI4 Rest Octets 2020-05-06 02:26:03 +07:00
ccid pps exchange after power on 2019-12-02 23:29:46 +00:00
deps Add GTPv2_Emulation component 2020-04-21 22:57:31 +02:00
doc add ttcn3 test suites slides from OsmoDevCon 2018 2018-09-16 12:39:51 +02:00
ggsn_tests ggsn: Terminate immediately on pipong altstep failure 2020-03-03 16:48:34 +01:00
hlr hlr: add TC_MSLookup_mDNS_service_other_proxy 2020-02-06 16:21:47 +00:00
lapdm Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
library library: cosmetic: fix misleading comment in RSL_Types.ttcn 2020-05-06 15:22:53 +07:00
mgw mgw: use library version of RTP_CodecPort_CtrlFunct 2020-04-01 10:18:12 +00:00
mme Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
msc Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
pcu PCU: introduce f_shutdown() to ensure proper tear down 2020-05-07 02:43:55 +07:00
pgw pgw: Add support for PCRF emulation (CCR/CCA) 2020-04-26 22:08:34 +02:00
remsim remsim: Add RemsimServer_Tests.TC_slotmap_add_out_of_range() 2020-02-20 18:48:22 +01:00
sccp sccp: Introduce test TC_it_avoids_tiar 2020-01-21 14:22:20 +01:00
selftest Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
sgsn Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
simtrace Initial SIMTRACE testsuite 2020-04-01 10:16:02 +00:00
sip sip: bump MNCC version sent to sipcon to 6 2019-11-28 20:57:10 +01:00
stp stp: Remove unneded copy of ConvertASPAddressToEncodedAddress_itu() 2020-01-20 18:18:45 +01:00
sysinfo Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
.gitignore gitignore: Add *.d files 2020-03-03 16:48:34 +01:00
.gitreview Add git-review config 2017-12-13 11:15:48 +01:00
Common.cfg Make Console Loggign a bit more verbose: add all USER "log()" 2018-03-18 14:16:37 +01:00
Makefile pgw: Initial testsuite for a PGW (Packet Gateway in the EPC) 2020-04-21 22:57:31 +02:00
compare-results.py re-implement compare-results.sh as compare-results.py 2019-11-23 07:59:07 +00:00
gen_links.sh.inc Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00
log_merge.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00
mask_expected_results.sh add mask_expected_results.sh 2018-04-11 19:32:01 +02:00
regen-makefile.sh ttcn3_makefilegen: Generate gnu make files (we use Linux...) 2020-03-02 14:25:47 +01:00
rmlinks.sh Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
start-testsuite.sh re-implement compare-results.sh as compare-results.py 2019-11-23 07:59:07 +00:00
ttcn3-tcpdump-start.sh Create dummy gsmtap sink with netcat 2019-10-04 16:09:27 +00:00
ttcn3-tcpdump-stop.sh Create dummy gsmtap sink with netcat 2019-10-04 16:09:27 +00:00
update_expected_results_from_jenkins.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00