bsc: add tests for AMR 'start-mode auto'

These tests will fail until osmo-bsc
I577ff590d7588fd7e3ee4846c7955ab8f84cf2b1

Related: OS#4868
Change-Id: Iec74b940009c8ec78a6da5c00615259e2edc1781
changes/71/21371/4
Neels Hofmeyr 2 years ago committed by neels
parent a6ab821704
commit 21863560a2
  1. 17
      bsc/BSC_Tests.ttcn

@ -3711,7 +3711,8 @@ testcase TC_assignment_codec_amr_h() runs on test_CT {
f_vty_amr_start_mode_restore(false);
}
function f_TC_assignment_codec_amr(boolean fr, octetstring mrconf, bitstring s8_s0, bitstring exp_s8_s0)
function f_TC_assignment_codec_amr(boolean fr, octetstring mrconf, bitstring s8_s0, bitstring exp_s8_s0,
charstring start_mode := "1")
runs on test_CT {
var TestHdlrParams pars := f_gen_test_hdlr_pars();
@ -3737,7 +3738,7 @@ runs on test_CT {
f_init(1, true);
f_allow_amr_rate_4_75k_5_90k_7_40k_12_20k();
f_vty_amr_start_mode_set(fr, "1");
f_vty_amr_start_mode_set(fr, start_mode);
f_sleep(1.0);
vc_conn := f_start_handler(refers(f_TC_assignment_codec), pars);
@ -3886,6 +3887,16 @@ testcase TC_assignment_codec_amr_h_S7() runs on test_CT {
f_shutdown_helper();
}
testcase TC_assignment_codec_amr_f_start_mode_auto() runs on test_CT {
f_TC_assignment_codec_amr(true, '209520882208'O, '11111111'B, '00000010'B,
start_mode := "auto");
}
testcase TC_assignment_codec_amr_h_start_mode_auto() runs on test_CT {
f_TC_assignment_codec_amr(false, '2015208820'O, '10010101'B, '00010101'B,
start_mode := "auto");
}
private function f_disable_all_tch_f() runs on test_CT {
f_vty_transceive(BSCVTY, "bts 0 trx 0 timeslot 1 sub-slot 0 borken");
f_vty_transceive(BSCVTY, "bts 0 trx 0 timeslot 2 sub-slot 0 borken");
@ -8402,6 +8413,8 @@ control {
execute( TC_assignment_codec_amr_f_zero() );
execute( TC_assignment_codec_amr_f_unsupp() );
execute( TC_assignment_codec_amr_h_S7() );
execute( TC_assignment_codec_amr_f_start_mode_auto() );
execute( TC_assignment_codec_amr_h_start_mode_auto() );
}
execute( TC_assignment_codec_fr_exhausted_req_hr() );

Loading…
Cancel
Save