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 03/15] tests/TestSuite_unit_tests_dump:update to support meson build
Date: Thu,  3 Sep 2020 16:28:27 +0800	[thread overview]
Message-ID: <20200903082839.30213-4-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_dump.py | 30 +++++++++++++++++++-----------
 1 file changed, 19 insertions(+), 11 deletions(-)

diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index 57dfc3a..603cc1a 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -80,7 +80,8 @@ class TestUnitTestsDump(TestCase):
         Run history log dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target, eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("dump_log_history", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
         self.verify("EAL" in out, "Test failed")
@@ -90,7 +91,7 @@ class TestUnitTestsDump(TestCase):
         Run history log dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
-        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
+        cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i'        
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time)
@@ -113,7 +114,7 @@ class TestUnitTestsDump(TestCase):
         Run mempool dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
-        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
+        cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i'
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_mempool", "testpmd>", self.run_cmd_time * 2)
@@ -135,7 +136,8 @@ class TestUnitTestsDump(TestCase):
         Run physical memory dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("dump_physmem", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
         elements = ['Segment', 'IOVA', 'len', 'virt', 'socket_id', 'hugepage_sz', 'nchannel', 'nrank']
@@ -156,7 +158,7 @@ class TestUnitTestsDump(TestCase):
         Run memzone dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
-        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
+        cmd = self.dut.apps_name['test-pmd'] + eal_params + '-- -i'
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2)
@@ -180,7 +182,8 @@ class TestUnitTestsDump(TestCase):
         Run struct size dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)       
         out = self.dut.send_expect("dump_struct_sizes", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -201,14 +204,16 @@ class TestUnitTestsDump(TestCase):
         test_port = self.dut_ports[0]
         pci_address = self.dut.ports_info[test_port]['pci'];
         eal_params = self.dut.create_eal_parameters(cores=self.cores,b_ports=[pci_address])
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)       
         out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
         black_str = " %s" % pci_address
         self.verify(black_str in out, "Dump black list failed")
 
         eal_params1 = self.dut.create_eal_parameters(cores=self.cores,ports=[pci_address])
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params1), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params1,"R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -220,7 +225,8 @@ class TestUnitTestsDump(TestCase):
         Run dump malloc dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("dump_malloc_stats", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
         match_regex = "Heap id:(\d*)"
@@ -236,7 +242,8 @@ class TestUnitTestsDump(TestCase):
         Run malloc heaps dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("dump_malloc_heaps", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -256,7 +263,8 @@ class TestUnitTestsDump(TestCase):
         Run log types dump test case.
         """
         eal_params = self.dut.create_eal_parameters(cores=self.cores)
-        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params), "R.*T.*E.*>.*>", self.start_test_time)
+        app_name = self.dut.apps_name['test']
+        self.dut.send_expect(app_name + eal_params,"R.*T.*E.*>.*>", self.start_test_time)        
         out = self.dut.send_expect("dump_log_types", "RTE>>", self.run_cmd_time * 2)
         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 ` Chen Linglix [this message]
2020-09-03  8:28 ` [dts] [dts 04/15] tests/TestSuite_unit_tests_eal:update " Chen Linglix
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-4-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).