From patchwork Fri Sep 25 02:17:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yufen.Mo" X-Patchwork-Id: 78770 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 94DDDA04BC; Fri, 25 Sep 2020 04:20:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FED91E4B0; Fri, 25 Sep 2020 04:20:57 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 81E801E48F for ; Fri, 25 Sep 2020 04:20:55 +0200 (CEST) IronPort-SDR: jB+VTNuD9SW45fjDn4jOaTo6458xK99BetdrjdH7N560eHCy0VpQ4YrbEpOZcL0cE47r265Pnv A9DmbQ1AKVlw== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837155" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837155" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:20:55 -0700 IronPort-SDR: aRQtLsTQPh58aNPEV8rZzk7dVhAHrV99cRozUvypgpiypdeGpbaDSAft8ChQUPpXTRJ47hBNid Yb/8auuUMt6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092913" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:53 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:05 +0800 Message-Id: <20200925021711.33756-2-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 1/7] 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 Fri Sep 25 02:17: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: 78771 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 B2D9FA04C0; Fri, 25 Sep 2020 04:20:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A6D351E4B6; Fri, 25 Sep 2020 04:20:57 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 91BAC1E48F for ; Fri, 25 Sep 2020 04:20:56 +0200 (CEST) IronPort-SDR: qllUb3ZjG5ZF2MjrmMXqBdniLyC0m7pT+vCORJq7ZU7WusFOqGV4E/0EW9+Y94MT1IxVFJpdwW 9tB8TUuoiXAw== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837166" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837166" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:20:56 -0700 IronPort-SDR: NJicmNBN4TGzi8FEgz6AbTR8t+yRkjZ3I/zPwjcHktpl2Nc/J5EUO39tI6jAd+z6iT9PbhMcLE 6F5MOMmRcaRw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092919" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:55 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:06 +0800 Message-Id: <20200925021711.33756-3-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 2/7] 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 Fri Sep 25 02:17: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: 78772 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 DF892A04BB; Fri, 25 Sep 2020 04:21:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D31B41E4B9; Fri, 25 Sep 2020 04:21:00 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id A5BEA1E4B5 for ; Fri, 25 Sep 2020 04:20:57 +0200 (CEST) IronPort-SDR: AqWB2HpBeEtwxrxHR4aD4Jz/wTURXilc9oGle4W9V8+iUIBulJ9g8ypaPMGh/QE+YrgXc4ZLD+ pIVy1IkDSk7g== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837180" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837180" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:20:57 -0700 IronPort-SDR: lM8yHX4dA4Yy/G9cCKL+tdZ+XhwLnR+YDklG8ciA9rowGRj0R6LyEwfH5qowjSFHF9vZVWdaRu wL/09atywbow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092926" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:56 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:07 +0800 Message-Id: <20200925021711.33756-4-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 3/7] 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 Fri Sep 25 02:17: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: 78773 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 4B7C8A04BC; Fri, 25 Sep 2020 04:21:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 248A41E4C0; Fri, 25 Sep 2020 04:21:01 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id B68971E4AF for ; Fri, 25 Sep 2020 04:20:58 +0200 (CEST) IronPort-SDR: y9jN3qxx0/VRpYP2w+5SQBzEisjEOEHFnTjmOi8/ubibmmYybYkVCLYn5VJe0LniavFTAhPqiK yf04D1fm1ZWw== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837192" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837192" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:20:58 -0700 IronPort-SDR: J+16SHEeCMdpq56ckOAL4k8YX6ntT+UaY8lBH4j8U1zDEAhycCb+usYEWpsmKmEDYG/qUIkPoj QLby496J12kQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092942" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:57 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:08 +0800 Message-Id: <20200925021711.33756-5-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 4/7] 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 Fri Sep 25 02:17: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: 78774 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 892B3A04BB; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 791C41E4AA; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id D0C641E4AF for ; Fri, 25 Sep 2020 04:20:59 +0200 (CEST) IronPort-SDR: BsmP6Cr162CkaCa23Pl4/8XalkiuXbsdzZrx+NID17g1+oKUM6s6Ouz8DhvVEwTVJS9RBH1YC6 G7A+3rHX2KBg== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837203" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837203" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:20:59 -0700 IronPort-SDR: TKWRJjephyBIWOYPBy0R2iE0OLd4VqMsbHx8UKeHPvsBvFPvbHZYcLepPBo6KBNZqTUGosdalm uADUJzxwna8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092950" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:58 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:09 +0800 Message-Id: <20200925021711.33756-6-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 5/7] 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 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/TestSuite_power_telemetry.py b/tests/TestSuite_power_telemetry.py index 90404e3..0af30d7 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 @@ -92,7 +94,7 @@ class TestPowerTelemetry(TestCase): def add_stream_to_pktgen(self, option): stream_ids = [] - topos = [[0, 1], [1, 0]] + topos = [[0, 0]] for txport, rxport in topos: _option = deepcopy(option) dmac = self.dut.get_mac_address(self.dut_ports[txport]) @@ -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 Fri Sep 25 02:17: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: 78775 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 F2C6FA04BC; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2A131E4C3; Fri, 25 Sep 2020 04:21:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 112911C068 for ; Fri, 25 Sep 2020 04:21:00 +0200 (CEST) IronPort-SDR: kwceTueRQNbV+D8uxKjTGw/KUX1I1ApveGa7qYbUy6ngdCLCFlqI95HY3mWj0Psc1jVbd6LbTm vkhGXrc/OGiA== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837219" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837219" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:21:00 -0700 IronPort-SDR: tTVgXYcjaNai+tVhSwlYKZyfeTFiaJvCeCkvOMYjjzWN5DwCAi4rLVsYIKRXZvCJJdlGky+cCo idngF7tC8skg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092958" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:20:59 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:10 +0800 Message-Id: <20200925021711.33756-7-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 6/7] 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 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py index 37f49e4..9abcafd 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] = [ @@ -443,7 +438,7 @@ class TestVmPwMgmtPolicy(TestCase): 'set promisc all on', 'port start all', 'start'] - self.vm_testpmd.execute_cmd(cmds) + [self.vm_testpmd.execute_cmd(cmd) for cmd in cmds] def close_vm_testpmd(self): if not self.is_pmd_on: From patchwork Fri Sep 25 02:17: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: 78776 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 520F3A04C0; Fri, 25 Sep 2020 04:21:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 31A461E4CA; Fri, 25 Sep 2020 04:21:04 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1126B1C068 for ; Fri, 25 Sep 2020 04:21:01 +0200 (CEST) IronPort-SDR: +6pdxUVpDvCJNwPbj5oxCeJKG0V3n8GVsR7dqlPWQjQ7053myU9qWuvvA2CCEees6sUI3g9vwO SgPZF7RzRKgQ== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="140837231" X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="140837231" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 19:21:01 -0700 IronPort-SDR: /94uwBidkfvQ4O7HA/D4X/Dwp0YzAY+TMwWN7NHWYVIOxrRRKRM3cdEZQSiyVDsdpOPgqD9lhf DV0q5Pf2BJMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,300,1596524400"; d="scan'208";a="348092968" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2020 19:21:00 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Fri, 25 Sep 2020 10:17:11 +0800 Message-Id: <20200925021711.33756-8-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200925021711.33756-1-yufengx.mo@intel.com> References: <20200925021711.33756-1-yufengx.mo@intel.com> MIME-Version: 1.0 Subject: [dts] [PATCH V3 7/7] 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)