svm: move fifo tests to a separate file
Change-Id: Iac9ac9f5a6873aae1882316af4f6c919788a0cef Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:

committed by
Dave Barach

parent
a2661649b5
commit
f682facb27
@ -32,5 +32,6 @@ add_vpp_plugin(unittest
|
||||
string_test.c
|
||||
tcp_test.c
|
||||
sparse_vec_test.c
|
||||
svm_fifo_test.c
|
||||
unittest.c
|
||||
)
|
||||
|
1197
src/plugins/unittest/svm_fifo_test.c
Normal file
1197
src/plugins/unittest/svm_fifo_test.c
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -116,5 +116,31 @@ class TestSessionUnitTests(VppTestCase):
|
||||
super(TestSessionUnitTests, self).tearDown()
|
||||
self.vapi.session_enable_disable(is_enabled=0)
|
||||
|
||||
|
||||
class TestSvmFifoUnitTests(VppTestCase):
|
||||
""" SVM Fifo Unit Tests Case """
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestSvmFifoUnitTests, cls).setUpClass()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
super(TestSvmFifoUnitTests, cls).tearDownClass()
|
||||
|
||||
def setUp(self):
|
||||
super(TestSvmFifoUnitTests, self).setUp()
|
||||
|
||||
def test_svm_fifo(self):
|
||||
""" SVM Fifo Unit Tests """
|
||||
error = self.vapi.cli("test svm fifo all")
|
||||
|
||||
if error:
|
||||
self.logger.critical(error)
|
||||
self.assertNotIn("failed", error)
|
||||
|
||||
def tearDown(self):
|
||||
super(TestSvmFifoUnitTests, self).tearDown()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(testRunner=VppTestRunner)
|
||||
|
Reference in New Issue
Block a user