test suite reviews and discussions
 help / color / mirror / Atom feed
From: Dukai Yuan <dukaix.yuan@intel.com>
To: dts@dpdk.org
Cc: Dukai Yuan <dukaix.yuan@intel.com>
Subject: [dts][PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add new cases script code
Date: Tue, 10 Jan 2023 16:43:01 +0800	[thread overview]
Message-ID: <20230110084301.13292-1-dukaix.yuan@intel.com> (raw)

1.Add 3 virtio11 new cases cover mergeable path normal_path and vector_rx path.
2.Optimize the script description is consistent with test plan.

Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
 ...Suite_pvp_qemu_multi_paths_port_restart.py | 70 +++++++++++++++----
 1 file changed, 57 insertions(+), 13 deletions(-)

diff --git a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
index f07b698f..64bb4436 100644
--- a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
+++ b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
@@ -6,7 +6,7 @@
 DPDK Test suite.
 Benchmark pvp qemu test with 3 RX/TX PATHs,
 includes Mergeable, Normal, Vector_RX.
-Cover virtio 1.0 and virtio 0.95.Also cover
+Cover virtio 1.1 1.0 and virtio 0.95.Also cover
 port restart test with each path
 """
 import re
@@ -109,7 +109,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
         self.vm_dut.send_expect("set fwd mac", "testpmd> ", 30)
         self.vm_dut.send_expect("start", "testpmd> ", 30)
 
-    def start_one_vm(self, modem=0, mergeable=0):
+    def start_one_vm(self, modem=0, mergeable=0, packed=0):
         """
         start qemu
         """
@@ -118,22 +118,30 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
         vm_params["driver"] = "vhost-user"
         vm_params["opt_path"] = "./vhost-net"
         vm_params["opt_mac"] = self.virtio1_mac
-        if modem == 1 and mergeable == 0:
+        if modem == 1 and mergeable == 0 and packed == 0:
             vm_params[
                 "opt_settings"
             ] = "disable-modern=false,mrg_rxbuf=off,rx_queue_size=1024,tx_queue_size=1024"
-        elif modem == 1 and mergeable == 1:
+        elif modem == 1 and mergeable == 1 and packed == 0:
             vm_params[
                 "opt_settings"
             ] = "disable-modern=false,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024"
-        elif modem == 0 and mergeable == 0:
+        elif modem == 0 and mergeable == 0 and packed == 0:
             vm_params[
                 "opt_settings"
             ] = "disable-modern=true,mrg_rxbuf=off,rx_queue_size=1024,tx_queue_size=1024"
-        elif modem == 0 and mergeable == 1:
+        elif modem == 0 and mergeable == 1 and packed == 0:
             vm_params[
                 "opt_settings"
             ] = "disable-modern=true,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024"
+        elif modem == 1 and mergeable == 0 and packed == 1:
+            vm_params[
+                "opt_settings"
+            ] = "disable-modern=false,mrg_rxbuf=off,packed=on,rx_queue_size=1024,tx_queue_size=1024"
+        elif modem == 1 and mergeable == 1 and packed == 1:
+            vm_params[
+                "opt_settings"
+            ] = "disable-modern=false,mrg_rxbuf=on,packed=on,rx_queue_size=1024,tx_queue_size=1024"
         self.vm.set_vm_device(**vm_params)
 
         try:
@@ -275,7 +283,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_mergeable_mac(self):
         """
-        performance for [frame_sizes] and restart port on virtio 0.95 mergeable path
+        Test Case 1: pvp test with virtio 0.95 mergeable path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=0, mergeable=1)
@@ -287,7 +295,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_normal_mac(self):
         """
-        performance for [frame_sizes] and restart port ob virtio0.95 normal path
+        Test Case 2: pvp test with virtio 0.95 normal path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=0, mergeable=0)
@@ -299,7 +307,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_vector_rx_mac(self):
         """
-        performance for [frame_sizes] and restart port on virtio0.95 vector_rx
+        Test Case 3: pvp test with virtio 0.95 vrctor_rx path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=0, mergeable=0)
@@ -311,7 +319,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_modern_mergeable_mac(self):
         """
-        performance for [frame_sizes] and restart port on virtio1.0 mergeable path
+        Test Case 4: pvp test with virtio 1.0 mergeable path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=1, mergeable=1)
@@ -323,7 +331,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_modern_normal_path(self):
         """
-        performance for [frame_sizes] and restart port on virito1.0 normal path
+        Test Case 5: pvp test with virtio 1.0 normal path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=1, mergeable=0)
@@ -335,7 +343,7 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
 
     def test_perf_pvp_qemu_modern_vector_rx_mac(self):
         """
-        performance for frame_sizes and restart port on virtio1.0 vector rx
+        Test Case 6: pvp test with virtio 1.0 vrctor_rx path
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=1, mergeable=0)
@@ -345,9 +353,45 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
         self.result_table_print()
         self.vm.stop()
 
+    def test_perf_pvp_qemu_with_virtio_11_mergeable_mac(self):
+        """
+        Test Case 7: pvp test with virtio 1.1 mergeable path
+        """
+        self.start_vhost_testpmd()
+        self.start_one_vm(modem=1, mergeable=1, packed=1)
+        self.start_vm_testpmd(path="mergeable")
+        self.send_and_verify("virtio1.1 mergeable")
+        self.close_all_testpmd()
+        self.result_table_print()
+        self.vm.stop()
+
+    def test_perf_pvp_qemu_with_virtio_11_normal_path(self):
+        """
+        Test Case 8: pvp test with virtio 1.1 normal path
+        """
+        self.start_vhost_testpmd()
+        self.start_one_vm(modem=1, mergeable=0, packed=1)
+        self.start_vm_testpmd(path="normal")
+        self.send_and_verify("virtio1.1 normal")
+        self.close_all_testpmd()
+        self.result_table_print()
+        self.vm.stop()
+
+    def test_perf_pvp_qemu_with_virtio_11_vector_rx_mac(self):
+        """
+        Test Case 9: pvp test with virtio 1.1 vrctor_rx path
+        """
+        self.start_vhost_testpmd()
+        self.start_one_vm(modem=1, mergeable=0, packed=1)
+        self.start_vm_testpmd(path="vector_rx")
+        self.send_and_verify("virtio1.1 vector_rx")
+        self.close_all_testpmd()
+        self.result_table_print()
+        self.vm.stop()
+
     def test_perf_pvp_qemu_modern_mergeable_mac_restart_100_times(self):
         """
-        restart port 100 times on virtio1.0 mergeable path
+        Test Case 10: pvp test with virtio 1.0 mergeable path restart 100 times
         """
         self.start_vhost_testpmd()
         self.start_one_vm(modem=1, mergeable=1)
-- 
2.17.1


                 reply	other threads:[~2023-01-10  8:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20230110084301.13292-1-dukaix.yuan@intel.com \
    --to=dukaix.yuan@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).