pespin has uploaded this change for review.
stp: Define IUT default T(beat) in mp_t_beat_sec_default
Several tests expect to know this value from the IUT in order to test
related features. Since it will be used in more places in follow-up
patches, move it so the information only needs to be configured once.
Change-Id: Ic518e0d35f377fef85344177b630eb8599ec22d0
---
M stp/STP_Tests_Common.ttcn
M stp/STP_Tests_IPA.ttcn
M stp/STP_Tests_M3UA.ttcn
3 files changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/58/43158/1
diff --git a/stp/STP_Tests_Common.ttcn b/stp/STP_Tests_Common.ttcn
index 0a0a436..16b6406 100644
--- a/stp/STP_Tests_Common.ttcn
+++ b/stp/STP_Tests_Common.ttcn
@@ -28,6 +28,11 @@
import from SCCPasp_Types all;
import from SCCP_Emulation all;
+modulepar {
+ /* Default T(beat) configured at the IUT ASP, in seconds */
+ integer mp_t_beat_sec_default := 30;
+}
+
function f_SCCP_UDT(template (value) SCCP_PAR_Address calling := ts_SccpAddr_GT('5678'H),
template (value) SCCP_PAR_Address called := ts_SccpAddr_GT('1234'H),
template (omit) octetstring data := omit) return octetstring
diff --git a/stp/STP_Tests_IPA.ttcn b/stp/STP_Tests_IPA.ttcn
index 431bdd4..7225949 100644
--- a/stp/STP_Tests_IPA.ttcn
+++ b/stp/STP_Tests_IPA.ttcn
@@ -849,7 +849,7 @@
}
/* return to default value: */
- f_vty_cs7_ipa_asp_cmd(g_ipa_configs[0], "timer xua beat 30");
+ f_vty_cs7_ipa_asp_cmd(g_ipa_configs[0], "timer xua beat " & int2str(STP_Tests_Common.mp_t_beat_sec_default));
}
/* Test the IUT sends heartbeat procedure when needed. */
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index ac9cc25..7debed6 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -598,7 +598,7 @@
}
/* return to default value: */
- f_vty_cs7_asp_cmd(g_m3ua_configs[0], "timer xua beat 30");
+ f_vty_cs7_asp_cmd(g_m3ua_configs[0], "timer xua beat " & int2str(STP_Tests_Common.mp_t_beat_sec_default));
f_clear_m3ua();
}
To view, visit change 43158. To unsubscribe, or for help writing mail filters, visit settings.