summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-06-12 13:45:59 +0200
committerAlexander Couzens <lynxis@fe80.eu>2018-06-12 13:51:14 +0200
commit98aa59e0643a31acb6eabed4146e7ad7709823bf (patch)
treeca056da7ea74917eeced0b63304df5336005af38 /library
parent02496257f61037cb0a199f72534d341672d30a38 (diff)
Osmocom_VTY_Functions: move f_vty_transceive_match from HLR to this library
f_vty_transceive_match will be used by future SGSN tests. Change-Id: Ia69ab6d5639c2e10059f88c8cc97463820cb72e6
Diffstat (limited to 'library')
-rw-r--r--library/Osmocom_VTY_Functions.ttcn8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/Osmocom_VTY_Functions.ttcn b/library/Osmocom_VTY_Functions.ttcn
index 2b74694..f118865 100644
--- a/library/Osmocom_VTY_Functions.ttcn
+++ b/library/Osmocom_VTY_Functions.ttcn
@@ -128,5 +128,13 @@ function f_vty_config(TELNETasp_PT pt, charstring config_node, charstring cmd)
f_vty_config2(pt, {config_node}, cmd);
}
+function f_vty_transceive_match(TELNETasp_PT pt, charstring cmd, template charstring exp_ret) {
+ var charstring ret := f_vty_transceive_ret(pt, cmd);
+ if (not match(ret, exp_ret)) {
+ setverdict(fail, "Non-matching VTY response: ", ret);
+ self.stop;
+ }
+}
+
}