test suite reviews and discussions
 help / color / Atom feed
From: "huang,zhimin" <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: "huang,zhimin" <zhiminx.huang@intel.com>
Subject: [dts] [PATCH V1 09/14] tests/unit_tests_pmd_perf:addcreate_eal_parameters function
Date: Mon, 20 Jan 2020 17:00:23 +0800
Message-ID: <1579510828-133042-9-git-send-email-zhiminx.huang@intel.com> (raw)
In-Reply-To: <1579510828-133042-1-git-send-email-zhiminx.huang@intel.com>

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


  parent reply index

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` huang,zhimin [this message]
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

Reply instructions:

You may reply publically 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=1579510828-133042-9-git-send-email-zhiminx.huang@intel.com \
    --to=zhiminx.huang@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

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