From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9CB27A0093; Thu, 17 Mar 2022 02:58:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A1E5407FF; Thu, 17 Mar 2022 02:58:40 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 46A9640151 for ; Thu, 17 Mar 2022 02:58:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647482318; x=1679018318; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gdEt/P5YFa9FsRmvbZ/LAMrqJ2CkEKbHZMtLRHO3CSA=; b=Y4Q+H7wc8UFwclsKiJjdTCfl0ioQ2iZnreDqj8EEOs+dbx7KhER0Y1v8 wb5BDaEs+umM4ReSoCtaai3Ulv6u0vZzDsOpmYRbfMdBFAy94i/RdokFo /VCni5l5AIVePCRSBoUKNRyaWYf/ow3XFUpaye7M025Qy3nv/EdQpPsMc u496dLghQ/yvwprkAMHLT8TtRSjH9DJVi0/VSzdphmKkB0M9aBqKPTsAl X2iFmEsARNjJLxUcli9PdozIAMlBWbo2qhmZVtb47rZMOMjJz79iRonA2 gaVG5xMarG2wjxavCf0bhFVvqMVX2tnyYmJ9lF7fQ7n8z/xp6OP09233L A==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="236705756" X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="236705756" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 18:58:26 -0700 X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="821112112" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 18:58:24 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [dts] [V2] tests/pmdpcap: Remove makefile build that changed source code Date: Thu, 17 Mar 2022 09:58:17 +0800 Message-Id: <20220317015817.1703-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org V2: - Remove snippet of changing source code in tear_down_all V1: - Remove snippet of changing source code in set_up_all Signed-off-by: Jun Dong --- tests/TestSuite_pmdpcap.py | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py index 9ffe1d76..a638df2a 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): @@ -220,10 +193,4 @@ class TestPmdPcap(TestCase): ) def tear_down_all(self): - # Disable PCAP feature and rebuild the package - self.dut.send_expect( - "sed -i 's/CONFIG_RTE_LIBRTE_PMD_PCAP=y$/CONFIG_RTE_LIBRTE_PMD_PCAP=n/' config/%s" - % self.pcap_config, - "# ", - ) self.dut.set_target(self.target) -- 2.33.1.windows.1