summaryrefslogtreecommitdiffstats
path: root/src/vpp.am
AgeCommit message (Expand)AuthorFilesLines
2017-11-10Break up vpe.apiNeale Ranns1-2/+6
2017-09-07Allow individual stats API and introduce stats.apiKeith Burns (alagalah)1-5/+7
2017-07-17Fix unlinking of /dev/shm files.Dave Wallace1-3/+3
2017-06-24Rewrite vppctl in CDamjan Marion1-0/+4
2017-05-10Make reproducible build possibleMarco Varlese1-3/+7
2017-05-03Fix vnet unit testsFilip Tehlar1-1/+0
2017-03-30Clean up more Debian packaging symbol warningsDave Barach1-4/+0
2017-01-28Add files to CLEANFILES for robust make clean.Burt Silverman1-0/+2
2017-01-23binary-api debug CLI works with pluginsDave Barach1-1/+5
2017-01-16Define more dependencies between libsDamjan Marion1-4/+2
2017-01-11Makefile.am cleanupDamjan Marion1-34/+2
2017-01-08Multiple Autotools improvementsDamjan Marion1-13/+20
2017-01-03vlib: merge libvlib_unix.so into libvlib.soDamjan Marion1-1/+0
2017-01-03fix version.h generation for out-of-tree buildsDamjan Marion1-2/+2
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion1-1/+1
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+159
n> from framework import VppTestCase, VppTestRunner, running_extended_tests from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath import os class TestMpcap(VppTestCase): """ Mpcap Unit Test Cases """ @classmethod def setUpClass(cls): super(TestMpcap, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestMpcap, cls).tearDownClass() def setUp(self): super(TestMpcap, self).setUp() def tearDown(self): super(TestMpcap, self).tearDown() def test_mpcap_unittest(self): """ Mapped pcap file test """ cmds = ["packet-generator new {\n" " name mpcap\n" " limit 15\n" " size 128-128\n" " interface local0\n" " node mpcap-unittest\n" " data {\n" " IP6: 00:d0:2d:5e:86:85 -> 00:0d:ea:d0:00:00\n" " ICMP: db00::1 -> db00::2\n" " incrementing 30\n" " }\n", "trace add pg-input 15", "pa en", "show trace", "show error"] for cmd in cmds: self.logger.info(self.vapi.cli(cmd)) size = os.path.getsize("/tmp/mpcap_unittest.pcap") os.remove("/tmp/mpcap_unittest.pcap") if size != 2184: self.logger.critical("BUG: file size %d not 2184" % size) self.assertNotIn('WrongMPCAPFileSize', 'WrongMPCAPFileSize') if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)