summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-12-09 10:45:47 -0500
committerFlorin Coras <florin.coras@gmail.com>2019-12-09 21:19:47 +0000
commit6b3f25caff262b536a5449ac5461dd041c92a655 (patch)
tree89b0440162675b6ec4650cc30ec6908be84abb18 /test
parent5224b5cbd51ed48d1d2ce2a412998d8a944c480b (diff)
vlib: improve test coverage
Add tests. Remove unused rule-based parser code. Type: test Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I3ca3a9dd9da8ee8f3a47004c98f2f5644db10057
Diffstat (limited to 'test')
-rw-r--r--test/test_vlib.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/test_vlib.py b/test/test_vlib.py
index aa58667aa70..eedfb2fff89 100644
--- a/test/test_vlib.py
+++ b/test/test_vlib.py
@@ -100,6 +100,7 @@ class TestVlib(VppTestCase):
"set node function ethernet-input default",
"set node function ethernet-input bozo",
"set node function ethernet-input",
+ "show \t",
]
for cmd in cmds:
@@ -126,10 +127,35 @@ class TestVlib(VppTestCase):
" incrementing 30\n"
" }\n"
"}\n",
+ "elog trace",
+ "elog trace enable",
+ "elog trace api cli barrier",
"pa en",
+ "show interface bogus",
+ "elog trace disable api cli barrier",
+ "elog trace circuit-node ethernet-input",
+ "elog trace circuit-node ethernet-input disable",
"clear interfaces",
"test vlib",
+ "test vlib2",
+ "show memory api-segment stats-segment main-heap verbose",
+ "leak-check { show memory }",
+ "show cpu",
+ "memory-trace main-heap",
+ "memory-trace main-heap api-segment stats-segment",
+ "leak-check { show version }",
+ "show version ?",
+ "comment { show version }",
+ "uncomment { show version }",
+ "show memory main-heap",
+ "show memory bogus",
+ "choices",
+ "test heap-validate",
+ "memory-trace main-heap disable",
"show buffers",
+ "show eve",
+ "show help",
+ "show ip ",
]
for cmd in cmds: