aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-12-02 15:52:46 +0100
committerOliver Smith <osmith@sysmocom.de>2019-12-03 11:45:03 +0100
commit33d3786e1c3911a8f72fd20dee2a6f168e095310 (patch)
tree4fca0f494ad7214c241f241b4bf5cc347c0486bf
parenta05e5940f1a1aafb4709633b8eaf391da4033cba (diff)
tests: add second VTY reference
-rw-r--r--tests/Makefile.am7
-rw-r--r--tests/test2-vty-reference.xml38
-rw-r--r--tests/vty-test2/test2_vty_additions.xml2
-rw-r--r--tests/vty-test2/test2_vty_reference.xml17
4 files changed, 62 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6eba2c5..641b35c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,7 +1,10 @@
OSMO_GSM_MANUALS_DIR = $(top_srcdir)
EXTRA_DIST = test-usermanual-docinfo.xml \
test-vty-reference.xml \
- vty
+ vty \
+ test2-vty-reference.xml \
+ vty-test2 \
+ $(NULL)
# Do not install any of the test pdfs
OSMO_GSM_MANUALS_NO_INSTALL = 1
@@ -26,7 +29,7 @@ CLEAN_FILES = $(ASCIIDOC)
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc
-VTY_REFERENCE = test-vty-reference.xml
+VTY_REFERENCE = test-vty-reference.xml test2-vty-reference.xml
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc
diff --git a/tests/test2-vty-reference.xml b/tests/test2-vty-reference.xml
new file mode 100644
index 0000000..b8fea23
--- /dev/null
+++ b/tests/test2-vty-reference.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ex:ts=2:sw=42sts=2:et
+ -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
+-->
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML 5.0//EN"
+"http://docbook.org/xml/5.0/dtd/docbook.dtd" [
+<!ENTITY chapter-vty SYSTEM "./common/chapters/vty.xml" >
+<!ENTITY sections-vty SYSTEM "generated/docbook_test2-vty-reference.xml" >
+]>
+
+<book>
+ <info>
+ <revhistory>
+ <revision>
+ <revnumber>v1</revnumber>
+ <date>2nd December 2019</date>
+ <authorinitials>os</authorinitials>
+ <revremark>Initial</revremark>
+ </revision>
+ </revhistory>
+
+ <title>Test VTY Reference No. 2</title>
+
+ <copyright>
+ <year>2019</year>
+ </copyright>
+
+ <legalnotice>
+ <para>This work is copyrighted by <orgname>sysmocom - s.f.m.c. GmbH</orgname>. All rights reserved.
+ </para>
+ </legalnotice>
+ </info>
+
+ <!-- Main chapters-->
+ &chapter-vty;
+</book>
+
diff --git a/tests/vty-test2/test2_vty_additions.xml b/tests/vty-test2/test2_vty_additions.xml
new file mode 100644
index 0000000..a4c675e
--- /dev/null
+++ b/tests/vty-test2/test2_vty_additions.xml
@@ -0,0 +1,2 @@
+<vtydoc xmlns='urn:osmocom:xml:libosmocore:vty:doc:1.0'>
+</vtydoc>
diff --git a/tests/vty-test2/test2_vty_reference.xml b/tests/vty-test2/test2_vty_reference.xml
new file mode 100644
index 0000000..e5674e7
--- /dev/null
+++ b/tests/vty-test2/test2_vty_reference.xml
@@ -0,0 +1,17 @@
+<vtydoc xmlns='urn:osmocom:xml:libosmocore:vty:doc:1.0'>
+ <node id='_common_cmds_'>
+ <name>Common Commands</name>
+ <description>These commands are available on all VTY nodes. They are listed here only once, to unclutter the VTY reference.</description>
+ <command id='help'>
+ <params>
+ <param name='help' doc='Description of the interactive help system' />
+ </params>
+ </command>
+ <command id='list'>
+ <params>
+ <param name='list' doc='Print command list' />
+ </params>
+ </command>
+ <!-- (...) -->
+ </node>
+</vtydoc>