tests: Add test_nodes.vty for VTY interface testing

Change-Id: I322e8857990f77246bcf4dbc0510f4b42527dc82
This commit is contained in:
Harald Welte 2019-12-04 11:43:30 +01:00
parent de9e646193
commit a6d1211414
2 changed files with 71 additions and 3 deletions

View File

@ -2,14 +2,14 @@ DISTCLEANFILES = \
atconfig \
$(NULL)
EXTRA_DIST = \
test_nodes.vty
if ENABLE_EXT_TESTS
python-tests: $(BUILT_SOURCES)
$(MAKE) vty-test
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
$(srcdir)/vty_test_runner.py -w $(abs_top_builddir) -v
$(srcdir)/ctrl_test_runner.py -w $(abs_top_builddir) -v
rm -f $(top_builddir)/sms.db $(top_builddir)/gsn_restart $(top_builddir)/gtphub_restart_count
else
python-tests: $(BUILT_SOURCES)
echo "Not running python-based tests (determined at configure-time)"

68
tests/test_nodes.vty Normal file
View File

@ -0,0 +1,68 @@
osmo-e1-recorder> show e1_line
E1 Line Number 0, Name , Driver dahdi
DAHDI Span 1 non-existant
E1 Line Number 1, Name , Driver dahdi
DAHDI Span 2 non-existant
osmo-e1-recorder> show e1_timeslot
E1 Timeslot 1 of Line 0 is Type RAW
E1 Timeslot 2 of Line 0 is Type RAW
E1 Timeslot 3 of Line 0 is Type RAW
E1 Timeslot 4 of Line 0 is Type RAW
E1 Timeslot 5 of Line 0 is Type RAW
E1 Timeslot 6 of Line 0 is Type RAW
E1 Timeslot 7 of Line 0 is Type RAW
E1 Timeslot 8 of Line 0 is Type RAW
E1 Timeslot 9 of Line 0 is Type RAW
E1 Timeslot 10 of Line 0 is Type RAW
E1 Timeslot 11 of Line 0 is Type RAW
E1 Timeslot 12 of Line 0 is Type RAW
E1 Timeslot 13 of Line 0 is Type RAW
E1 Timeslot 14 of Line 0 is Type RAW
E1 Timeslot 15 of Line 0 is Type RAW
E1 Timeslot 16 of Line 0 is Type RAW
E1 Timeslot 17 of Line 0 is Type RAW
E1 Timeslot 18 of Line 0 is Type RAW
E1 Timeslot 19 of Line 0 is Type RAW
E1 Timeslot 20 of Line 0 is Type RAW
E1 Timeslot 21 of Line 0 is Type RAW
E1 Timeslot 22 of Line 0 is Type RAW
E1 Timeslot 23 of Line 0 is Type RAW
E1 Timeslot 1 of Line 1 is Type RAW
E1 Timeslot 2 of Line 1 is Type RAW
E1 Timeslot 3 of Line 1 is Type RAW
E1 Timeslot 4 of Line 1 is Type RAW
E1 Timeslot 5 of Line 1 is Type RAW
E1 Timeslot 6 of Line 1 is Type RAW
E1 Timeslot 7 of Line 1 is Type RAW
E1 Timeslot 8 of Line 1 is Type RAW
E1 Timeslot 9 of Line 1 is Type RAW
E1 Timeslot 10 of Line 1 is Type RAW
E1 Timeslot 11 of Line 1 is Type RAW
E1 Timeslot 12 of Line 1 is Type RAW
E1 Timeslot 13 of Line 1 is Type RAW
E1 Timeslot 14 of Line 1 is Type RAW
E1 Timeslot 15 of Line 1 is Type RAW
E1 Timeslot 16 of Line 1 is Type RAW
E1 Timeslot 17 of Line 1 is Type RAW
E1 Timeslot 18 of Line 1 is Type RAW
E1 Timeslot 19 of Line 1 is Type RAW
E1 Timeslot 20 of Line 1 is Type RAW
E1 Timeslot 21 of Line 1 is Type RAW
E1 Timeslot 22 of Line 1 is Type RAW
E1 Timeslot 23 of Line 1 is Type RAW
osmo-e1-recorder> enable
osmo-e1-recorder# configure terminal
osmo-e1-recorder(config)# list
...
e1_input
recorder
...
osmo-e1-recorder(config)# recorder
osmo-e1-recorder(config-recorder)# list
...
line <0-255> ts <1-31> mode (none|hdlc|trau|raw)
line <0-255> mirror <0-255>
no line <0-255> mirror
storage-path PATH
file-size-mb <1-9999999>
...