test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function
@ 2020-01-20  9:00 huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 02/14] tests/unit_tests_dump:addcreate_eal_parameters function huang,zhimin
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_crc.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_unit_tests_crc.py b/tests/TestSuite_unit_tests_crc.py
index 334a651..f182d35 100644
--- a/tests/TestSuite_unit_tests_crc.py
+++ b/tests/TestSuite_unit_tests_crc.py
@@ -56,8 +56,7 @@ class TestUnitTestsCrc(TestCase):
         """
         Run at the start of each test suite.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -70,7 +69,8 @@ class TestUnitTestsCrc(TestCase):
         Run crc autotests in RTE command line.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("crc_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 02/14] tests/unit_tests_dump:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 03/14] tests/unit_tests_eal:addcreate_eal_parameters function huang,zhimin
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_dump.py | 39 +++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)

diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index 7772223..57dfc3a 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -55,14 +55,14 @@ class TestUnitTestsDump(TestCase):
     # Test cases.
     #
 
+
     def set_up_all(self):
         """
         Run at the start of each test suite.
         Nothing to do here.
         """
         # Based on h/w type, choose how many ports to use
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
         self.dut_ports = self.dut.get_ports(self.nic)
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
         self.start_test_time = 60
@@ -79,7 +79,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run history log dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         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")
@@ -88,7 +89,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run history log dump test case.
         """
-        cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+        eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
+        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time)
@@ -110,7 +112,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run mempool dump test case.
         """
-        cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+        eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
+        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_mempool", "testpmd>", self.run_cmd_time * 2)
@@ -131,7 +134,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run physical memory dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         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']
@@ -151,7 +155,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run memzone dump test case.
         """
-        cmd = "./%s/app/testpmd -n 1 -c f -- -i" % self.target
+        eal_params = self.dut.create_eal_parameters(cores='1S/4C/1T')
+        cmd = "./%s/app/testpmd %s  -- -i" % (self.target,eal_params)
 
         self.dut.send_expect("%s" % cmd, "testpmd>", self.start_test_time)
         out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2)
@@ -174,7 +179,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run struct size dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         out = self.dut.send_expect("dump_struct_sizes", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -194,15 +200,15 @@ class TestUnitTestsDump(TestCase):
         """
         test_port = self.dut_ports[0]
         pci_address = self.dut.ports_info[test_port]['pci'];
-        self.dut.send_expect("./%s/app/test -n 1 -c %s -b %s"
-                             % (self.target, self.coremask, pci_address), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         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")
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s -w %s"
-                             % (self.target, self.coremask, pci_address), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -213,7 +219,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run dump malloc dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         out = self.dut.send_expect("dump_malloc_stats", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
         match_regex = "Heap id:(\d*)"
@@ -228,7 +235,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run malloc heaps dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         out = self.dut.send_expect("dump_malloc_heaps", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
@@ -247,7 +255,8 @@ class TestUnitTestsDump(TestCase):
         """
         Run log types dump test case.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", self.start_test_time)
+        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)
         out = self.dut.send_expect("dump_log_types", "RTE>>", self.run_cmd_time * 2)
         self.dut.send_expect("quit", "# ")
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 03/14] tests/unit_tests_eal:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 02/14] tests/unit_tests_dump:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 04/14] tests/unit_tests_kni:addcreate_eal_parameters function huang,zhimin
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 796bf3c..84520a3 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -34,7 +34,9 @@ class TestUnitTestsEal(TestCase):
         [arch, machine, self.env, toolchain] = self.target.split('-')
         self.start_test_time = 60
         self.run_cmd_time = 180
-        self.test_app_cmdline = "./%s/app/test -n 1 -c f" % self.target
+        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)
 
     def set_up(self):
         """
@@ -176,7 +178,8 @@ class TestUnitTestsEal(TestCase):
         Run hash readwrite_lf autotest.
         """
 
