From 5a3eb5d99ae2dc65f17730d0e0264d7610a5efad Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 1 Jan 2021 19:52:17 +0100 Subject: gprs_ns2: call python vty tests Also checks vty docs Change-Id: Ia8b77ae5bc3fed835dd1fc2cce0acbc41f199d54 --- tests/Makefile.am | 4 +++- tests/gb/osmo-ns-dummy.cfg | 0 tests/gb/osmoappdesc.py | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/gb/osmo-ns-dummy.cfg create mode 100644 tests/gb/osmoappdesc.py diff --git a/tests/Makefile.am b/tests/Makefile.am index 33b42df4..dbca9d72 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -320,7 +320,7 @@ EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE) \ gsm0808/gsm0808_test.ok gb/bssgp_fc_tests.err \ gb/bssgp_fc_tests.ok gb/bssgp_fc_tests.sh \ gb/gprs_bssgp_test.ok gb/gprs_ns_test.ok gea/gea_test.ok \ - gb/gprs_ns2_vty.vty \ + gb/gprs_ns2_vty.vty gb/osmoappdesc.py gb/osmo-ns-dummy.cfg \ gprs/gprs_test.ok kasumi/kasumi_test.ok \ msgfile/msgfile_test.ok msgfile/msgconfig.cfg \ logging/logging_test.ok logging/logging_test.err \ @@ -437,6 +437,8 @@ vty-test-ns2: -p 42042 \ -r "$(top_builddir)/utils/osmo-ns-dummy -p 42042" \ $(U) $(srcdir)/gb/gprs_ns2*.vty + osmotestvty.py -p $(abs_top_srcdir)/tests/gb -w $(abs_top_builddir)/tests/gb -v + osmotestconfig.py -p $(abs_top_srcdir)/tests/gb -w $(abs_top_builddir)/tests/gb -v vty-test-logging: osmo_verify_transcript_vty.py -v \ diff --git a/tests/gb/osmo-ns-dummy.cfg b/tests/gb/osmo-ns-dummy.cfg new file mode 100644 index 00000000..e69de29b diff --git a/tests/gb/osmoappdesc.py b/tests/gb/osmoappdesc.py new file mode 100644 index 00000000..323b94ef --- /dev/null +++ b/tests/gb/osmoappdesc.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 + +# (C) 2021 by sysmocom - s.f.m.c. GmbH +# Author: Alexander Couzens +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see + +app_configs = { + "osmo-ns-dummy": ["osmo-ns-dummy.cfg"], +} + +apps = [(45999, "../../utils/osmo-ns-dummy -p 45999", "OsmoNSdummy", "osmo-ns-dummy") + ] + +vty_command = ["../../utils/osmo-ns-dummy", "-p", "45999", "-c", "osmo-ns-dummy.cfg"] + +vty_app = apps[0] -- cgit v1.2.3