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 95799A04DB; Mon, 7 Sep 2020 13:11:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F0DA1C112; Mon, 7 Sep 2020 13:11:34 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 57F571BE0C for ; Mon, 7 Sep 2020 13:11:33 +0200 (CEST) IronPort-SDR: mdHx/OA1Y1+mnGEfbHrXXHLDbwQf7zrB8nlOc995I2IYkoU54raPcl3WyndKc0ZRxtwqU00C7N fgPN+mVEZXTw== X-IronPort-AV: E=McAfee;i="6000,8403,9736"; a="222197537" X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="222197537" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2020 04:11:33 -0700 IronPort-SDR: y8DQewE3y043/mLbhowCC31WXj4hrksyqFm1vSjbRA7NvLeOYCbktQnZ0rI+T50l6aNlboYyTZ I3eet7K+neqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,401,1592895600"; d="scan'208";a="316841886" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 07 Sep 2020 04:11:31 -0700 From: "Jiang, YuX" To: dts@dpdk.org Cc: "Jiang,yu" , Jiang@dpdk.org Date: Mon, 7 Sep 2020 19:10:35 +0800 Message-Id: <20200907111035.7697-10-yux.jiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907111035.7697-1-yux.jiang@intel.com> References: <20200907111035.7697-1-yux.jiang@intel.com> Subject: [dts] [PATCH V1 9/9] tests/compress_common: support meson build 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" From: "Jiang,yu" adapt to support both meson and makefile build Signed-off-by: Jiang,yu --- tests/compress_common.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/compress_common.py b/tests/compress_common.py index 6bde1ce..4afdcde 100644 --- a/tests/compress_common.py +++ b/tests/compress_common.py @@ -127,8 +127,7 @@ def run_unit(test_case, eal={}): default['n'] = mem_channels eal_str = get_opt_str(test_case, default, eal) - cmdline = "./{target}/app/test {eal}".format(target = test_case.dut.target, - eal = eal_str) + cmdline = "./{app_path} {eal}".format(app_path = test_case.dut.apps_name['test'], eal= eal_str) test_case.dut.send_expect(cmdline, ">", 30) out = test_case.dut.send_expect("compressdev_autotest", ">", 30) test_case.dut.send_expect("quit", "# ", 30) @@ -144,10 +143,10 @@ def run_compress_func(test_case, eal={}, opt={}): for each_file in input_file: test_case.logger.info("Testing file: {}".format(each_file)) - cmdline = "./{target}/app/dpdk-test-compress-perf {eal}\ + cmdline = "./{app_path} {eal}\ -- --input-file {file} {opt}" - cmdline = cmdline.format(target = test_case.dut.target, + cmdline = cmdline.format(app_path = test_case.dut.apps_name['test-compress-perf'], eal = eal_str, file = each_file, opt = opt_str) @@ -177,10 +176,10 @@ def run_compress_perf(test_case, eal={}, opt={}): for each_seg in [1, 2, 4, 8, 16, 32]: test_case.logger.info("Testing file: {}, seg-sz: {}".format(perf_file, each_seg * 1024)) - cmdline = "./{target}/app/dpdk-test-compress-perf {eal}\ + cmdline = "./{app_path} {eal}\ -- --input-file {file} --seg-sz {seg} {opt}" - cmdline = cmdline.format(target = test_case.dut.target, + cmdline = cmdline.format(app_path = test_case.dut.apps_name['test-compress-perf'], eal = eal_str, file = perf_file, seg = each_seg * 1024, -- 2.7.4