Osmocom test suites in TTCN-3 (Eclipse Titan) https://osmocom.org/projects/core-testing-infra
Go to file
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
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 Change addressing configuration to match libosmo-sigtran m3ua_test 2017-04-12 12:18:28 +02:00
bin Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
bsc bsc: stop all components before terminating testcase 2018-07-25 18:41:35 +00:00
bsc-nat Print more self-explanatory error message on bind/connect failures 2018-05-23 20:27:02 +02:00
bts BTS: fix length of frames generated by f_TC_chan_act_encr 2018-07-25 14:58:38 +00:00
deps move M3UA_Emulation dependency repository to commit R.2.A-2-g742cf02 2018-06-14 11:24:15 +00:00
ggsn_tests fix TC_pdp4_act_deact_with_separate_dns 2018-07-19 19:58:06 +02:00
hlr Stop tests after failures 2018-07-24 14:19:42 +02:00
lapdm LAPDm: Re-structure: Merge Frame type A+B which are really the same 2018-04-18 23:23:22 +02:00
library introduce a TTCN3 test suite for SCCP 2018-07-24 19:05:10 +00:00
mgw MGCP_Test: check payload type of received RTP packets 2018-07-24 19:01:27 +02:00
msc introduce a TTCN3 test suite for SCCP 2018-07-24 19:05:10 +00:00
pcu Stop tests after failures 2018-07-24 14:19:42 +02:00
sccp introduce a TTCN3 test suite for SCCP 2018-07-24 19:05:10 +00:00
selftest Stop tests after failures 2018-07-24 14:19:42 +02:00
sgsn Stop tests after failures 2018-07-24 14:19:42 +02:00
sip Stop tests after failures 2018-07-24 14:19:42 +02:00
sysinfo Stop tests after failures 2018-07-24 14:19:42 +02:00
.gitignore add compare-results.sh, call from start-testsuite.sh 2018-04-06 01:07:15 +02: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 introduce a TTCN3 test suite for SCCP 2018-07-24 19:05:10 +00:00
compare-results.sh add compare-results.sh, call from start-testsuite.sh 2018-04-06 01:07:15 +02:00
gen_links.sh.inc ignore results of .ttcnpp files 2018-03-16 18:25:58 +01:00
log_merge.sh log_merge.sh: Fix removal of log files 2018-03-20 22:21:57 +01:00
mask_expected_results.sh add mask_expected_results.sh 2018-04-11 19:32:01 +02:00
regen-makefile.sh support ccache to speed up ttcn3 test compilation 2018-04-06 16:58:46 +00: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 fix build: don't clean out expected-results.log: rename to *.xml 2018-04-11 19:29:18 +02:00
ttcn3-tcpdump-start.sh ttcn3-tcpdump-start.sh: reduce snaplen of tcpdump 2018-05-15 20:54:54 +00:00
ttcn3-tcpdump-stop.sh ttcn3-tcpdump-stop.sh: print colored verdict 2018-06-23 11:43:00 +00:00
update_expected_results_from_jenkins.sh add update_expected_results_from_jenkins.sh 2018-04-11 19:49:36 +02:00