tcp/session: add make tests
Change-Id: Icb93ab80c5a6432d7b2b698a47e8b612c6f06fbd Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:

committed by
Dave Barach

parent
19b1f6ae21
commit
3ea6ce235e
31
test/test_tcp.py
Normal file
31
test/test_tcp.py
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import unittest
|
||||
|
||||
from framework import VppTestCase, VppTestRunner
|
||||
|
||||
|
||||
class TestTCP(VppTestCase):
|
||||
""" TCP Test Case """
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestTCP, cls).setUpClass()
|
||||
|
||||
def setUp(self):
|
||||
super(TestTCP, self).setUp()
|
||||
self.vapi.session_enable_disable(is_enabled=1)
|
||||
|
||||
def tearDown(self):
|
||||
super(TestTCP, self).tearDown()
|
||||
|
||||
def test_tcp(self):
|
||||
""" TCP Unit Tests """
|
||||
error = self.vapi.cli("test tcp all")
|
||||
|
||||
if error:
|
||||
self.logger.critical(error)
|
||||
self.assertEqual(error.find("Failed"), -1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(testRunner=VppTestRunner)
|
Reference in New Issue
Block a user