From: "huang,zhimin" <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: "huang,zhimin" <zhiminx.huang@intel.com>
Subject: [dts] [PATCH V1 11/14] tests/unit_tests_qos:addcreate_eal_parameters function
Date: Mon, 20 Jan 2020 17:00:25 +0800 [thread overview]
Message-ID: <1579510828-133042-11-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_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
next prev parent reply other threads:[~2020-01-20 8:55 UTC|newest]
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 ` [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 ` huang,zhimin [this message]
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 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=1579510828-133042-11-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
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).