From patchwork Tue Dec 8 10:06:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 84789 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 735B4A09E6; Tue, 8 Dec 2020 11:03:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3E884C914; Tue, 8 Dec 2020 11:03:45 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D8CAD98 for ; Tue, 8 Dec 2020 11:03:42 +0100 (CET) IronPort-SDR: VhvsUdvPXa4Sy2NkWqDxaA0/73+buF44FeI6AqixHAiiWn0CmO4Xb8ZPSrwUkpQ8rdU24xosip zGTKNeCR0OSw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="171293337" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="171293337" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:38 -0800 IronPort-SDR: asXskWvVrBQ5btL8UTWmn9vG7NC+D+Vk5o+SHwdZ/Sl6kznRHU5It/dNjuT5/W0ackD34xdklW QAKFFNuhoDVA== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="363575549" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 02:03:37 -0800 From: Zhou Jun To: dts@dpdk.org Cc: Zhou Jun Date: Tue, 8 Dec 2020 18:06:02 +0800 Message-Id: <20201208100627.9792-4-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201208100627.9792-1-junx.w.zhou@intel.com> References: <20201208100627.9792-1-junx.w.zhou@intel.com> Subject: [dts] [dts 03/28] tests/TestSuite_inline_ipsec:Modify the hard coded app parameter to call the platform interface X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" Signed-off-by: Zhou Jun --- tests/TestSuite_inline_ipsec.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_inline_ipsec.py b/tests/TestSuite_inline_ipsec.py index 2b599374..2b9db77e 100644 --- a/tests/TestSuite_inline_ipsec.py +++ b/tests/TestSuite_inline_ipsec.py @@ -93,6 +93,7 @@ class TestInlineIpsec(TestCase): out = self.dut.build_dpdk_apps("./examples/ipsec-secgw") self.verify("Error" not in out, "compilation error 1") self.verify("No such file" not in out, "compilation error 2") + self.eal_para = self.dut.create_eal_parameters(cores=[20, 21]) self.cfg_prepare() @@ -207,11 +208,11 @@ class TestInlineIpsec(TestCase): verify Ipsec receive package """ if jumboframe is not None: - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 -j 9200 --mtu %s --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, jumboframe, config, file_name) + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 -j 9200 --mtu %s --config='%s' -f %s" % ( + self.eal_para, jumboframe, config, file_name) else: - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, config, file_name) + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1024 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( + self.eal_para, config, file_name) self.dut.send_expect(cmd, "IPSEC", 60) @@ -341,8 +342,8 @@ class TestInlineIpsec(TestCase): """ test Ipsec Encryption Decryption """ - cmd = self.path + " -l 20,21 -w %s -w %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( - self.portpci_0, self.portpci_1, '(0,0,21),(1,0,21)', '/root/dpdk/enc_dec.cfg') + cmd = self.path + " %s --vdev 'crypto_null' --log-level 8 --socket-mem 1024,1 -- -p 0xf -P -u 0x2 --config='%s' -f %s" % ( + self.eal_para, '(0,0,21),(1,0,21)', '/root/dpdk/enc_dec.cfg') self.dut.send_expect(cmd, "IPSEC", 60) session_receive = self.tester.create_session( name='receive_encryption_package')