test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk
@ 2020-02-18  0:18 lihong
  2020-02-18  7:55 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: lihong @ 2020-02-18  0:18 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 84520a3..bd1696b 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -168,7 +168,7 @@ class TestUnitTestsEal(TestCase):
 
         self.dut.send_expect(self.test_app_cmdline,
                              "R.*T.*E.*>.*>", self.start_test_time)
-        out = self.dut.send_expect("hash_readwrite_autotest",
+        out = self.dut.send_expect("hash_readwrite_func_autotest",
                                    "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
@@ -181,7 +181,20 @@ class TestUnitTestsEal(TestCase):
         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",
+        out = self.dut.send_expect("hash_readwrite_lf_perf_autotest",
+                                   "RTE>>", self.run_cmd_time*3)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_readwrite_perf(self):
+        """
+        Run hash readwrite perf autotest.
+        """
+
+        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_perf_autotest",
                                    "RTE>>", self.run_cmd_time*3)
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
-- 
2.17.1


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

* Re: [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk
  2020-02-18  0:18 [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk lihong
@ 2020-02-18  7:55 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-02-18  7:55 UTC (permalink / raw)
  To: Ma, LihongX, dts; +Cc: Ma, LihongX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Tuesday, February 18, 2020 8:18 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk
> 
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
>  tests/TestSuite_unit_tests_eal.py | 17 +++++++++++++++--
>  1 file changed, 15 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 84520a3..bd1696b 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -168,7 +168,7 @@ class TestUnitTestsEal(TestCase):
> 
>          self.dut.send_expect(self.test_app_cmdline,
>                               "R.*T.*E.*>.*>", self.start_test_time)
> -        out = self.dut.send_expect("hash_readwrite_autotest",
> +        out = self.dut.send_expect("hash_readwrite_func_autotest",
>                                     "RTE>>", self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed") @@ -181,7 +181,20 @@ class
> TestUnitTestsEal(TestCase):
>          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",
> +        out = self.dut.send_expect("hash_readwrite_lf_perf_autotest",
> +                                   "RTE>>", self.run_cmd_time*3)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite_perf(self):
> +        """
> +        Run hash readwrite perf autotest.
> +        """
> +
> +        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_perf_autotest",
>                                     "RTE>>", self.run_cmd_time*3)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> --
> 2.17.1


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

end of thread, other threads:[~2020-02-18  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18  0:18 [dts] [PATCH V1] tests/unit_tests_eal: modify cmd according to dpdk lihong
2020-02-18  7:55 ` Tu, Lijuan

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).