test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Jiang, YuX" <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: "Jiang,yu" <yux.jiang@intel.com>, Jiang@dpdk.org
Subject: [dts] [PATCH V1 9/9] tests/compress_common: support meson build
Date: Mon,  7 Sep 2020 19:10:35 +0800	[thread overview]
Message-ID: <20200907111035.7697-10-yux.jiang@intel.com> (raw)
In-Reply-To: <20200907111035.7697-1-yux.jiang@intel.com>

From: "Jiang,yu" <yux.jiang@intel.com>

adapt to support both meson and makefile build

Signed-off-by: Jiang,yu <yux.jiang@intel.com>
---
 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


  parent reply	other threads:[~2020-09-07 11:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 11:10 [dts] [PATCH V1 0/9] Modify suites to support meson & makefile Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 1/9] tests/TestSuite_crypto_perf_cryptodev_perf: support meson build Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 2/9] tests/TestSuite_fips_cryptodev: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 3/9] tests/TestSuite_ipsec_gw_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 4/9] tests/TestSuite_l2fwd_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 5/9] tests/TestSuite_unit_tests_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 6/9] tests/TestSuite_virtio_ipsec_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 7/9] tests/TestSuite_virtio_perf_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` [dts] [PATCH V1 8/9] tests/TestSuite_virtio_unit_cryptodev_func: " Jiang, YuX
2020-09-07 11:10 ` Jiang, YuX [this message]
2020-09-08  5:04 ` [dts] [PATCH V1 0/9] Modify suites to support meson & makefile Ma, LihongX
2020-09-10  1:14 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200907111035.7697-10-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=Jiang@dpdk.org \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).