osmo-ttcn3-hacks/pcu
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
..
GPRS_Context.ttcn pcu: Rename 'gprs_gb/Test' tp 'pcu/PCU_Tests' to align with other suites 2018-03-12 14:23:57 +00:00
GPRS_TBF.ttcn Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
PCUIF_Components.ttcn PCU: introduce f_shutdown() to ensure proper tear down 2020-05-07 02:43:55 +07:00
PCU_Tests.cfg pcu: Rename PCU*RAW* content to PCU 2020-04-29 18:33:48 +02:00
PCU_Tests.default PCU: drop meaningless 'udpReuseAddress' option 2020-05-06 15:35:00 +07:00
PCU_Tests.ttcn PCU: introduce f_shutdown() to ensure proper tear down 2020-05-07 02:43:55 +07:00
PCU_Tests_NS.ttcn pcu: Rename PCU*RAW* content to PCU 2020-04-29 18:33:48 +02:00
PCU_Tests_SNS.cfg pcu: Rename PCU*RAW* content to PCU 2020-04-29 18:33:48 +02:00
PCU_Tests_SNS.ttcn pcu: Rename PCU*RAW* content to PCU 2020-04-29 18:33:48 +02:00
PCU_selftest.ttcn RLCMAC_EncDec.cc: Fix egprs data block encode alignment 2020-05-01 15:54:17 +02:00
README.md pcu: Rename PCU*RAW* content to PCU 2020-04-29 18:33:48 +02:00
SGSN_Components.ttcn pcu: Get rid of PCU_Tests.ttcn tests 2020-04-29 18:33:14 +02:00
expected-results.xml start implementing the TC_paging() PCU test 2018-11-19 11:10:22 +00:00
gen_links.sh Split templates in RLCMAC_{CSN1_}Types into their own _Templates file 2020-04-29 19:07:38 +02:00
osmo-pcu-sns.cfg pcu: add configs for running without docker 2019-08-30 13:21:54 +02:00
osmo-pcu.cfg pcu: add configs for running without docker 2019-08-30 13:21:54 +02:00
regen_makefile.sh pcu: Get rid of PCU_Tests.ttcn tests 2020-04-29 18:33:14 +02:00

README.md

PCU_Tests.ttcn

  • external interfaces
    • Gb (emulates SGSN side NS/BSSGP)
    • unix pcu socket (emulates BTS)
    • VTY

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

PCU -> ATS [label="Gb"]; PCU -> ATS [label="pcu_sock"]; ATS -> PCU [label="VTY"]; } %}