From f9d10e7dd54400baaed360f5c2ead0de5ea05287 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 2 Jun 2021 18:18:18 -0400 Subject: 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 Change-Id: I73445e57918347c102ff6f5e8c9ddb9bd96f1407 (cherry picked from commit 4de5f9be88857197ddf17e3bff66318f78f4b6bb) --- test/test_vlib.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') 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) -- cgit 1.2.3-korg