aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-04-29 21:28:15 +0200
committerDamjan Marion <damarion@cisco.com>2020-04-30 13:25:29 +0200
commit162330f25aeec09694fffaaa31ba9b318620eb9c (patch)
tree4c7a10aae7b2e5d54ef21260d08ad3671d44b061 /test
parentdc0ded7dd7a6b8ee68df25cd56666de804e55e64 (diff)
build: rework x86 CPU variants
Type: improvement Change-Id: Ief243f88e654e578ef9b8060fcf535b364aececb Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_node_variants.py55
1 files changed, 40 insertions, 15 deletions
diff --git a/test/test_node_variants.py b/test/test_node_variants.py
index 8298dc863a4..3632910e3cb 100644
--- a/test/test_node_variants.py
+++ b/test/test_node_variants.py
@@ -67,48 +67,73 @@ class TestNodeVariant(VppTestCase):
self.assertEqual(variant_info[0], variant)
-class TestAVX512Variant(TestNodeVariant):
- """ Test avx512 Node Variants """
+class TestICLVariant(TestNodeVariant):
+ """ Test icl Node Variants """
- VARIANT = "avx512"
- LINUX_VARIANT = VARIANT + "f"
+ VARIANT = "icl"
+ LINUX_VARIANT = "avx512_bitalg"
@classmethod
def setUpConstants(cls):
- super(TestAVX512Variant, cls).setUpConstants(cls.VARIANT)
+ super(TestICLVariant, cls).setUpConstants(cls.VARIANT)
@classmethod
def setUpClass(cls):
- super(TestAVX512Variant, cls).setUpClass()
+ super(TestICLVariant, cls).setUpClass()
@classmethod
def tearDownClass(cls):
- super(TestAVX512Variant, cls).tearDownClass()
+ super(TestICLVariant, cls).tearDownClass()
@unittest.skipUnless(skipVariant(LINUX_VARIANT),
VARIANT + " not a supported variant, skip.")
- def test_avx512(self):
+ def test_icl(self):
self.checkVariant(self.VARIANT)
-class TestAVX2Variant(TestNodeVariant):
+class TestSKXVariant(TestNodeVariant):
+ """ Test skx Node Variants """
+
+ VARIANT = "skx"
+ LINUX_VARIANT = "avx512f"
+
+ @classmethod
+ def setUpConstants(cls):
+ super(TestSKXVariant, cls).setUpConstants(cls.VARIANT)
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestSKXVariant, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestSKXVariant, cls).tearDownClass()
+
+ @unittest.skipUnless(skipVariant(LINUX_VARIANT),
+ VARIANT + " not a supported variant, skip.")
+ def test_skx(self):
+ self.checkVariant(self.VARIANT)
+
+
+class TestHSWVariant(TestNodeVariant):
""" Test avx2 Node Variants """
- VARIANT = "avx2"
+ VARIANT = "hsw"
+ LINUX_VARIANT = "avx2"
@classmethod
def setUpConstants(cls):
- super(TestAVX2Variant, cls).setUpConstants(cls.VARIANT)
+ super(TestHSWVariant, cls).setUpConstants(cls.VARIANT)
@classmethod
def setUpClass(cls):
- super(TestAVX2Variant, cls).setUpClass()
+ super(TestHSWVariant, cls).setUpClass()
@classmethod
def tearDownClass(cls):
- super(TestAVX2Variant, cls).tearDownClass()
+ super(TestHSWVariant, cls).tearDownClass()
- @unittest.skipUnless(skipVariant(VARIANT),
+ @unittest.skipUnless(skipVariant(LINUX_VARIANT),
VARIANT + " not a supported variant, skip.")
- def test_avx2(self):
+ def test_hsw(self):
self.checkVariant(self.VARIANT)