diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-08-14 19:11:10 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-08-20 17:48:31 +0200 |
commit | a299d6511486dc384af920592f1ff8488e8fcf0c (patch) | |
tree | d7babaf8adf609c9c597ee34e33e2e87777396f2 /tests/sgsn | |
parent | a43fb7b8e5dda567b25e7110b999ee4adf9eaa41 (diff) |
Replace own timer infra with libosmocore osmo_tdef
VTY command "show timer" is also available now.
Change-Id: Ia0cf5f0a49737fbc419e2ccc86312d01c6e0056e
Diffstat (limited to 'tests/sgsn')
-rw-r--r-- | tests/sgsn/sgsn_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sgsn/sgsn_test.c b/tests/sgsn/sgsn_test.c index 23cb4fbc4..cc25d47ff 100644 --- a/tests/sgsn/sgsn_test.c +++ b/tests/sgsn/sgsn_test.c @@ -37,6 +37,7 @@ #include <osmocom/core/msgb.h> #include <osmocom/core/rate_ctr.h> #include <osmocom/core/utils.h> +#include <osmocom/vty/vty.h> #include <stdio.h> @@ -1646,6 +1647,10 @@ static struct log_info info = { .num_cat = ARRAY_SIZE(gprs_categories), }; +static struct vty_app_info vty_info = { + .name = "testSGSN", +}; + int main(int argc, char **argv) { void *osmo_sgsn_ctx; @@ -1659,6 +1664,8 @@ int main(int argc, char **argv) sgsn_rate_ctr_init(); sgsn_auth_init(sgsn); gprs_subscr_init(sgsn); + vty_init(&vty_info); + sgsn_vty_init(&sgsn->cfg); test_llme(); test_subscriber(); |