test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V2 2/2] tests/pvp_share_lib: add testcase3 to test Intel E800 seriers nic
Date: Wed,  8 Mar 2023 13:31:25 +0800	[thread overview]
Message-ID: <20230308053125.307683-1-weix.ling@intel.com> (raw)

Add testcase3 to test Intel E800 seriers nic and detele the unused 
prepare_share_lib_env() and step.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_pvp_share_lib.py | 53 ++++++++++++++++++++++++++------
 1 file changed, 44 insertions(+), 9 deletions(-)

diff --git a/tests/TestSuite_pvp_share_lib.py b/tests/TestSuite_pvp_share_lib.py
index afead4c2..5d3eb26f 100644
--- a/tests/TestSuite_pvp_share_lib.py
+++ b/tests/TestSuite_pvp_share_lib.py
@@ -34,7 +34,6 @@ class TestPVPShareLib(TestCase):
         self.core_list_vhost_user = self.core_list[2:4]
         self.mem_channels = self.dut.get_memory_channels()
         self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
-        self.prepare_share_lib_env()
 
         self.out_path = "/tmp"
         out = self.tester.send_expect("ls -d %s" % self.out_path, "# ")
@@ -71,11 +70,6 @@ class TestPVPShareLib(TestCase):
         self.table_header.append("% linerate")
         self.result_table_create(self.table_header)
 
-    def prepare_share_lib_env(self):
-        self.dut.build_install_dpdk(
-            self.dut.target, extra_options="-Dc_args=-DRTE_BUILD_SHARED_LIB"
-        )
-
     def restore_env(self):
         self.dut.build_install_dpdk(self.dut.target)
 
@@ -166,21 +160,62 @@ class TestPVPShareLib(TestCase):
         self.dut.close_session(self.vhost_user)
         self.dut.close_session(self.virtio_user)
 
-    def test_perf_pvp_share_lib(self):
+    def test_perf_pvp_share_lib_for_intel_82599_series(self):
         """
-        Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599/700 Series
+        Test Case 1: Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599 Series
         """
         self.verify(
             self.nic
             in [
                 "IXGBE_10G-82599_SFP",
+                "IXGBE_10G-82599_T3_LOM",
+                "IXGBE_10G-82599_SFP_SF_QP",
+            ],
+            "the nic not support this case: %s" % self.running_case,
+        )
+        self.start_testpmd_as_vhost(driver="ixgbe")
+        self.start_testpmd_as_virtio()
+        self.send_and_verify()
+        self.result_table_print()
+        self.close_all_apps()
+
+    def test_perf_pvp_share_lib_for_intel_700_series(self):
+        """
+        Test Case 2: Vhost/virtio-user pvp share lib test with Intel® Ethernet 700 Series
+        """
+        self.verify(
+            self.nic
+            in [
                 "I40E_10G-SFP_XL710",
                 "I40E_40G-QSFP_A",
+                "I40E_40G-QSFP_B",
+                "I40E_10G-SFP_X722",
+                "I40E_10G-10G_BASE_T_X722",
                 "I40E_25G-25G_SFP28",
             ],
             "the nic not support this case: %s" % self.running_case,
         )
-        self.start_testpmd_as_vhost(driver=DRIVERS[self.nic])
+        self.start_testpmd_as_vhost(driver="i40e")
+        self.start_testpmd_as_virtio()
+        self.send_and_verify()
+        self.result_table_print()
+        self.close_all_apps()
+
+    def test_perf_pvp_share_lib_for_intel_800_series(self):
+        """
+        Test Case 3: Vhost/virtio-user pvp share lib test with Intel® Ethernet 800 Series
+        """
+        self.verify(
+            self.nic
+            in [
+                "ICE_100G-E810C_QSFP",
+                "ICE_25G-E810C_SFP",
+                "ICE_25G-E810_XXV_SFP",
+                "ICE_25G-E823C_QSFP",
+            ],
+            "the nic not support this case: %s" % self.running_case,
+        )
+        self.start_testpmd_as_vhost(driver="ice")
         self.start_testpmd_as_virtio()
         self.send_and_verify()
         self.result_table_print()
-- 
2.25.1


             reply	other threads:[~2023-03-08  5:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08  5:31 Wei Ling [this message]
2023-03-21  3:48 ` He, Xingguang
2023-03-28  0:47 ` lijuan.tu

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=20230308053125.307683-1-weix.ling@intel.com \
    --to=weix.ling@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).