| from framework import VppTestCase, running_extended_tests, \ |
| @unittest.skipUnless(running_extended_tests(), "part of extended tests") |
| class VOMTestCase(VppTestCase): |
| """ VPP Object Model Test """ |
| """ run C++ VOM tests """ |
| built_root = os.getenv(var, None) |
| self.assertIsNotNone(built_root, |
| "Environment variable `%s' not set" % var) |
| executable = "%s/vom_test/vom_test" % built_root |
| [executable, "vpp object model", self.shm_prefix], self.logger) |
| self.logger.info("Worker result is `%s'" % worker.result) |
| if worker.result is None: |
| "Timeout! Worker did not finish in %ss" % timeout) |
| os.killpg(os.getpgid(worker.process.pid), signal.SIGTERM) |
| raise Exception("Couldn't kill worker-spawned process") |
| "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) |