X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_vlib.py;h=31fb72990f054f3343f07c823efb0f4edc4d12e2;hb=0dfad21e88a5af3d429af5b429f7a7b5a9af7c04;hp=64218eabbb3b4f51f0deebcf76376553bd2d9aae;hpb=8d8150262b00435c365a43c8f859584901736aff;p=vpp.git diff --git a/test/test_vlib.py b/test/test_vlib.py index 64218eabbb3..31fb72990f0 100644 --- a/test/test_vlib.py +++ b/test/test_vlib.py @@ -192,7 +192,8 @@ class TestVlib(VppTestCase): """ Private Binary API Segment Test (takes 70 seconds) """ vat_path = self.vpp_bin + '_api_test' - vat = pexpect.spawn(vat_path, ['socket-name', self.api_sock]) + vat = pexpect.spawn(vat_path, ['socket-name', + self.get_api_sock_path()]) vat.expect("vat# ", timeout=10) vat.sendline('sock_init_shm') vat.expect("vat# ", timeout=10) @@ -203,5 +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)