From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC9BDA04C7; Tue, 15 Sep 2020 10:37:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D73631C0D5; Tue, 15 Sep 2020 10:37:01 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3C6E11C0D5 for ; Tue, 15 Sep 2020 10:37:00 +0200 (CEST) IronPort-SDR: K/W7gdgb055Ls3u+9UKuLPedAnvNvps5fk+SKzydqh6vnMIKLt1k6Lx4FwsrCBxj8GM8XbbVEg MAXheTps8oIA== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="146962928" X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="146962928" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 01:36:59 -0700 IronPort-SDR: t5SH+phpVu9Rxhel5NJ/eu9r6th/2BjSL3FH2ccl0zS1kJlt8Yk4tzvNCmDAMtHqU3f+KmdXyG LtwXljYOkLRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,429,1592895600"; d="scan'208";a="286736520" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.208]) by fmsmga007.fm.intel.com with ESMTP; 15 Sep 2020 01:36:58 -0700 From: yufengmx To: dts@dpdk.org, lei.a.yao@intel.com Cc: yufengmx Date: Tue, 15 Sep 2020 16:33:50 +0800 Message-Id: <20200915083351.12506-7-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200915083351.12506-1-yufengx.mo@intel.com> References: <20200915083351.12506-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_vm_pw_mgmt_policy.py b/tests/TestSuite_vm_pw_mgmt_policy.py index 37f49e4..3e3d473 100644 --- a/tests/TestSuite_vm_pw_mgmt_policy.py +++ b/tests/TestSuite_vm_pw_mgmt_policy.py @@ -44,6 +44,8 @@ from datetime import datetime, timedelta 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 test_case import TestCase from pmd_output import PmdOutput @@ -78,6 +80,9 @@ 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) + if 'meson' == load_global_setting(HOST_BUILD_TYPE_SETTING): + return os.path.join(self.target_dir, + _host_crb.apps_name[os.path.basename(name)]) 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') -- 2.21.0