summaryrefslogtreecommitdiffstats
path: root/src/configure.ac
AgeCommit message (Expand)AuthorFilesLines
2017-05-15Add GTP-U plugin. VPP-694Hongjun Ni1-0/+1
2017-03-29Bugfixing and documentation for SRv6Pablo Camarillo1-1/+0
2017-03-22Update master revision to 17.07v17.07-rc0Ole Troan1-1/+1
2017-03-22Add memif - packet memory interface for intra-host communicationDamjan Marion1-0/+1
2017-03-15Python API: Change from cPython to CFFI.Ole Troan1-0/+9
2017-03-10Retire vpp_liteDamjan Marion1-2/+2
2017-03-04Evolving SRv6 (Segment Routing for IPv6)Pablo Camarillo1-0/+1
2017-03-03Fixed PLUGIN_DISABLE bugPablo Camarillo1-1/+1
2017-01-27dpdk: rework cryptodev ipsec build and setupSergio Gonzalez Monroy1-2/+2
2017-01-26Change automake python macro to get python pathTomofumi Hayashi1-0/+1
2017-01-16Add --without-libssl configure parameterDamjan Marion1-4/+2
2017-01-03Do not require external vppapigen when not cross-compilingDamjan Marion1-0/+16
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion1-5/+37
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+195
teral.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
#!/usr/bin/env python
""" VAPI test """

import unittest
import os
import signal
from framework import VppTestCase, running_extended_tests, \
    VppTestRunner, Worker


@unittest.skipUnless(running_extended_tests, "part of extended tests")
class VOMTestCase(VppTestCase):
    """ VPP Object Model Test """

    def test_vom_cpp(self):
        """ run C++ VOM tests """
        var = "TEST_DIR"
        built_root = os.getenv(var, None)
        self.assertIsNotNone(built_root,
                             "Environment variable `%s' not set" % var)
        executable = "%s/build/vom_test/vom_test" % built_root
        worker = Worker(
            [executable, "vpp object model", self.shm_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)