test suite reviews and discussions
 help / color / mirror / Atom feed
From: Chen Linglix <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Chen Linglix <linglix.chen@intel.com>
Subject: [dts] [dts 04/15] tests/TestSuite_unit_tests_eal:update to support meson build
Date: Thu,  3 Sep 2020 16:28:28 +0800	[thread overview]
Message-ID: <20200903082839.30213-5-linglix.chen@intel.com> (raw)
In-Reply-To: <20200903082839.30213-1-linglix.chen@intel.com>

Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 9c80663..99710a9 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -36,7 +36,8 @@ class TestUnitTestsEal(TestCase):
         self.run_cmd_time = 180
         default_cores = '1S/4C/1T'
         eal_params = self.dut.create_eal_parameters(cores=default_cores)
-        self.test_app_cmdline = "./%s/app/test %s" % (self.target,eal_params)
+        app_name = self.dut.apps_name['test']
+        self.test_app_cmdline = app_name + eal_params
 
     def set_up(self):
         """
@@ -179,7 +180,7 @@ class TestUnitTestsEal(TestCase):
         """
 
         eal_params = self.dut.create_eal_parameters()
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params),
+        self.dut.send_expect(self.test_app_cmdline,       
                              "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("hash_readwrite_lf_perf_autotest",
                                    "RTE>>", self.run_cmd_time*3)
@@ -192,7 +193,7 @@ class TestUnitTestsEal(TestCase):
         """
 
         eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params),
+        self.dut.send_expect(self.test_app_cmdline,
                              "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("hash_readwrite_perf_autotest",
                                    "RTE>>", self.run_cmd_time*3)
@@ -208,7 +209,8 @@ class TestUnitTestsEal(TestCase):
             cmdline = self.test_app_cmdline
         else:
             # mask cores only on socket 0
-            cmdline = "%s ./%s/app/test -n 1 -c 5" % (self.dut.taskset(1), self.target)
+            app_name = self.dut.apps_name['test']
+            cmdline = self.dut.taskset(1)+ ' ' +app_name+' -n 1 -c 5'            
         self.dut.send_expect(cmdline, "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("func_reentrancy_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
-- 
1.8.3.1


  parent reply	other threads:[~2020-09-03  8:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03  8:28 [dts] [PATCH V1 00/15] support meson build method Chen Linglix
2020-09-03  8:28 ` [dts] [dts 01/15] tests/TestSuite_unit_tests_cmdline:update to support meson build Chen Linglix
2020-09-03  8:28 ` [dts] [dts 02/15] tests/TestSuite_unit_tests_crc:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 03/15] tests/TestSuite_unit_tests_dump:update " Chen Linglix
2020-09-03  8:28 ` Chen Linglix [this message]
2020-09-03  8:28 ` [dts] [dts 05/15] tests/TestSuite_unit_tests_kni:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 06/15] tests/TestSuite_unit_tests_loopback:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 07/15] tests/TestSuite_unit_tests_lpm:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 08/15] tests/TestSuite_unit_tests_mbuf:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 09/15] tests/TestSuite_unit_tests_mempool:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 10/15] tests/TestSuite_unit_tests_pmd_perf:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 11/15] tests/TestSuite_unit_tests_power:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 12/15] tests/TestSuite_unit_tests_qos:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 13/15] tests/TestSuite_unit_tests_ringpmd:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 14/15] tests/TestSuite_unit_tests_ring:update " Chen Linglix
2020-09-03  8:28 ` [dts] [dts 15/15] tests/TestSuite_unit_tests_timer:update " Chen Linglix
2020-09-03  8:41 ` [dts] [PATCH V1 00/15] support meson build method Chen, LingliX
2020-09-09  8:09   ` Tu, Lijuan
2020-09-04  6:09 ` Ma, LihongX

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=20200903082839.30213-5-linglix.chen@intel.com \
    --to=linglix.chen@intel.com \
    --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).