91f8a09220
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> |
||
---|---|---|
.. | ||
GPRS_Context.ttcn | ||
GPRS_TBF.ttcn | ||
PCUIF_Components.ttcn | ||
PCU_Tests.cfg | ||
PCU_Tests.default | ||
PCU_Tests.ttcn | ||
PCU_Tests_NS.ttcn | ||
PCU_Tests_SNS.cfg | ||
PCU_Tests_SNS.ttcn | ||
PCU_selftest.ttcn | ||
README.md | ||
SGSN_Components.ttcn | ||
expected-results.xml | ||
gen_links.sh | ||
osmo-pcu-sns.cfg | ||
osmo-pcu.cfg | ||
regen_makefile.sh |
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"]; } %}