diff options
author | Harald Welte <laforge@osmocom.org> | 2020-06-23 22:04:02 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-10-09 11:44:20 +0200 |
commit | 5f1b6c5357eef946566bac01a927c5758841047e (patch) | |
tree | 648ad97b80b68360b84165657512edee372b8249 /stp/STP_Tests_M3UA.ttcn | |
parent | 12d19b81a73634848f36ada2111131035afda26c (diff) |
stp: Add TC_rapid_init_shutdown()laforge/bvc-reset
Change-Id: I3d37cd80acfaf042b60f1590ee12a0e26d8853b5
Related: OS#4625
Diffstat (limited to 'stp/STP_Tests_M3UA.ttcn')
-rw-r--r-- | stp/STP_Tests_M3UA.ttcn | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn index 22272f34..5f456591 100644 --- a/stp/STP_Tests_M3UA.ttcn +++ b/stp/STP_Tests_M3UA.ttcn @@ -685,7 +685,40 @@ testcase TC_clnt_asp_to_sg() runs on RAW_M3UA_CT { f_clear_m3ua(); } +/* test a rapid sequence of several INIT/SHUTDOWN before sending the first ASPUP. OS#4625 */ +private function f_TC_rapid_init_shutdown() runs on RAW_M3UA_CT { + //f_init_common(); + //activate(as_m3ua_sctp()); + //map(self:M3UA[0], system:M3UA_CODEC_PT); + //f_M3UA_connect(0); + + /* close one M3UA connection before ever doing anything on it */ + log("close 1"); + f_M3UA_close(0); + + /* re-open and close again */ + log("open 2"); + f_M3UA_connect(0); + log("close 2"); + f_M3UA_close(0); + + /* third re-open, now we want to send an ASPUP */ + log("open 3"); + f_M3UA_connect(0); + log("asp_up"); + f_M3UA_asp_up(0); + log("end"); +} + +testcase TC_rapid_init_shutdown() runs on RAW_M3UA_CT { + log("init"); + f_init_m3ua(); + var integer i; + for (i := 0; i < 1; i := i + 1) { + f_TC_rapid_init_shutdown(); + } +} control { /* M3UA Tests */ @@ -721,6 +754,9 @@ control { /* put this one last as it changes the stp side config */ execute( TC_clnt_asp_act_tmt_loadshare() ); + + /* put this one last as it may crash (older versions of) OsmoSTP */ + execute( TC_rapid_init_shutdown() ); } |