tests: Add platform handling for FreeBSD
[vpp.git] / test / asf / test_sparse_vec.py
1 #!/usr/bin/env python3
2
3 import unittest
4
5 from asfframework import VppAsfTestCase, VppTestRunner
6
7
8 class TestSparseVec(VppAsfTestCase):
9     """SparseVec Test Cases"""
10
11     @classmethod
12     def setUpClass(cls):
13         super(TestSparseVec, cls).setUpClass()
14
15     @classmethod
16     def tearDownClass(cls):
17         super(TestSparseVec, cls).tearDownClass()
18
19     def setUp(self):
20         super(TestSparseVec, self).setUp()
21
22     def tearDown(self):
23         super(TestSparseVec, self).tearDown()
24
25     def test_string_unittest(self):
26         """SparseVec unit tests"""
27         error = self.vapi.cli("test sparse_vec")
28         if error.find("failed") != -1:
29             self.logger.critical("FAILURE in the sparse_vec test")
30         self.assertNotIn("failed", error)
31
32
33 if __name__ == "__main__":
34     unittest.main(testRunner=VppTestRunner)