<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16463">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests: Add test_nodes.vty for VTY interface testing<br><br>Change-Id: I322e8857990f77246bcf4dbc0510f4b42527dc82<br>---<br>M tests/Makefile.am<br>A tests/test_nodes.vty<br>2 files changed, 68 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-e1-recorder refs/changes/63/16463/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/Makefile.am b/tests/Makefile.am</span><br><span>index 970df87..9f0552e 100644</span><br><span>--- a/tests/Makefile.am</span><br><span>+++ b/tests/Makefile.am</span><br><span>@@ -7,9 +7,6 @@</span><br><span> $(MAKE) vty-test</span><br><span> osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v</span><br><span> osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v</span><br><span style="color: hsl(0, 100%, 40%);">- $(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v</span><br><span style="color: hsl(0, 100%, 40%);">- $(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v</span><br><span style="color: hsl(0, 100%, 40%);">- rm -f $(top_builddir)/sms.db $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count</span><br><span> else</span><br><span> python-tests: $(BUILT_SOURCES)</span><br><span> echo "Not running python-based tests (determined at configure-time)"</span><br><span>diff --git a/tests/test_nodes.vty b/tests/test_nodes.vty</span><br><span>new file mode 100644</span><br><span>index 0000000..ec52843</span><br><span>--- /dev/null</span><br><span>+++ b/tests/test_nodes.vty</span><br><span>@@ -0,0 +1,68 @@</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder> show e1_line</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Line Number 0, Name , Driver dahdi</span><br><span style="color: hsl(120, 100%, 40%);">+DAHDI Span 1 non-existant</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Line Number 1, Name , Driver dahdi</span><br><span style="color: hsl(120, 100%, 40%);">+DAHDI Span 2 non-existant</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder> show e1_timeslot</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 1 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 2 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 3 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 4 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 5 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 6 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 7 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 8 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 9 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 10 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 11 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 12 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 13 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 14 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 15 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 16 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 17 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 18 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 19 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 20 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 21 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 22 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 23 of Line 0 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 1 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 2 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 3 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 4 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 5 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 6 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 7 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 8 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 9 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 10 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 11 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 12 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 13 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 14 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 15 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 16 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 17 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 18 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 19 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 20 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 21 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 22 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+E1 Timeslot 23 of Line 1 is Type RAW</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder> enable</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder# configure terminal</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder(config)# list</span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span style="color: hsl(120, 100%, 40%);">+ e1_input</span><br><span style="color: hsl(120, 100%, 40%);">+ recorder</span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder(config)# recorder</span><br><span style="color: hsl(120, 100%, 40%);">+osmo-e1-recorder(config-recorder)# list</span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span style="color: hsl(120, 100%, 40%);">+ line <0-255> ts <1-31> mode (none|hdlc|trau|raw)</span><br><span style="color: hsl(120, 100%, 40%);">+ line <0-255> mirror <0-255></span><br><span style="color: hsl(120, 100%, 40%);">+ no line <0-255> mirror</span><br><span style="color: hsl(120, 100%, 40%);">+ storage-path PATH</span><br><span style="color: hsl(120, 100%, 40%);">+ file-size-mb <1-9999999></span><br><span style="color: hsl(120, 100%, 40%);">+...</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16463">change 16463</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16463"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: osmo-e1-recorder </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I322e8857990f77246bcf4dbc0510f4b42527dc82 </div>
<div style="display:none"> Gerrit-Change-Number: 16463 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>