From patchwork Fri Sep 11 16:16:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 77359 X-Patchwork-Delegate: lijuan.tu@intel.com 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 989ADA04B5; Fri, 11 Sep 2020 10:23:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F9D61C0CD; Fri, 11 Sep 2020 10:23:12 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3CF4C1B13C for ; Fri, 11 Sep 2020 10:23:11 +0200 (CEST) IronPort-SDR: k1GeOtKc7GTEZVZWg1J+txWN8VreqEQdhO42P8Rw86gWPJQg0ZokxmfTB6kKWHx4c7a8QsQYc+ MIv4+DvA67bg== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222916280" X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="222916280" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 01:23:10 -0700 IronPort-SDR: MFsqt1XgO5t+jO9PwcwBm2iVLzOuEfTUHqOFUZeAZfpebQY+20ciG3Vjxv40H/4MuAiA75WZ5F 8ln3/KdO13Jg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,414,1592895600"; d="scan'208";a="408015880" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 11 Sep 2020 01:23:09 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Fri, 11 Sep 2020 16:16:56 +0000 Message-Id: <20200911161656.30238-6-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911161656.30238-1-weix.ling@intel.com> References: <20200911161656.30238-1-weix.ling@intel.com> Subject: [dts] [PATCH V3 5/5] tests/TestSuite_vmdq:use API to set dpdk config when use meson 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" use API to set dpdk config when use meson Signed-off-by: lingwei --- tests/TestSuite_vmdq.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vmdq.py b/tests/TestSuite_vmdq.py index 8e721e5..c80de64 100644 --- a/tests/TestSuite_vmdq.py +++ b/tests/TestSuite_vmdq.py @@ -28,6 +28,7 @@ class TestVmdq(TestCase): self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) self.dut.send_expect("sed -i 's/CONFIG_RTE_MAX_QUEUES_PER_PORT=256/CONFIG_RTE_MAX_QUEUES_PER_PORT=1024/' ./config/common_base", "# ", 5) + self.dut.set_build_options({'RTE_MAX_QUEUES_PER_PORT': 1024}) self.dut.build_install_dpdk(self.target) # Update the max queue per port for Fortville. self.dut.send_expect("sed -i 's/define MAX_QUEUES 128/define MAX_QUEUES 1024/' ./examples/vmdq/main.c", "#", 5) @@ -133,7 +134,8 @@ class TestVmdq(TestCase): def get_vmdq_stats(self): vmdq_session = self.dut.new_session() - vmdq_session.send_expect("kill -s SIGHUP `pgrep -fl vmdq_app | awk '{print $1}'`", "#", 20) + app_name = self.dut.apps_name['vmdq_dcb'].split('/')[-1] + vmdq_session.send_expect("kill -s SIGHUP `pgrep -fl %s | awk '{print $1}'`" % app_name, "#", 20) out = self.dut.get_session_output() self.logger.info(out) vmdq_session.close() @@ -242,4 +244,5 @@ class TestVmdq(TestCase): self.dut.send_expect( "sed -i 's/CONFIG_RTE_MAX_QUEUES_PER_PORT=1024/CONFIG_RTE_MAX_QUEUES_PER_PORT=256/' ./config/common_base", "# ", 5) + self.dut.set_build_options({'RTE_MAX_QUEUES_PER_PORT': 256}) self.dut.build_install_dpdk(self.target)