tests: Add platform handling for FreeBSD
[vpp.git] / test / asf / test_counters.py
1 #!/usr/bin/env python3
2
3 from asfframework import VppAsfTestCase, tag_fixme_vpp_workers
4
5
6 @tag_fixme_vpp_workers
7 class TestCounters(VppAsfTestCase):
8     """Counters C Unit Tests"""
9
10     @classmethod
11     def setUpClass(cls):
12         super(TestCounters, cls).setUpClass()
13
14     @classmethod
15     def tearDownClass(cls):
16         super(TestCounters, cls).tearDownClass()
17
18     def setUp(self):
19         super(TestCounters, self).setUp()
20
21     def tearDown(self):
22         super(TestCounters, self).tearDown()
23
24     def test_counter_simple_expand(self):
25         """Simple Counter Expand"""
26         error = self.vapi.cli("test counter simple expand")
27
28         if error:
29             self.logger.critical(error)
30             self.assertNotIn("failed", error)
31
32     def test_counter_combined_expand(self):
33         """Combined Counter Expand"""
34         error = self.vapi.cli("test counter combined expand")
35
36         if error:
37             self.logger.critical(error)
38             self.assertNotIn("failed", error)