test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiang An <xiangx.an@intel.com>
To: dts@dpdk.org
Cc: xiangx.an@intel.com
Subject: [dts][PATCH V2 2/2] tests/unit_tests_eal: modify pmd param for acl
Date: Tue, 23 Nov 2021 16:34:13 +0800	[thread overview]
Message-ID: <1637656453-236696-2-git-send-email-xiangx.an@intel.com> (raw)
In-Reply-To: <1637656453-236696-1-git-send-email-xiangx.an@intel.com>

While test with acl, whatever the dpdk's rx_mode is, always use "force-max-simd-bitwidth=0" as the launch parameter for dpdk.

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

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 8096183c..37756843 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -457,13 +457,14 @@ class TestUnitTestsEal(TestCase):
         """
         Run acl autotest.
         """
-
-        eal_params = self.dut.create_eal_parameters()
-        self.test_app_cmdline += "--no-pci"
+        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")
-- 
2.17.1


  reply	other threads:[~2021-11-23  8:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-23  8:34 [dts][PATCH V2 1/2] tests/l3fwdacl: " Xiang An
2021-11-23  8:34 ` Xiang An [this message]
2021-11-30  3:23   ` [dts][PATCH V2 2/2] tests/unit_tests_eal: " Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1637656453-236696-2-git-send-email-xiangx.an@intel.com \
    --to=xiangx.an@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).