aboutsummaryrefslogtreecommitdiffstats
path: root/sysinfo/Test.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-14 18:25:59 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-14 18:25:59 +0200
commit56db5fd00e991d44de63c61f0b916f4f85962ce8 (patch)
tree641c96ee5150d32e087a1c2514e896bd7f1e3f4a /sysinfo/Test.ttcn
parent3eff2c5be53c6044375927338a5eab6fbe380d36 (diff)
initial code about System Information decoding
the idea is to evolve this into something that can match on the GSMTAP that's generated by OsmoBTS in order to validate the SI generation / broadcasting of OsmoBTS+OsmoBSC
Diffstat (limited to 'sysinfo/Test.ttcn')
-rw-r--r--sysinfo/Test.ttcn28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysinfo/Test.ttcn b/sysinfo/Test.ttcn
new file mode 100644
index 00000000..b3506c05
--- /dev/null
+++ b/sysinfo/Test.ttcn
@@ -0,0 +1,28 @@
+module Test {
+ import from GSM_SystemInformation all;
+
+ const octetstring si1 := '5506198fb38000000000000000000000000000e504002b'O;
+ const octetstring si2 := '59061a00000000000000000000000000000000ffe50400'O;
+ const octetstring si3 := '49061b000062f22404d2490301275d40e50400392b2b2b'O;
+ const octetstring si4 := '31061c62f22404d25d40e504002b2b2b2b2b2b2b2b2b2b'O;
+
+ type component dummy_CT {
+ };
+
+ testcase TC_si1() runs on dummy_CT {
+ var SystemInformationHeader hdr := {
+ l2_plen := valueof(t_L2Pseudolength(21)),
+ skip_indicator := 0,
+ rr_protocol_discriminator := 6,
+ message_type := '19'O
+ };
+ log("SI: ", dec_SystemInformation(si1));
+ log("SI: ", dec_SystemInformation(si2));
+ log("SI: ", dec_SystemInformation(si3));
+ log("SI: ", dec_SystemInformation(si4));
+ }
+
+ control {
+ execute(TC_si1());
+ }
+}