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 932A1A00BE; Thu, 10 Mar 2022 09:40:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B0F941141; Thu, 10 Mar 2022 09:40:06 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id DF603410FC for ; Thu, 10 Mar 2022 09:40:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646901605; x=1678437605; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IWH9IGhIxGFNa28JJn4WlE241g0/A41QYBhSrRtJ1Qg=; b=PFfqgY/oieFHRkm4XQXT68LijGwcTeclYvew1xItXPHpsDqoUE+pT8bI OjO1zoxRQlrhp4fAQzyg1E0pf06RquANwZI6gwk+D0iQYerAH4Te4PwsX fyfaCyr+59AzatWiI5pvtPDkt4as01NWNJmqmskzEMCV/CM78usgQc/8y H1IAsQkZE4me9FCCBnJdU+ngUrlficN9kT1v2vGWP1CX403pbWiijsAYG yf66KBSvBKZwLIbhGZoF8XMMNr7lu7504kUpanH7NwJCuS6rFK1B4ygnq YH9H/i5xcBg9MK8nzTQq3x3fhwpRSbt4ufTYqhAX0cNx0B7CDBZakE7NG w==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="315912551" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="315912551" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:40:03 -0800 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="688591036" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:40:02 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/vdev_primary_secondary: modify testsuite by DPDK change Date: Thu, 10 Mar 2022 16:39:58 +0800 Message-Id: <20220310083958.494604-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.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 By DPDK change(commit 1c839246f9), no need to modify DPDK code to test, so delete modify DPDK code steps in testsuite. Signed-off-by: Wei Ling --- tests/TestSuite_vdev_primary_secondary.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/TestSuite_vdev_primary_secondary.py b/tests/TestSuite_vdev_primary_secondary.py index 093cd57c..d436d840 100644 --- a/tests/TestSuite_vdev_primary_secondary.py +++ b/tests/TestSuite_vdev_primary_secondary.py @@ -77,7 +77,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") - def setup_vm_env(self): """ Create testing environment @@ -103,7 +102,6 @@ class TestVdevPrimarySecondary(TestCase): return True - def launch_testpmd(self): """ launch testpmd @@ -118,7 +116,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("set fwd txonly", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) - def launch_examples(self): example_cmd_auto = self.app_symmetric_mp_path + " -l 0 -n %d --proc-type=auto -- -p 3 --num-procs=%d --proc-id=0" example_cmd_secondary = self.app_symmetric_mp_path + " -l 1 -n %d --proc-type=secondary -- -p 3 --num-procs=%d --proc-id=1" @@ -128,19 +125,7 @@ class TestVdevPrimarySecondary(TestCase): time.sleep(3) self.vhost_secondary.send_expect(final_cmd_secondary, "Lcore", 120) - def prepare_symmetric_mp(self): - self.vm_dut.send_expect("cp ./examples/multi_process/symmetric_mp/main.c .", "#") - self.vm_dut.send_expect( - "sed -i '/.offloads = DEV_RX_OFFLOAD_CHECKSUM,/d' ./examples/multi_process/symmetric_mp/main.c", "#") - self.vm_dut.send_expect( - "sed -i 's/ETH_MQ_RX_RSS,/ETH_MQ_RX_NONE,/g' ./examples/multi_process/symmetric_mp/main.c", "#") - out = self.vm_dut.build_dpdk_apps('./examples/multi_process/symmetric_mp') - self.verify("Error" not in out, "compilation symmetric_mp error") - - - def restore_symmetric_mp_env(self): - self.vm_dut.send_expect("\cp ./main.c ./examples/multi_process/symmetric_mp/", "#", 15) out = self.vm_dut.build_dpdk_apps('./examples/multi_process/symmetric_mp') self.verify("Error" not in out, "compilation symmetric_mp error") @@ -148,7 +133,6 @@ class TestVdevPrimarySecondary(TestCase): self.vm_dut.close_session(self.vhost_first) self.vm_dut.close_session(self.vhost_secondary) - def test_Virtio_primary_and_secondary_process(self): # start testpmd self.launch_testpmd() @@ -175,7 +159,6 @@ class TestVdevPrimarySecondary(TestCase): """ Run after each test case. """ - self.restore_symmetric_mp_env() self.close_session() self.vm_dut.kill_all() self.dut.kill_all() @@ -184,8 +167,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") time.sleep(2) - - def tear_down_all(self): """ Run after each test suite. -- 2.25.1