From patchwork Thu Sep 17 01:05:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77928 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 A7D3DA04B1; Thu, 17 Sep 2020 03:08:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 986AF1D15E; Thu, 17 Sep 2020 03:08:45 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 915A91D15D for ; Thu, 17 Sep 2020 03:08:42 +0200 (CEST) IronPort-SDR: GIsI+uh/xkImV2yhCidAJ03eSVamJH/bSxLJj4MVY/ki4SexsHecHd4YdNwCh3Bq0b3vu95bPn aWq+LFfjVe9Q== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="147284406" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="147284406" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:08:41 -0700 IronPort-SDR: 1WBGjfEao6V/eJvN9iIE+B1cM0Bsa8VlDUi3Z2Zhhk7DlOQvJNLGgbAgvY8Q04ZCPyoIYRxdeE yNnO5U6pqGAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931448" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:40 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:06 +0800 Message-Id: <20200917010513.15783-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 1/8] power_bidirection_channel: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_bidirection_channel.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_power_bidirection_channel.py b/tests/TestSuite_power_bidirection_channel.py index 8159e11..05e135a 100644 --- a/tests/TestSuite_power_bidirection_channel.py +++ b/tests/TestSuite_power_bidirection_channel.py @@ -63,13 +63,8 @@ class TestPowerBidirectionChannel(TestCase): _host_crb = host_crb if host_crb else self.dut example_dir = "examples/" + name out = _host_crb.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.execute_cmds(cmd, name=_host_crb.session.name) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + _host_crb.apps_name[os.path.basename(name)]) def add_console(self, session): self.ext_con[session.name] = [ From patchwork Thu Sep 17 01:05:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77929 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 2FE77A04B6; Thu, 17 Sep 2020 03:08:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BBDFF1D420; Thu, 17 Sep 2020 03:08:45 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 305D01D15D for ; Thu, 17 Sep 2020 03:08:43 +0200 (CEST) IronPort-SDR: sX5NmBs5AUeeTURQZ/jMtliwMeSzRa+gjbUuXMwCFcLOvbTT4VCPRacFA3v9PUGS0ydutvOIsV WHtFFqeqdJQA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="147284407" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="147284407" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:08:42 -0700 IronPort-SDR: spyoTE5mpaM/5RzGA8zCaPtvvFdoJe7QVejHCt7QErjkkQZmjU4lvGeNeP7pku/PstP2lBFcdG 4mjRVCU1Ix/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931459" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:41 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:07 +0800 Message-Id: <20200917010513.15783-3-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 2/8] power_empty_poll: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_empty_poll.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_power_empty_poll.py b/tests/TestSuite_power_empty_poll.py index 93843f7..bb69656 100644 --- a/tests/TestSuite_power_empty_poll.py +++ b/tests/TestSuite_power_empty_poll.py @@ -78,13 +78,8 @@ class TestPowerEmptyPoll(TestCase): def prepare_binary(self, name): example_dir = "examples/" + name out = self.dut.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.d_a_con(cmd) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + self.dut.apps_name[os.path.basename(name)]) def get_cores_mask(self, cores_list): return dts_create_mask(cores_list) From patchwork Thu Sep 17 01:05:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77930 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 8480DA04B7; Thu, 17 Sep 2020 03:08:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E8B781D424; Thu, 17 Sep 2020 03:08:45 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1B4801D15D for ; Thu, 17 Sep 2020 03:08:43 +0200 (CEST) IronPort-SDR: gFTkOV0t1HphQQdtXv/fkNlMNahxyjmzTPgXyC9wScaO1on5y15BmVnzvV1+PYkwfKjg+8weqr H8ZffbSbY5FQ== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="147284409" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="147284409" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:08:43 -0700 IronPort-SDR: XLF/OPgnZFYqI482VRzw/DTEq+F11ld2cMlKYSJZD1nHu4xpJyDTlRoY/B0Fj/6Wt7QNIy3NdY E0MV3ugprqYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931470" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:42 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:08 +0800 Message-Id: <20200917010513.15783-4-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 3/8] power_pbf: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_pbf.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_power_pbf.py b/tests/TestSuite_power_pbf.py index eb5a16e..6109a3b 100644 --- a/tests/TestSuite_power_pbf.py +++ b/tests/TestSuite_power_pbf.py @@ -40,6 +40,8 @@ from collections import Counter from pprint import pformat # import dts libs +from settings import load_global_setting +from settings import HOST_BUILD_TYPE_SETTING from test_case import TestCase from exception import VerifyFailure from utils import create_mask @@ -136,13 +138,8 @@ class TestPowerPbf(TestCase): def prepare_binary(self, name): example_dir = "examples/" + name out = self.dut.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.d_a_con(cmd) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + self.dut.apps_name[os.path.basename(name)]) def create_powermonitor_folder(self): cmd = 'mkdir -p {0}; chmod 777 {0}'.format('/tmp/powermonitor') @@ -151,12 +148,13 @@ class TestPowerPbf(TestCase): def init_test_binary_file(self): self.create_powermonitor_folder() # open debug SW - cmd = ("sed -i -e 's/" - "CONFIG_RTE_LIBRTE_POWER_DEBUG=n$/" - "CONFIG_RTE_LIBRTE_POWER_DEBUG=y/" - "' {0}/config/common_base").format(self.target_dir) - self.d_a_con(cmd) - self.dut.skip_setup = False + SW = "CONFIG_RTE_LIBRTE_POWER_DEBUG" + if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING): + self.dut.set_build_options({SW[7:]: 'y'}) + else: + cmd = "sed -i -e 's/{0}=n$/{0}=y/' {1}/config/common_base".format( + SW, self.target_dir) + self.d_a_con(cmd) self.dut.build_install_dpdk(self.target) # set up vm power management binary process setting self.vm_power_mgr = self.prepare_binary('vm_power_manager') From patchwork Thu Sep 17 01:05:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77931 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 33402A04B1; Thu, 17 Sep 2020 03:08:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2BACC1D423; Thu, 17 Sep 2020 03:08:48 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8F89A1D41F for ; Thu, 17 Sep 2020 03:08:46 +0200 (CEST) IronPort-SDR: 1VT5q2BsJAckAPALkvbIA091Wf9LBROK8QWjBmJ5et+DINyqGNhTsOHgv+f+GEEMpRB+ptKpPi faMqZ0I5dkow== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="147284411" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="147284411" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:08:45 -0700 IronPort-SDR: any6mrLi1meA+ruQLE9p4mVmOqDjYFwU7SBrZWV85Z4y6EfVGfZ/M51/IG1aqr3CNYFcdMOgcP 8ZRM2kQCktig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931481" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:43 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:09 +0800 Message-Id: <20200917010513.15783-5-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 4/8] power_pstate: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_pstate.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_power_pstate.py b/tests/TestSuite_power_pstate.py index 2ee0981..220fe6f 100644 --- a/tests/TestSuite_power_pstate.py +++ b/tests/TestSuite_power_pstate.py @@ -144,13 +144,8 @@ class TestPowerPstate(TestCase): def prepare_binary(self, name): example_dir = "examples/" + name out = self.dut.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.d_a_con(cmd) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + self.dut.apps_name[os.path.basename(name)]) def init_test_binary_file(self): self.create_powermonitor_folder() From patchwork Thu Sep 17 01:05:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77932 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 5DCFEA04B1; Thu, 17 Sep 2020 03:09:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 556341D41C; Thu, 17 Sep 2020 03:09:04 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D05681D15D for ; Thu, 17 Sep 2020 03:09:02 +0200 (CEST) IronPort-SDR: qcBALnTx9u/1Sue1N4GtwjMjUNq5HbhTrYp/xH6vxz4d7ZkeauSob/sLBe/6oh37JFsXaomKMr PU3GLD2rKcJQ== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="160529034" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="160529034" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:09:00 -0700 IronPort-SDR: w7szqDOdagzHX9pZY2s1MeDcEOE37rbFDdQARdTDj4LfmPinEVZaZACUfpN+YGGJ0TmnhT7H3o D/42aXzrbCBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931494" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:45 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:10 +0800 Message-Id: <20200917010513.15783-6-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 5/8] power_telemetry: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_power_telemetry.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_power_telemetry.py b/tests/TestSuite_power_telemetry.py index 90404e3..976f92e 100644 --- a/tests/TestSuite_power_telemetry.py +++ b/tests/TestSuite_power_telemetry.py @@ -42,6 +42,8 @@ import json from copy import deepcopy from pprint import pformat +from settings import load_global_setting +from settings import HOST_BUILD_TYPE_SETTING from utils import create_mask as dts_create_mask from settings import HEADER_SIZE from test_case import TestCase @@ -126,22 +128,20 @@ class TestPowerTelemetry(TestCase): if self.dut.skip_setup: return SW = "CONFIG_RTE_LIBRTE_TELEMETRY" - cmd = "sed -i -e 's/{0}=n$/{0}=y/' {1}/config/common_base".format( - SW, self.target_dir) - self.d_a_con(cmd) + if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING): + self.dut.set_build_options({SW[7:]: 'y'}) + else: + cmd = "sed -i -e 's/{0}=n$/{0}=y/' {1}/config/common_base".format( + SW, self.target_dir) + self.d_a_con(cmd) # re-compile dpdk source code self.dut.build_install_dpdk(self.target) def prepare_binary(self, name): example_dir = "examples/" + name out = self.dut.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.d_a_con(cmd) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + self.dut.apps_name[os.path.basename(name)]) def get_cores_mask(self, config): ports_socket = self.dut.get_numa_id(self.dut.get_ports()[0]) From patchwork Thu Sep 17 01:05:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77933 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 827BAA04B1; Thu, 17 Sep 2020 03:09:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 789251D41F; Thu, 17 Sep 2020 03:09:05 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 724B01D15D for ; Thu, 17 Sep 2020 03:09:03 +0200 (CEST) IronPort-SDR: Z/dhx5/+uelGe6D5Hri6Jzx/6QsvMvCYwUaCK5akWATULbgI+b+R1DjVyeVa6bDKKVzf32T2/J bN3dpsVkmjRA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="160529038" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="160529038" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:09:01 -0700 IronPort-SDR: qV2bYR4KAVxeNj3x7yFCOubiMUQFH6wDpi9083dxiD6qZaiMtqhQWzry9VSg45EUedqhb7zNVv IXv2AE1Zu1Eg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931504" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:51 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:11 +0800 Message-Id: <20200917010513.15783-7-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 6/8] vm_pw_mgmt_policy: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_vm_pw_mgmt_policy.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py index 37f49e4..84510ed 100644 --- a/tests/TestSuite_vm_pw_mgmt_policy.py +++ b/tests/TestSuite_vm_pw_mgmt_policy.py @@ -78,13 +78,8 @@ class TestVmPwMgmtPolicy(TestCase): _host_crb = host_crb if host_crb else self.dut example_dir = "examples/" + name out = _host_crb.build_dpdk_apps('./' + example_dir) - self.verify("Error" not in out, "Compilation error") - self.verify("No such" not in out, "Compilation error") - binary_dir = os.path.join(self.target_dir, example_dir, 'build') - cmd = ["ls -F {0} | grep '*'".format(binary_dir), '# ', 5] - exec_file = self.execute_cmds(cmd, name=_host_crb.session.name) - binary_file = os.path.join(binary_dir, exec_file[:-1]) - return binary_file + return os.path.join(self.target_dir, + _host_crb.apps_name[os.path.basename(name)]) def add_console(self, session): self.ext_con[session.name] = [ From patchwork Thu Sep 17 01:05:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77934 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 B0465A04B6; Thu, 17 Sep 2020 03:09:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A360E1D426; Thu, 17 Sep 2020 03:09:05 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E1D481D40E for ; Thu, 17 Sep 2020 03:09:03 +0200 (CEST) IronPort-SDR: ETh7FGIAlWGFyZBExnHFFvxJFQO1VJVCVkuftwcWq2AgI65vUfiIku8PEB5+7DOLAm6c8929Wn 2f1pt0z3wZBw== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="160529041" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="160529041" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:09:02 -0700 IronPort-SDR: dNbEF33vy8AGU3UmkMz0ZTmYusMhfOHxUFkP2RPlDCH+NcUOO2F5xKhJth8luGdXC7esVt2Vof vc24Qq7r+k7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931518" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:08:56 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:12 +0800 Message-Id: <20200917010513.15783-8-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 7/8] malicious_driver_event_indication: support 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" support meson build. Signed-off-by: yufengmx --- tests/TestSuite_malicious_driver_event_indication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_malicious_driver_event_indication.py b/tests/TestSuite_malicious_driver_event_indication.py index f297ab9..44859ab 100644 --- a/tests/TestSuite_malicious_driver_event_indication.py +++ b/tests/TestSuite_malicious_driver_event_indication.py @@ -124,8 +124,8 @@ class TestSuiteMaliciousDrvEventIndication(TestCase): self.vf_ports_info = None def init_pf_testpmd(self): - self.pf_testpmd = "{}/{}/app/testpmd".format( - self.target_dir, self.dut.target) + self.pf_testpmd = os.path.join(self.target_dir, + self.dut.apps_name['test-pmd']) def start_pf_testpmd(self): core_mask = utils.create_mask(self.pf_pmd_cores) From patchwork Thu Sep 17 01:05:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 77935 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 D9307A04B1; Thu, 17 Sep 2020 03:09:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D3A611D425; Thu, 17 Sep 2020 03:09:06 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 30EAB1D15D for ; Thu, 17 Sep 2020 03:09:05 +0200 (CEST) IronPort-SDR: 3KZzfQ6XqUh/6TMqvoozfuepc9rBu46BBs6SshiihHAnWaEmLXdOt2vThPI7La9PLObKHYNs5W RmDl4eUs0XBg== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="160529043" X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="160529043" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 18:09:04 -0700 IronPort-SDR: e4RmltrKU7I/HUXipD7dMGkqZ8/mlZRdYWvI4G7TlC6pzKHaw/hklsJHMOwhWB6mg6MiYJziTj /p5FZ+UgVZ6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,434,1592895600"; d="scan'208";a="331931542" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2020 18:09:02 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Thu, 17 Sep 2020 09:05:13 +0800 Message-Id: <20200917010513.15783-9-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200917010513.15783-1-yufengx.mo@intel.com> References: <20200917010513.15783-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V2 8/8] conf: power suite series support 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" support meson build. Signed-off-by: yufengmx --- conf/app_name.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/app_name.cfg b/conf/app_name.cfg index ff58137..c283c03 100644 --- a/conf/app_name.cfg +++ b/conf/app_name.cfg @@ -62,6 +62,9 @@ hotplug_mp=target/examples/dpdk-hotplug_mp mp_server=target/examples/dpdk-mp_server simple_mp=target/examples/dpdk-simple_mp symmetric_mp=target/examples/dpdk-symmetric_mp +vm_power_manager=target/examples/dpdk-vm_power_manager +guest_cli=target/examples/dpdk-guest_cli +distributor=target/examples/dpdk-distributor [makefile] pdump=target/app/dpdk-pdump proc-info=target/app/dpdk-procinfo @@ -119,3 +122,7 @@ hotplug_mp=examples/multi_process/hotplug_mp/build/app/hotplug_mp mp_server=examples/multi_process/client_server_mp/mp_server/build/app/mp_server simple_mp=examples/multi_process/simple_mp/build/app/simple_mp symmetric_mp=examples/multi_process/symmetric_mp/build/app/symmetric_mp +vm_power_manager=examples/vm_power_manager/build/vm_power_mgr +guest_cli=examples/vm_power_manager/guest_cli/build/guest_vm_power_mgr +distributor=examples/distributor/build/distributor_app +