Change in osmo-ttcn3-hacks[master]: bts: add first a5/4 tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon May 17 20:28:27 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24246 )

Change subject: bts: add first a5/4 tests
......................................................................

bts: add first a5/4 tests

Not much to do here, bts just passes the key.

Related: SYS#5324
Change-Id: I38e8a1cf15eb41a621b457b39024283a767c94be
---
M bts/BTS_Tests.ttcn
M bts/expected-results.xml
2 files changed, 12 insertions(+), 0 deletions(-)

Approvals:
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 8ae8eb2..eff1277 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -6706,6 +6706,11 @@
 	pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_3, f_rnd_octstring(8)));
 	f_testmatrix_each_chan(pars, refers(f_TC_chan_act_encr));
 }
+testcase TC_chan_act_a54() runs on test_CT {
+	var ConnHdlrPars pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN));
+	pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_4, f_rnd_octstring(16)));
+	f_testmatrix_each_chan(pars, refers(f_TC_chan_act_encr));
+}
 
 /* Test channel activation with A5/n right from the beginning and RSL MODE MODIFY
  which should break the en/decryption on purpose by supplying a new key that is unknown to the MS*/
@@ -6827,6 +6832,11 @@
 	pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_3, f_rnd_octstring(8)));
 	f_testmatrix_each_chan(pars, refers(f_TC_encr_cmd));
 }
+testcase TC_encr_cmd_a54() runs on test_CT {
+	var ConnHdlrPars pars := valueof(t_Pars(t_RslChanNr_Bm(1), ts_RSL_ChanMode_SIGN));
+	pars.encr := valueof(ts_RSL_IE_EncrInfo(RSL_ALG_ID_A5_4, f_rnd_octstring(16)));
+	f_testmatrix_each_chan(pars, refers(f_TC_encr_cmd));
+}
 
 private function f_assert_lapdm(octetstring enc, template LapdmFrame exp_match, charstring name := "") {
 	var LapdmFrame lf;
diff --git a/bts/expected-results.xml b/bts/expected-results.xml
index 6142e40..b81358d 100644
--- a/bts/expected-results.xml
+++ b/bts/expected-results.xml
@@ -124,9 +124,11 @@
   <testcase classname='BTS_Tests' name='TC_chan_act_a51' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_chan_act_a52' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_chan_act_a53' time='MASKED'/>
+  <testcase classname='BTS_Tests' name='TC_chan_act_a54' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_encr_cmd_a51' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_encr_cmd_a52' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_encr_cmd_a53' time='MASKED'/>
+  <testcase classname='BTS_Tests' name='TC_encr_cmd_a54' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_err_rep_wrong_mdisc' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_err_rep_wrong_msg_type' time='MASKED'/>
   <testcase classname='BTS_Tests' name='TC_err_rep_wrong_sequence' time='MASKED'/>

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/24246
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I38e8a1cf15eb41a621b457b39024283a767c94be
Gerrit-Change-Number: 24246
Gerrit-PatchSet: 3
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210517/24164cc3/attachment.htm>


More information about the gerrit-log mailing list