test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1 3/5] tests/runtime_vf_queue_number_kernel: replace eal whitelist option
Date: Fri, 24 Sep 2021 09:50:33 +0800	[thread overview]
Message-ID: <1632448235-137550-3-git-send-email-songx.jiale@intel.com> (raw)
In-Reply-To: <1632448235-137550-1-git-send-email-songx.jiale@intel.com>

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 test_plans/runtime_vf_queue_number_kernel_test_plan.rst | 10 +++++-----
 tests/TestSuite_runtime_vf_queue_number_kernel.py       |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
 mode change 100644 => 100755 test_plans/runtime_vf_queue_number_kernel_test_plan.rst
 mode change 100644 => 100755 tests/TestSuite_runtime_vf_queue_number_kernel.py

diff --git a/test_plans/runtime_vf_queue_number_kernel_test_plan.rst b/test_plans/runtime_vf_queue_number_kernel_test_plan.rst
old mode 100644
new mode 100755
index 57df29a..5c8bab3
--- a/test_plans/runtime_vf_queue_number_kernel_test_plan.rst
+++ b/test_plans/runtime_vf_queue_number_kernel_test_plan.rst
@@ -127,7 +127,7 @@ Test Case 1: set valid VF queue number in testpmd command-line options
 
 1. Start VF testpmd with "--rxq=[rxq] --txq=[txq]", and random valid values from 1 to 16, take 3 for example::
 
-     ./testpmd -c 0xf0 -n 4 -w 00:04.0 --file-prefix=test2 \
+     ./testpmd -c 0xf0 -n 4 -a 00:04.0 --file-prefix=test2 \
      --socket-mem 1024,1024 -- -i --rxq=3 --txq=3
 
 2. Configure vf forwarding prerequisits and start forwarding::
@@ -169,7 +169,7 @@ Test case 2: set invalid VF queue number in testpmd command-line options
 
 1. Start VF testpmd with "--rxq=0 --txq=0" ::
 
-     ./testpmd -c 0xf0 -n 4 -w 00:04.0 --file-prefix=test2 \
+     ./testpmd -c 0xf0 -n 4 -a 00:04.0 --file-prefix=test2 \
      --socket-mem 1024,1024 -- -i --rxq=0 --txq=0
 
    Verify testpmd exited with error as below::
@@ -178,7 +178,7 @@ Test case 2: set invalid VF queue number in testpmd command-line options
 
 2. Start VF testpmd with "--rxq=17 --txq=17" ::
 
-    ./testpmd -c 0xf0 -n 4 -w 00:04.0 --file-prefix=test2 \
+    ./testpmd -c 0xf0 -n 4 -a 00:04.0 --file-prefix=test2 \
     --socket-mem 1024,1024 -- -i --rxq=17 --txq=17
 
    Verify testpmd exited with error as below::
@@ -190,7 +190,7 @@ Test case 3: set valid VF queue number with testpmd function command
 
 1. Start VF testpmd without setting "rxq" and "txq"::
 
-    ./testpmd -c 0xf0 -n 4 -w 00:04.0 --socket-mem 1024,1024 -- -i
+    ./testpmd -c 0xf0 -n 4 -a 00:04.0 --socket-mem 1024,1024 -- -i
 
 2. Configure vf forwarding prerequisits and start forwarding::
 
@@ -211,7 +211,7 @@ Test case 4: set invalid VF queue number with testpmd function command
 
 1. Start VF testpmd without setting "rxq" and "txq"::
 
-     ./testpmd -c 0xf0 -n 4 -w 00:04.0 --socket-mem 1024,1024 -- -i
+     ./testpmd -c 0xf0 -n 4 -a 00:04.0 --socket-mem 1024,1024 -- -i
 
 2. Set rx queue number and tx queue number with 0 ::
 
diff --git a/tests/TestSuite_runtime_vf_queue_number_kernel.py b/tests/TestSuite_runtime_vf_queue_number_kernel.py
old mode 100644
new mode 100755
index 3daf234..23e08a7
--- a/tests/TestSuite_runtime_vf_queue_number_kernel.py
+++ b/tests/TestSuite_runtime_vf_queue_number_kernel.py
@@ -165,7 +165,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase):
         queue_nums = [1, random_queue, self.max_queue]
         for nr_queue in queue_nums:
             self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-            eal_param = '-w %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
+            eal_param = '-a %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
             tx_port = self.tester.get_local_port(self.dut_ports[0])
             tester_mac = self.tester.get_mac(tx_port)
             iface = self.tester.get_interface(tx_port)
@@ -209,7 +209,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase):
             self.vm0_testpmd = PmdOutput(self.vm_dut_0)
             self.vm_dut_0.session_secondary = self.vm_dut_0.new_session()
             app_name = self.vm_dut_0.apps_name['test-pmd']
-            cmd = app_name + "-c 0xf -n 1 -w %s -- -i --txq=%s --rxq=%s" % (self.vm_dut_0.vm_pci0, i, i)
+            cmd = app_name + "-c 0xf -n 1 -a %s -- -i --txq=%s --rxq=%s" % (self.vm_dut_0.vm_pci0, i, i)
             out = self.vm_dut_0.session_secondary.send_expect(cmd, "# ", 40)
             if i == 0:
                 self.verify('Either rx or tx queues should be non-zero' in out, "queue number can't be zero")
@@ -221,7 +221,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase):
         random_queue = random.randint(2, 15)
         queue_nums = [1, random_queue, self.max_queue]
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        eal_param = '-w %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
+        eal_param = '-a %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
         tx_port = self.tester.get_local_port(self.dut_ports[0])
         tester_mac = self.tester.get_mac(tx_port)
         iface = self.tester.get_interface(tx_port)
@@ -272,7 +272,7 @@ class TestRuntimeVfQueueNumberKernel(TestCase):
     def test_set_invalid_vf_queue_num_with_testpmd_command(self):
         invalid_queue_num = [0, 257]
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        eal_param = '-w %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
+        eal_param = '-a %(vf0)s' % {'vf0': self.vm_dut_0.vm_pci0}
         self.vm0_testpmd.start_testpmd("all", eal_param=eal_param)
         self.vm0_testpmd.execute_cmd('set promisc all off')
         self.vm0_testpmd.execute_cmd('set fwd mac')
-- 
1.8.3.1


  parent reply	other threads:[~2021-09-24  1:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24  1:50 [dts] [PATCH V1 1/5] tests/dcf_lifecycle: " Jiale Song
2021-09-24  1:50 ` [dts] [PATCH V1 2/5] tests/port_control: " Jiale Song
2021-09-24  1:50 ` Jiale Song [this message]
2021-09-24  1:50 ` [dts] [PATCH V1 4/5] tests/iavf_fdir: " Jiale Song
2021-09-24  1:50 ` [dts] [PATCH V1 5/5] tests/rteflow_priority: " Jiale Song

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=1632448235-137550-3-git-send-email-songx.jiale@intel.com \
    --to=songx.jiale@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).