summaryrefslogtreecommitdiffstats
path: root/test/test_vlib.py
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2021-06-02 18:18:18 -0400
committerFlorin Coras <florin.coras@gmail.com>2021-06-08 15:23:15 +0000
commit4de5f9be88857197ddf17e3bff66318f78f4b6bb (patch)
treee927425be412f322e351c61598a321f9129af9c3 /test/test_vlib.py
parent0b0d28e9bf1ea078ce1a846d22e499d13eadd464 (diff)
vppinfra: pool_free_elts() now supports fixed-size pools
Test added to the unittest plugin / test_vlib.py Type: improvement Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I73445e57918347c102ff6f5e8c9ddb9bd96f1407
Diffstat (limited to 'test/test_vlib.py')
-rw-r--r--test/test_vlib.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_vlib.py b/test/test_vlib.py
index a9a5f6aeb89..31fb72990f0 100644
--- a/test/test_vlib.py
+++ b/test/test_vlib.py
@@ -204,6 +204,19 @@ class TestVlib(VppTestCase):
time.sleep(70)
self.logger.info("Reaper should be complete...")
+ def test_pool(self):
+ """ Fixed-size Pool Test """
+
+ cmds = ["test pool",
+ ]
+
+ for cmd in cmds:
+ r = self.vapi.cli_return_response(cmd)
+ if r.retval != 0:
+ if hasattr(r, 'reply'):
+ self.logger.info(cmd + " FAIL reply " + r.reply)
+ else:
+ self.logger.info(cmd + " FAIL retval " + str(r.retval))
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)