-        self.dut.send_expect("./%s/app/test" % self.target,
+        eal_params = self.dut.create_eal_parameters()
+        self.dut.send_expect("./%s/app/test %s" % (self.target,eal_params),
                              "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("hash_readwrite_lf_autotest",
                                    "RTE>>", self.run_cmd_time*3)
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 04/14] tests/unit_tests_kni:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 02/14] tests/unit_tests_dump:addcreate_eal_parameters function huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 03/14] tests/unit_tests_eal:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 05/14] tests/unit_tests_loopback:addcreate_eal_parameters function huang,zhimin
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_kni.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
index 63153b6..4966f4e 100644
--- a/tests/TestSuite_unit_tests_kni.py
+++ b/tests/TestSuite_unit_tests_kni.py
@@ -74,8 +74,7 @@ class TestUnitTestsKni(TestCase):
         KNI Prerequisites
         """
         
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
         self.insmod_kni()
 
     def set_up(self):
@@ -88,7 +87,8 @@ class TestUnitTestsKni(TestCase):
         """
         Run kni autotest.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("kni_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 05/14] tests/unit_tests_loopback:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (2 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 04/14] tests/unit_tests_kni:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 06/14] tests/unit_tests_lpm:addcreate_eal_parameters function huang,zhimin
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_loopback.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_unit_tests_loopback.py b/tests/TestSuite_unit_tests_loopback.py
index bc459d4..22e6bee 100644
--- a/tests/TestSuite_unit_tests_loopback.py
+++ b/tests/TestSuite_unit_tests_loopback.py
@@ -64,8 +64,7 @@ class TestUnitTestsLoopback(TestCase):
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
         localPort = self.tester.get_local_port(self.dut_ports[0])
         self.tester_itf = self.tester.get_interface(localPort)
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
         [self.arch, machine, env, toolchain] = self.target.split('-')
         self.verify(self.arch in ["x86_64", "arm64"], "pmd perf request running in x86_64 or arm64")
@@ -97,7 +96,8 @@ class TestUnitTestsLoopback(TestCase):
 
         self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
         self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#")
-        self.dut.send_expect("./app/test/test -n 1 -c %s" % self.coremask, "R.*T.*E.*>.*>", 60)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
+        self.dut.send_expect("./app/test/test %s" % (eal_params), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
         print(out)
         self.dut.send_expect("quit", "# ")
@@ -118,7 +118,8 @@ class TestUnitTestsLoopback(TestCase):
 
         self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
         self.tester.send_expect("tcpdump -i %s -w ./getPackageByTcpdump.cap 2> /dev/null& " % self.tester_itf, "#")
-        self.dut.send_expect("./app/test/test -n 1 -c %s" % self.coremask, "R.*T.*E.*>.*>", 60)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
+        self.dut.send_expect("./app/test/test %s" % (eal_params), "R.*T.*E.*>.*>", 60)
         self.dut.send_command("pmd_perf_autotest", 30)
         # There is no packet loopback, so the test is hung.
         # It needs to kill the process manually.
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 06/14] tests/unit_tests_lpm:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (3 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 05/14] tests/unit_tests_loopback:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 07/14] tests/unit_tests_mbuf:addcreate_eal_parameters function huang,zhimin
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_lpm.py | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py
index 6e73148..7a35935 100644
--- a/tests/TestSuite_unit_tests_lpm.py
+++ b/tests/TestSuite_unit_tests_lpm.py
@@ -60,8 +60,7 @@ class TestUnitTestsLpmIpv6(TestCase):
 
         Qos Prerequisites
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -73,9 +72,10 @@ class TestUnitTestsLpmIpv6(TestCase):
         """
         Run lpm for IPv4 autotest.
         """
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
         self.dut.send_expect(
-            "./%s/app/test -n 1 -c %s"
-            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+            "./%s/app/test %s"
+            % (self.target,eal_params), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("lpm_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -84,9 +84,10 @@ class TestUnitTestsLpmIpv6(TestCase):
         """
         Run lpm for IPv6 autotest.
         """
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
         self.dut.send_expect(
-            "./%s/app/test -n 1 -c %s"
-            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+            "./%s/app/test %s"
+            % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("lpm6_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -95,9 +96,10 @@ class TestUnitTestsLpmIpv6(TestCase):
         """
         Run lpm for IPv4 performance autotest.
         """
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
         self.dut.send_expect(
-            "./%s/app/test -n 1 -c %s"
-            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+            "./%s/app/test %s"
+            % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("lpm_perf_autotest", "RTE>>", 600)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -106,9 +108,10 @@ class TestUnitTestsLpmIpv6(TestCase):
         """
         Run lpm for IPv6 performance autotest.
         """
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
         self.dut.send_expect(
-            "./%s/app/test -n 1 -c %s"
-            % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+            "./%s/app/test %s"
+            % (self.target, eal_params), "R.*T.*E.*>.*>", 60)
         out = self.dut.send_expect("lpm6_perf_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 07/14] tests/unit_tests_mbuf:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (4 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 06/14] tests/unit_tests_lpm:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 08/14] tests/unit_tests_mempool:addcreate_eal_parameters function huang,zhimin
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_mbuf.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_unit_tests_mbuf.py b/tests/TestSuite_unit_tests_mbuf.py
index bd4d47e..366ee3f 100644
--- a/tests/TestSuite_unit_tests_mbuf.py
+++ b/tests/TestSuite_unit_tests_mbuf.py
@@ -57,8 +57,7 @@ class TestUnitTestsMbuf(TestCase):
         """
         Run at the start of each test suite.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
         
     def set_up(self):
         """
@@ -71,7 +70,8 @@ class TestUnitTestsMbuf(TestCase):
         Run mbuf autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("mbuf_autotest", "RTE>>", 180)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 08/14] tests/unit_tests_mempool:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (5 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 07/14] tests/unit_tests_mbuf:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 09/14] tests/unit_tests_pmd_perf:addcreate_eal_parameters function huang,zhimin
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_mempool.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_unit_tests_mempool.py b/tests/TestSuite_unit_tests_mempool.py
index 14b6ff9..1a41daf 100644
--- a/tests/TestSuite_unit_tests_mempool.py
+++ b/tests/TestSuite_unit_tests_mempool.py
@@ -57,8 +57,7 @@ class TestUnitTestsMempool(TestCase):
         """
         Run at the start of each test suite.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -71,7 +70,8 @@ class TestUnitTestsMempool(TestCase):
         Run memory pool autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("mempool_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -80,7 +80,8 @@ class TestUnitTestsMempool(TestCase):
         """
         Run memory pool performance autotest.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("mempool_perf_autotest", "RTE>>", 2000)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 09/14] tests/unit_tests_pmd_perf:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (6 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 08/14] tests/unit_tests_mempool:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 10/14] tests/unit_tests_power:addcreate_eal_parameters function huang,zhimin
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_pmd_perf.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index eccc864..6ecd993 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -106,7 +106,8 @@ class TestUnitTestsPmdPerf(TestCase):
         """
 
         self.core = self.get_core_from_socket()
-        self.dut.send_expect("./app/test/test -n 1 --lcores='%d-%d'" % (self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
+        eal_params = self.dut.create_eal_parameters()
+        self.dut.send_expect("./app/test/test %s --lcores='%d-%d'" % (eal_params,self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
         for mode in self.burst_ctlmodes:
             self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
             out = self.dut.send_expect("pmd_perf_autotest", "RTE>>", 120)
@@ -127,13 +128,14 @@ class TestUnitTestsPmdPerf(TestCase):
         self.table_header = ['Mode']
         self.table_header += self.anchors
         self.result_table_create(self.table_header)
+        eal_params = self.dut.create_eal_parameters()
         print((self.table_header))
 
         for mode in self.rxtx_modes:
             if mode is "scalar":
-                self.dut.send_expect("./app/test/test_scalar -n 1 --lcores='%d-%d'" % (self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
+                self.dut.send_expect("./app/test/test_scalar %s --lcores='%d-%d'" % (eal_params,self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
             else:
-                self.dut.send_expect("./app/test/test -n 1 --lcores='%d-%d'" % (self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
+                self.dut.send_expect("./app/test/test %s --lcores='%d-%d'" % (eal_params,self.core, self.core + 1), "R.*T.*E.*>.*>", 60)
 
             table_row = [mode]
             self.dut.send_expect("set_rxtx_sc continuous", "RTE>>", 10)
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 10/14] tests/unit_tests_power:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (7 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 09/14] tests/unit_tests_pmd_perf:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 11/14] tests/unit_tests_qos:addcreate_eal_parameters function huang,zhimin
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_power.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_unit_tests_power.py b/tests/TestSuite_unit_tests_power.py
index 4d90b88..fb79505 100644
--- a/tests/TestSuite_unit_tests_power.py
+++ b/tests/TestSuite_unit_tests_power.py
@@ -58,8 +58,7 @@ class TestUnitTestsPower(TestCase):
 
         Power Prerequisites
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -72,7 +71,8 @@ class TestUnitTestsPower(TestCase):
         Run power autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("power_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -83,7 +83,8 @@ class TestUnitTestsPower(TestCase):
         """
         # This acpi driver test case need correct BIOS and Grub settings.
         # otherwise, the power lib initialization will be failed
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("power_cpufreq_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -94,7 +95,8 @@ class TestUnitTestsPower(TestCase):
         """
         # This acpi driver test case need correct BIOS and Grub settings.
         # otherwise, the power lib initialization will be failed
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("power_caps_autotest", "RTE>>", 60)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 11/14] tests/unit_tests_qos:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (8 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 10/14] tests/unit_tests_power:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 12/14] tests/unit_tests_ring:addcreate_eal_parameters function huang,zhimin
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_qos.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_unit_tests_qos.py b/tests/TestSuite_unit_tests_qos.py
index a946402..5047b8e 100644
--- a/tests/TestSuite_unit_tests_qos.py
+++ b/tests/TestSuite_unit_tests_qos.py
@@ -59,8 +59,7 @@ class TestUnitTestsQos(TestCase):
 
         QoS Prerequisites
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
 
     def set_up(self):
@@ -74,7 +73,8 @@ class TestUnitTestsQos(TestCase):
         Run RED autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 30)
+        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.*>.*>", 30)
         out = self.dut.send_expect("red_autotest", "RTE>>", 180)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -84,7 +84,8 @@ class TestUnitTestsQos(TestCase):
         Run meter autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 30)
+        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.*>.*>", 30)
         out = self.dut.send_expect("meter_autotest", "RTE>>", 5)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -97,7 +98,8 @@ class TestUnitTestsQos(TestCase):
         [arch, machine, env, toolchain] = self.target.split('-')
         self.verify(arch in ["x86_64" ,"arm64" ,"ppc_64"], "Sched auto_test only support in x86_64 or arm64 ppc_64")
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 30)
+        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.*>.*>", 30)
         out = self.dut.send_expect("sched_autotest", "RTE>>", 5)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 12/14] tests/unit_tests_ring:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (9 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 11/14] tests/unit_tests_qos:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 13/14] tests/unit_tests_ringpmd:addcreate_eal_parameters function huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 14/14] tests/unit_tests_timer:addcreate_eal_parameters function huang,zhimin
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_ring.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_unit_tests_ring.py b/tests/TestSuite_unit_tests_ring.py
index a60adb2..896912b 100644
--- a/tests/TestSuite_unit_tests_ring.py
+++ b/tests/TestSuite_unit_tests_ring.py
@@ -57,8 +57,7 @@ class TestUnitTestsRing(TestCase):
         """
         Run at the start of each test suite.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -71,7 +70,8 @@ class TestUnitTestsRing(TestCase):
         Run ring autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("ring_autotest", "RTE>>", 36000)
         self.verify("Test OK" in out, "Test failed")
 
@@ -80,7 +80,8 @@ class TestUnitTestsRing(TestCase):
         Run ring performance autotest.
         """
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target ,self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("ring_perf_autotest", "RTE>>", 210)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 13/14] tests/unit_tests_ringpmd:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (10 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 12/14] tests/unit_tests_ring:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  2020-01-20  9:00 ` [dts] [PATCH V1 14/14] tests/unit_tests_timer:addcreate_eal_parameters function huang,zhimin
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_ringpmd.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_unit_tests_ringpmd.py b/tests/TestSuite_unit_tests_ringpmd.py
index e7308ba..49895a1 100644
--- a/tests/TestSuite_unit_tests_ringpmd.py
+++ b/tests/TestSuite_unit_tests_ringpmd.py
@@ -58,8 +58,7 @@ class TestUnitTestsRingPmd(TestCase):
         Run at the start of each test suite.
         Nothing to do here.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
 
     def set_up(self):
         """
@@ -72,14 +71,17 @@ class TestUnitTestsRingPmd(TestCase):
         """
         Run Inter-VM share memory test.
         """
-        dev_str = "--vdev=net_ring0 --vdev=net_ring1"
+        dev_str1 = "net_ring0"
+        dev_str2 = "net_ring1"
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 10)
+        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.*>.*>", 10)
         out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Default no eth_ring devices Test failed")
 
-        self.dut.send_expect("./%s/app/test -n 1 -c %s %s" % (self.target, self.coremask, dev_str), "R.*T.*E.*>.*>", 10)
+        eal_params = self.dut.create_eal_parameters(cores=self.cores,vdevs=[dev_str1,dev_strt2])
+        self.dut.send_expect("./%s/app/test %s %s" % (self.target, eal_params), "R.*T.*E.*>.*>", 10)
         out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Two eth_ring devices test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [dts] [PATCH V1 14/14] tests/unit_tests_timer:addcreate_eal_parameters function
  2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
                   ` (11 preceding siblings ...)
  2020-01-20  9:00 ` [dts] [PATCH V1 13/14] tests/unit_tests_ringpmd:addcreate_eal_parameters function huang,zhimin
@ 2020-01-20  9:00 ` huang,zhimin
  12 siblings, 0 replies; 14+ messages in thread
From: huang,zhimin @ 2020-01-20  9:00 UTC (permalink / raw)
  To: dts; +Cc: huang,zhimin

Signed-off-by: huang,zhimin <zhiminx.huang@intel.com>
---
 tests/TestSuite_unit_tests_timer.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_unit_tests_timer.py b/tests/TestSuite_unit_tests_timer.py
index 365c5f6..d53d827 100644
--- a/tests/TestSuite_unit_tests_timer.py
+++ b/tests/TestSuite_unit_tests_timer.py
@@ -57,15 +57,14 @@ class TestUnitTestsTimer(TestCase):
         """
         Run at the start of each test suite.
         """
-        cores = self.dut.get_core_list("all")
-        self.coremask = utils.create_mask(cores)
+        self.cores = self.dut.get_core_list("all")
         #
         # change timeout base number of cores on the system
         # default 60 secs
         #
         self.this_timeout = 60
-        if (len(cores) > 16) :
-            self.this_timeout = self.this_timeout * len(cores)/16
+        if (len(self.cores) > 16) :
+            self.this_timeout = self.this_timeout * len(self.cores)/16
 
     def set_up(self):
         """
@@ -77,7 +76,8 @@ class TestUnitTestsTimer(TestCase):
         """
         Run timer autotest.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("timer_autotest", "RTE>>", self.this_timeout)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -86,7 +86,8 @@ class TestUnitTestsTimer(TestCase):
         """
         Run timer autotest.
         """
-        self.dut.send_expect("./%s/app/test -n 1 -c %s" % (self.target, self.coremask), "R.*T.*E.*>.*>", 60)
+        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.*>.*>", 60)
         out = self.dut.send_expect("timer_perf_autotest", "RTE>>", self.this_timeout)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, back to index

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20  9:00 [dts] [PATCH V1 01/14] tests/unit_tests_crc:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 02/14] tests/unit_tests_dump:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 03/14] tests/unit_tests_eal:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 04/14] tests/unit_tests_kni:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 05/14] tests/unit_tests_loopback:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 06/14] tests/unit_tests_lpm:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 07/14] tests/unit_tests_mbuf:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 08/14] tests/unit_tests_mempool:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 09/14] tests/unit_tests_pmd_perf:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 10/14] tests/unit_tests_power:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 11/14] tests/unit_tests_qos:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 12/14] tests/unit_tests_ring:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 13/14] tests/unit_tests_ringpmd:addcreate_eal_parameters function huang,zhimin
2020-01-20  9:00 ` [dts] [PATCH V1 14/14] tests/unit_tests_timer:addcreate_eal_parameters function huang,zhimin

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox