summaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/vlib_api_cli.c
AgeCommit message (Expand)AuthorFilesLines
2021-06-16api: remove custom dumpFilip Tehlar1-32/+3
2020-12-14misc: move to new pool_foreach macrosDamjan Marion1-3/+3
2020-05-15misc: removed executable bits from source filesRay Kinsella1-0/+0
2020-04-22api: 'api trace' CLI consumes a line of inputNeale Ranns1-16/+22
2020-04-22misc: asan: do not poison memory after munmap()Benoît Ganne1-5/+0
2020-02-12api: do not truncate api dump file sizeBenoît Ganne1-1/+1
2020-01-23api: mark api_trace_command_fn thread-safeDave Barach1-1/+20
2019-12-17misc: address sanitizer: fix instrumentationBenoît Ganne1-0/+8
2019-12-10api: multiple connections per processDave Barach1-10/+10
2019-09-16api: autogenerate api trace print/endianOle Troan1-1/+2
2019-08-08api: vppapitrace JSON/API trace converterOle Troan1-28/+33
2019-06-12infra: fix minor memory leak in "api trace..."Dave Barach1-5/+8
2019-04-05make the output of "show api dump file <filename> compare-current" doxygen-fr...Andrew Yourtchenko1-5/+9
2019-04-05vlib: fix "foo_msg" and "foo_msg_reply" in API message table triggering the "...Andrew Yourtchenko1-2/+2
2019-03-21api trace: cli bug fixezkexma1-2/+2
2018-10-23c11 safe string handling supportDave Barach1-1/+1
2018-06-26Fix api trace replay of handler to pass vm parameterJohn Lo1-2/+2
2018-04-18typo fix: UNKOWN -> UNKNOWNAndrey "Zed" Zaikin1-1/+1
2018-01-09api: refactor vlibmemoryFlorin Coras1-0/+1209
r = Worker([executable, "vapi client", self.get_api_segment_prefix()], self.logger) worker.start() timeout = 60 worker.join(timeout) self.logger.info("Worker result is `%s'" % worker.result) error = False if worker.result is None: try: error = True self.logger.error( "Timeout! Worker did not finish in %ss" % timeout) os.killpg(os.getpgid(worker.process.pid), signal.SIGTERM) worker.join() except: self.logger.debug("Couldn't kill worker-spawned process") raise if error: raise Exception( "Timeout! Worker did not finish in %ss" % timeout) self.assert_equal(worker.result, 0, "Binary test return code") def test_vapi_cpp(self): """ run C++ VAPI tests """ executable = f"{config.vpp_build_dir}/vpp/bin/vapi_cpp_test" worker = Worker([executable, "vapi client", self.get_api_segment_prefix()], self.logger) worker.start() timeout = 120 worker.join(timeout) self.logger.info("Worker result is `%s'" % worker.result) error = False if worker.result is None: try: error = True self.logger.error( "Timeout! Worker did not finish in %ss" % timeout) os.killpg(os.getpgid(worker.process.pid), signal.SIGTERM) worker.join() except: raise Exception("Couldn't kill worker-spawned process") if error: raise Exception( "Timeout! Worker did not finish in %ss" % timeout) self.assert_equal(worker.result, 0, "Binary test return code") if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)