""" 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)
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)