Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame] | 3 | from asfframework import VppAsfTestCase, tag_fixme_vpp_workers |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 4 | |
| 5 | |
Andrew Yourtchenko | 8dc0d48 | 2021-01-29 13:17:19 +0000 | [diff] [blame] | 6 | @tag_fixme_vpp_workers |
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame] | 7 | class TestCounters(VppAsfTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 8 | """Counters C Unit Tests""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 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): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 25 | """Simple Counter Expand""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 26 | error = self.vapi.cli("test counter simple expand") |
| 27 | |
| 28 | if error: |
| 29 | self.logger.critical(error) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 30 | self.assertNotIn("failed", error) |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 31 | |
| 32 | def test_counter_combined_expand(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 33 | """Combined Counter Expand""" |
Miklos Tirpak | 38fae31 | 2021-01-12 15:14:02 +0100 | [diff] [blame] | 34 | error = self.vapi.cli("test counter combined expand") |
| 35 | |
| 36 | if error: |
| 37 | self.logger.critical(error) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 38 | self.assertNotIn("failed", error) |