Change in libosmocore[master]: gprs_ns2: call python vty tests

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri Jan 1 18:54:10 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21915 )


Change subject: gprs_ns2: call python vty tests
......................................................................

gprs_ns2: call python vty tests

Also checks vty docs

Change-Id: Ia8b77ae5bc3fed835dd1fc2cce0acbc41f199d54
---
M tests/Makefile.am
A tests/gb/osmo-ns-dummy.cfg
A tests/gb/osmoappdesc.py
3 files changed, 29 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/15/21915/1

diff --git a/tests/Makefile.am b/tests/Makefile.am
index ea9cd1a..17dafd8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -436,6 +436,8 @@
 		-p 42042 \
 		-r "$(top_builddir)/utils/osmo-ns-dummy -p 42042" \
 		$(U) $(srcdir)/gprs/gprs_ns2*.vty
+	cd $(abs_top_srcdir)/tests/gb/ && osmotestconfig.py -p . -w . -v
+	cd $(abs_top_srcdir)/tests/gb/ && osmotestvty.py -p . -w . -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 0000000..e69de29
--- /dev/null
+++ b/tests/gb/osmo-ns-dummy.cfg
diff --git a/tests/gb/osmoappdesc.py b/tests/gb/osmoappdesc.py
new file mode 100644
index 0000000..323b94e
--- /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 <lynxis at fe80.eu>
+# 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 <http://www.gnu.org/licenses/>
+
+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]

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21915
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ia8b77ae5bc3fed835dd1fc2cce0acbc41f199d54
Gerrit-Change-Number: 21915
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210101/c027d3e9/attachment.htm>


More information about the gerrit-log mailing list