test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jun Dong <junx.dong@intel.com>
To: dts@dpdk.org
Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com
Subject: [V1] tests/pmdpcap: Move makefile build that changed source code
Date: Wed, 16 Mar 2022 15:13:55 +0800	[thread overview]
Message-ID: <20220316071355.1175-1-junx.dong@intel.com> (raw)

Signed-off-by: Jun Dong <junx.dong@intel.com>
---
 tests/TestSuite_pmdpcap.py | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py
index 9ffe1d76..7024915c 100644
--- a/tests/TestSuite_pmdpcap.py
+++ b/tests/TestSuite_pmdpcap.py
@@ -54,15 +54,6 @@ class TestPmdPcap(TestCase):
 
         self.memory_channel = self.dut.get_memory_channels()
 
-        # Enable PCAP features and rebuild the package
-        self.pcap_config = self.get_pcap_compile_config()
-        self.dut.send_expect(
-            "sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=n$/CONFIG_RTE_LIBRTE_PMD_PCAP=y/' config/%s"
-            % self.pcap_config,
-            "# ",
-        )
-        self.dut.build_install_dpdk(self.target)
-
         # make sure there is no interface to bind
         # because if there is any interface bonded to igb_uio,
         # it will result in packet transmitting failed
@@ -72,24 +63,6 @@ class TestPmdPcap(TestCase):
             self.dut.send_expect("kldload contigmem", "#", 20)
         self.path = self.dut.apps_name["test-pmd"]
 
-    def get_pcap_compile_config(self):
-        config_head = "common_"
-        os_type = self.dut.get_os_type()
-        if os_type == "linux":
-            config_tail = os_type + "app"
-        elif os_type == "freebsd":
-            config_tail = "bsdapp"
-        else:
-            raise Exception(
-                "Unknow os type, please check to make sure pcap can work in OS [ %s ]"
-                % os_type
-            )
-        out = self.dut.send_command("cat config/%s" % (config_head + config_tail))
-        if "CONFIG_RTE_LIBRTE_PMD_PCAP" in out:
-            return config_head + config_tail
-        else:
-            return config_head + "base"
-
     def create_pcap_file(self, filename, number_of_packets):
         flow = []
         for pkt_id in range(number_of_packets):
-- 
2.33.1.windows.1


                 reply	other threads:[~2022-03-16  7:14 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=20220316071355.1175-1-junx.dong@intel.com \
    --to=junx.dong@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    --cc=qingx.sun@intel.com \
    /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).