Osmocom test suites in TTCN-3 (Eclipse Titan) https://osmocom.org/projects/core-testing-infra
Go to file
Vadim Yanitskiy dd6d5d1baa library/PCUIF_Types.ttcn: inform RAW codec about PADDING in PCUIF_data
PADDING is one of the TITAN specific language extensions [1], which
tells the RAW codec that an encoded payload shall end at a boundary
fixed by a multiple of 'padding' unit bits counted from the
beginning of the message.

Let's use it for record 'PCUIF_data', where the fixed-size buffer
is located in between the other fields, so padding will be ignored
by the RAW coding after decoding:

  $HOST: dec_PCUIF_Message(): Decoded @PCUIF_Types.PCUIF_Message: {
    msg_type := PCU_IF_MSG_DATA_REQ (0),
    bts_nr := 0, spare := '0000'O,
    u := {
      data_req := {
        sapi := PCU_IF_SAPI_AGCH (2),
	len := 23,
	data := '2D063F100FE3673A096B0000C800300B2B2B2B2B2B2B2B',
	...
      }
    }
  }

As a result, we don't have to deal with padding manually and
can safely use 'decmatch' statement in the receive templates.

[1] usrguide/referenceguide/4-ttcn3_language_extensions.adoc

Change-Id: I5808954b5c67c3239e795e43ae77035152d359ef
2019-09-05 16:18:59 +02: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
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 bsc: Test suite for CBSP (Cell Broadcast Service Protocol) 2019-09-05 13:13:35 +02:00
bsc-nat bscnat: Add missing setverdict(pass) at the end 2019-06-13 17:16:46 +02:00
bts bts: Add test for ETWS Primary Notification via P1 Rest Octets 2019-09-05 12:44:13 +02:00
deps NAS_EPS: fix 'make deps' (no commit specified) 2019-08-18 19:42:23 +02:00
doc add ttcn3 test suites slides from OsmoDevCon 2018 2018-09-16 12:39:51 +02:00
ggsn_tests ggsn: Delete previously activated pdp ctx in *_interact() 2019-09-03 13:19:29 +02:00
hlr hlr: update expected-results.xml 2019-07-08 12:25:57 +00:00
lapdm move lapdm/L1CTL_Test.ttcn to bts/BTS_Tests_LAPDm.ttcn 2019-06-02 22:36:15 +02:00
library library/PCUIF_Types.ttcn: inform RAW codec about PADDING in PCUIF_data 2019-09-05 16:18:59 +02:00
mgw mgw: add module param mp_enable_conn_timeout_test 2019-06-28 11:04:48 +02:00
mme mme: Add missing link to DIAMETER_EncDec.cc from TITAN 2019-08-18 19:31:26 +02:00
msc MSC_Tests: do not send an SGsAP-MO-CSFB-INDICATION when testing MT-Call 2019-08-18 17:13:20 +00:00
pcu BSSGP_Emulation: add BssgpDecodeDepth 2019-09-02 09:15:33 +02:00
sccp lib/IPA_Emulation: Build IPA_CTRL conditionally based on define 2019-06-13 16:33:49 +02:00
selftest lib/IPA_Emulation: Build IPA_CTRL conditionally based on define 2019-06-13 16:33:49 +02:00
sgsn sgsn: Proper shutdown of RAN_Adapter components 2019-09-02 09:04:53 +00:00
sip lib/IPA_Emulation: Build IPA_CTRL conditionally based on define 2019-06-13 16:33:49 +02:00
sysinfo Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handling 2018-10-24 15:10:13 +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 Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00
compare-results.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +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 Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +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 start-testsuite.sh: Add commented-out section for using custom TITAN 2019-08-15 09:49:11 +00:00
ttcn3-tcpdump-start.sh Use dumpcap for ttcn3-tcpdump-*.sh if available 2019-03-19 10:28:46 +00:00
ttcn3-tcpdump-stop.sh Use dumpcap for ttcn3-tcpdump-*.sh if available 2019-03-19 10:28:46 +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