[V2,4/4] tests/unit_tests_eal: modify code to adapt avx512

Message ID 1636008699-16970-4-git-send-email-xiangx.an@intel.com (mailing list archive)
State Changes Requested
Headers
Series [V2,1/4] tests/kernelpf_iavf: modify code to adapt avx512 |

Checks

Context Check Description
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Xiang An Nov. 4, 2021, 6:51 a.m. UTC
  Modify code to adapt rxmod avx512.

Signed-off-by: Xiang An <xiangx.an@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
  

Comments

Tu, Lijuan Nov. 5, 2021, 1:22 p.m. UTC | #1
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xiang An
> Sent: 2021年11月4日 14:52
> To: dts@dpdk.org
> Cc: An, XiangX <xiangx.an@intel.com>
> Subject: [dts] [PATCH V2 4/4] tests/unit_tests_eal: modify code to adapt avx512
> 
> Modify code to adapt rxmod avx512.
> 
> Signed-off-by: Xiang An <xiangx.an@intel.com>
> ---
>  tests/TestSuite_unit_tests_eal.py | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
> index 8096183..9b44132 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -38,7 +38,7 @@ EAL autotest.
> 
>  import framework.utils as utils
>  from framework.test_case import TestCase
> -
> +from framework.settings import load_global_setting,
> DPDK_RXMODE_SETTING
>  #
>  #
>  # Test class.
> @@ -457,13 +457,15 @@ class TestUnitTestsEal(TestCase):
>          """
>          Run acl autotest.
>          """
> -
> -        eal_params = self.dut.create_eal_parameters()
> -        self.test_app_cmdline += "--no-pci"
> +        default_cores = '1S/4C/1T'

default_cores defined but not used.
  

Patch

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 8096183..9b44132 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -38,7 +38,7 @@  EAL autotest.
 
 import framework.utils as utils
 from framework.test_case import TestCase
-
+from framework.settings import load_global_setting, DPDK_RXMODE_SETTING
 #
 #
 # Test class.
@@ -457,13 +457,15 @@  class TestUnitTestsEal(TestCase):
         """
         Run acl autotest.
         """
-
-        eal_params = self.dut.create_eal_parameters()
-        self.test_app_cmdline += "--no-pci"
+        default_cores = '1S/4C/1T'
+        eal_params = self.dut.create_eal_parameters(other_eal_param='force-max-simd-bitwidth')
+        app_name = self.dut.apps_name['test']
+        test_app_cmdline = app_name + eal_params
+        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)
+            test_app_cmdline += " --force-max-simd-bitwidth=0"
+        self.dut.send_expect(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", "# ")
         self.verify("Test OK" in out, "Test failed")