[dts] [PATCH] tests/unit_tests_eal: modify ACL test to enhnace test coverage

Konstantin Ananyev konstantin.ananyev at intel.com
Tue May 18 17:39:26 CEST 2021


Modify test_acl() to run with " --force-max-simd-bitwidth=0".
That will ensure validation of all supported on given HW ACL algorithms.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
---
 test_plans/unit_tests_eal_test_plan.rst | 4 +++-
 tests/TestSuite_unit_tests_eal.py       | 5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/test_plans/unit_tests_eal_test_plan.rst b/test_plans/unit_tests_eal_test_plan.rst
index 7b2cf627..4cb9d6b9 100644
--- a/test_plans/unit_tests_eal_test_plan.rst
+++ b/test_plans/unit_tests_eal_test_plan.rst
@@ -308,7 +308,9 @@ To Be Filled
 
 Acl
 ===
-To Be Filled
+Performs ACL functional validation.
+If DPDK version permits, then start with " --force-max-simd-bitwidth=0" EAL parameter.
+That will ensure validation of all supported on given HW ACL algorithms.
 
 Link_bonding
 ============
diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index f799b681..e5703f1d 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -460,6 +460,11 @@ class TestUnitTestsEal(TestCase):
         Run acl autotest.
         """
 
+        eal_params = self.dut.create_eal_parameters()
+        self.test_app_cmdline += "--no-pci"
+
+        if self.dut.dpdk_version >= '20.11.0':
+            self.test_app_cmdline += " --force-max-simd-bitwidth=0"
         self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("acl_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
-- 
2.26.3



More information about the dts mailing list