test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
@ 2018-11-30  1:12 Xueqin Lin
  2018-12-03  3:26 ` Tu, Lijuan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Xueqin Lin @ 2018-11-30  1:12 UTC (permalink / raw)
  To: dts; +Cc: xueqin.lin

From: "xueqin.lin" <xueqin.lin@intel.com>

test_hash_functions
test_hash_multiwriter
test_hash_readwrite
test_hash_readwrite_lf		

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>

---
 tests/TestSuite_unit_tests_eal.py | 55 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 68a4cbe..c7de5b7 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
         self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("hash_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
+
+        # Extendable Bucket Table enhances and guarantees insertion of 100% of
+        # the keys for a given hash table size. Add the check that average
+        # table utilization is 100% when extendable table is enabled.
+
+        self.verify("Average table utilization = 100.00%" in out,
+                    "Test failed for extenable bucket table")
         self.verify("Test OK" in out, "Test failed")
 
     def test_hash_perf(self):
@@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
 
+    def test_hash_functions(self):
+        """
+        Run hash functions autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_functions_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_multiwriter(self):
+        """
+        Run hash multiwriter autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_multiwriter_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_readwrite(self):
+        """
+        Run hash readwrite autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_readwrite_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_readwrite_lf(self):
+        """
+        Run hash readwrite_lf autotest.
+        """
+
+        self.dut.send_expect("./%s/app/test" % self.target,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_readwrite_lf_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
     def test_func_reentrancy(self):
         """
         Run function reentrancy autotest.
-- 
2.7.5

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

* Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
  2018-11-30  1:12 [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests Xueqin Lin
@ 2018-12-03  3:26 ` Tu, Lijuan
  2018-12-04  6:07   ` Lin, Xueqin
  2018-12-10  2:08 ` Yao, BingX Y
  2019-01-07  8:18 ` Tu, Lijuan
  2 siblings, 1 reply; 6+ messages in thread
From: Tu, Lijuan @ 2018-12-03  3:26 UTC (permalink / raw)
  To: Lin, Xueqin, dts; +Cc: Lin, Xueqin

Hi xueqin,

Did you forget test plan?

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Friday, November 30, 2018 9:13 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit
> tests.
> 
> From: "xueqin.lin" <xueqin.lin@intel.com>
> 
> test_hash_functions
> test_hash_multiwriter
> test_hash_readwrite
> test_hash_readwrite_lf
> 
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
> 
> ---
>  tests/TestSuite_unit_tests_eal.py | 55
> +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 55 insertions(+)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 68a4cbe..c7de5b7 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>",
> self.start_test_time)
>          out = self.dut.send_expect("hash_autotest", "RTE>>",
> self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
> +
> +        # Extendable Bucket Table enhances and guarantees insertion of
> 100% of
> +        # the keys for a given hash table size. Add the check that average
> +        # table utilization is 100% when extendable table is enabled.
> +
> +        self.verify("Average table utilization = 100.00%" in out,
> +                    "Test failed for extenable bucket table")
>          self.verify("Test OK" in out, "Test failed")
> 
>      def test_hash_perf(self):
> @@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> 
> +    def test_hash_functions(self):
> +        """
> +        Run hash functions autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_functions_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_multiwriter(self):
> +        """
> +        Run hash multiwriter autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_multiwriter_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite(self):
> +        """
> +        Run hash readwrite autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite_lf(self):
> +        """
> +        Run hash readwrite_lf autotest.
> +        """
> +
> +        self.dut.send_expect("./%s/app/test" % self.target,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_lf_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
>      def test_func_reentrancy(self):
>          """
>          Run function reentrancy autotest.
> --
> 2.7.5

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

* Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
  2018-12-03  3:26 ` Tu, Lijuan
@ 2018-12-04  6:07   ` Lin, Xueqin
  2018-12-10  1:57     ` Yao, BingX Y
  0 siblings, 1 reply; 6+ messages in thread
From: Lin, Xueqin @ 2018-12-04  6:07 UTC (permalink / raw)
  To: Tu, Lijuan, dts

The unit tests are not new, I will try to add this part.

Best regards,
Xueqin


-----Original Message-----
From: Tu, Lijuan 
Sent: Monday, December 3, 2018 11:26 AM
To: Lin, Xueqin <xueqin.lin@intel.com>; dts@dpdk.org
Cc: Lin, Xueqin <xueqin.lin@intel.com>
Subject: RE: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.

Hi xueqin,

Did you forget test plan?

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Friday, November 30, 2018 9:13 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative 
> unit tests.
> 
> From: "xueqin.lin" <xueqin.lin@intel.com>
> 
> test_hash_functions
> test_hash_multiwriter
> test_hash_readwrite
> test_hash_readwrite_lf
> 
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
> 
> ---
>  tests/TestSuite_unit_tests_eal.py | 55
> +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 55 insertions(+)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 68a4cbe..c7de5b7 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>",
> self.start_test_time)
>          out = self.dut.send_expect("hash_autotest", "RTE>>",
> self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
> +
> +        # Extendable Bucket Table enhances and guarantees insertion 
> + of
> 100% of
> +        # the keys for a given hash table size. Add the check that average
> +        # table utilization is 100% when extendable table is enabled.
> +
> +        self.verify("Average table utilization = 100.00%" in out,
> +                    "Test failed for extenable bucket table")
>          self.verify("Test OK" in out, "Test failed")
> 
>      def test_hash_perf(self):
> @@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> 
> +    def test_hash_functions(self):
> +        """
> +        Run hash functions autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_functions_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_multiwriter(self):
> +        """
> +        Run hash multiwriter autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_multiwriter_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite(self):
> +        """
> +        Run hash readwrite autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite_lf(self):
> +        """
> +        Run hash readwrite_lf autotest.
> +        """
> +
> +        self.dut.send_expect("./%s/app/test" % self.target,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_lf_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
>      def test_func_reentrancy(self):
>          """
>          Run function reentrancy autotest.
> --
> 2.7.5

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

* Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
  2018-12-04  6:07   ` Lin, Xueqin
@ 2018-12-10  1:57     ` Yao, BingX Y
  0 siblings, 0 replies; 6+ messages in thread
From: Yao, BingX Y @ 2018-12-10  1:57 UTC (permalink / raw)
  To: Lin, Xueqin, Tu, Lijuan, dts; +Cc: Wang, FengqinX



-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Lin, Xueqin
Sent: Tuesday, December 4, 2018 2:08 PM
To: Tu, Lijuan <lijuan.tu@intel.com>; dts@dpdk.org
Subject: Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.

The unit tests are not new, I will try to add this part.

Best regards,
Xueqin


-----Original Message-----
From: Tu, Lijuan
Sent: Monday, December 3, 2018 11:26 AM
To: Lin, Xueqin <xueqin.lin@intel.com>; dts@dpdk.org
Cc: Lin, Xueqin <xueqin.lin@intel.com>
Subject: RE: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.

Hi xueqin,

Did you forget test plan?

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Friday, November 30, 2018 9:13 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative 
> unit tests.
> 
> From: "xueqin.lin" <xueqin.lin@intel.com>
> 
> test_hash_functions
> test_hash_multiwriter
> test_hash_readwrite
> test_hash_readwrite_lf
> 
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
> tested-by: Yaobing <Yao, BingX Y@intel.com>
> ---
>  tests/TestSuite_unit_tests_eal.py | 55
> +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 55 insertions(+)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 68a4cbe..c7de5b7 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>",
> self.start_test_time)
>          out = self.dut.send_expect("hash_autotest", "RTE>>",
> self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
> +
> +        # Extendable Bucket Table enhances and guarantees insertion 
> + of
> 100% of
> +        # the keys for a given hash table size. Add the check that average
> +        # table utilization is 100% when extendable table is enabled.
> +
> +        self.verify("Average table utilization = 100.00%" in out,
> +                    "Test failed for extenable bucket table")
>          self.verify("Test OK" in out, "Test failed")
> 
>      def test_hash_perf(self):
> @@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> 
> +    def test_hash_functions(self):
> +        """
> +        Run hash functions autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_functions_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_multiwriter(self):
> +        """
> +        Run hash multiwriter autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_multiwriter_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite(self):
> +        """
> +        Run hash readwrite autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite_lf(self):
> +        """
> +        Run hash readwrite_lf autotest.
> +        """
> +
> +        self.dut.send_expect("./%s/app/test" % self.target,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_lf_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
>      def test_func_reentrancy(self):
>          """
>          Run function reentrancy autotest.
> --
> 2.7.5

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

* Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
  2018-11-30  1:12 [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests Xueqin Lin
  2018-12-03  3:26 ` Tu, Lijuan
@ 2018-12-10  2:08 ` Yao, BingX Y
  2019-01-07  8:18 ` Tu, Lijuan
  2 siblings, 0 replies; 6+ messages in thread
From: Yao, BingX Y @ 2018-12-10  2:08 UTC (permalink / raw)
  To: Lin, Xueqin, dts; +Cc: Lin, Xueqin, Wang, FengqinX



-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
Sent: Friday, November 30, 2018 9:13 AM
To: dts@dpdk.org
Cc: Lin, Xueqin <xueqin.lin@intel.com>
Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.

From: "xueqin.lin" <xueqin.lin@intel.com>

test_hash_functions
test_hash_multiwriter
test_hash_readwrite
test_hash_readwrite_lf		

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
Tested-by:Yaobing<bingx.y.yao@intel.com>
---
 tests/TestSuite_unit_tests_eal.py | 55 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/tests/TestSuite_unit_tests_eal.py b/tests/TestSuite_unit_tests_eal.py
index 68a4cbe..c7de5b7 100644
--- a/tests/TestSuite_unit_tests_eal.py
+++ b/tests/TestSuite_unit_tests_eal.py
@@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
         self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>", self.start_test_time)
         out = self.dut.send_expect("hash_autotest", "RTE>>", self.run_cmd_time)
         self.dut.send_expect("quit", "# ")
+
+        # Extendable Bucket Table enhances and guarantees insertion of 100% of
+        # the keys for a given hash table size. Add the check that average
+        # table utilization is 100% when extendable table is enabled.
+
+        self.verify("Average table utilization = 100.00%" in out,
+                    "Test failed for extenable bucket table")
         self.verify("Test OK" in out, "Test failed")
 
     def test_hash_perf(self):
@@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
         self.dut.send_expect("quit", "# ")
         self.verify("Test OK" in out, "Test failed")
 
+    def test_hash_functions(self):
+        """
+        Run hash functions autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_functions_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_multiwriter(self):
+        """
+        Run hash multiwriter autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_multiwriter_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_readwrite(self):
+        """
+        Run hash readwrite autotest.
+        """
+
+        self.dut.send_expect(self.test_app_cmdline,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_readwrite_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
+    def test_hash_readwrite_lf(self):
+        """
+        Run hash readwrite_lf autotest.
+        """
+
+        self.dut.send_expect("./%s/app/test" % self.target,
+                             "R.*T.*E.*>.*>", self.start_test_time)
+        out = self.dut.send_expect("hash_readwrite_lf_autotest",
+                                   "RTE>>", self.run_cmd_time)
+        self.dut.send_expect("quit", "# ")
+        self.verify("Test OK" in out, "Test failed")
+
     def test_func_reentrancy(self):
         """
         Run function reentrancy autotest.
-- 
2.7.5

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

* Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests.
  2018-11-30  1:12 [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests Xueqin Lin
  2018-12-03  3:26 ` Tu, Lijuan
  2018-12-10  2:08 ` Yao, BingX Y
@ 2019-01-07  8:18 ` Tu, Lijuan
  2 siblings, 0 replies; 6+ messages in thread
From: Tu, Lijuan @ 2019-01-07  8:18 UTC (permalink / raw)
  To: Lin, Xueqin, dts; +Cc: Lin, Xueqin

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin
> Sent: Friday, November 30, 2018 9:13 AM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>
> Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit
> tests.
> 
> From: "xueqin.lin" <xueqin.lin@intel.com>
> 
> test_hash_functions
> test_hash_multiwriter
> test_hash_readwrite
> test_hash_readwrite_lf
> 
> Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
> 
> ---
>  tests/TestSuite_unit_tests_eal.py | 55
> +++++++++++++++++++++++++++++++++++++++
>  1 file changed, 55 insertions(+)
> 
> diff --git a/tests/TestSuite_unit_tests_eal.py
> b/tests/TestSuite_unit_tests_eal.py
> index 68a4cbe..c7de5b7 100644
> --- a/tests/TestSuite_unit_tests_eal.py
> +++ b/tests/TestSuite_unit_tests_eal.py
> @@ -115,6 +115,13 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect(self.test_app_cmdline, "R.*T.*E.*>.*>",
> self.start_test_time)
>          out = self.dut.send_expect("hash_autotest", "RTE>>",
> self.run_cmd_time)
>          self.dut.send_expect("quit", "# ")
> +
> +        # Extendable Bucket Table enhances and guarantees insertion of
> 100% of
> +        # the keys for a given hash table size. Add the check that average
> +        # table utilization is 100% when extendable table is enabled.
> +
> +        self.verify("Average table utilization = 100.00%" in out,
> +                    "Test failed for extenable bucket table")
>          self.verify("Test OK" in out, "Test failed")
> 
>      def test_hash_perf(self):
> @@ -128,6 +135,54 @@ class TestUnitTestsEal(TestCase):
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Test failed")
> 
> +    def test_hash_functions(self):
> +        """
> +        Run hash functions autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_functions_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_multiwriter(self):
> +        """
> +        Run hash multiwriter autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_multiwriter_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite(self):
> +        """
> +        Run hash readwrite autotest.
> +        """
> +
> +        self.dut.send_expect(self.test_app_cmdline,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
> +    def test_hash_readwrite_lf(self):
> +        """
> +        Run hash readwrite_lf autotest.
> +        """
> +
> +        self.dut.send_expect("./%s/app/test" % self.target,
> +                             "R.*T.*E.*>.*>", self.start_test_time)
> +        out = self.dut.send_expect("hash_readwrite_lf_autotest",
> +                                   "RTE>>", self.run_cmd_time)
> +        self.dut.send_expect("quit", "# ")
> +        self.verify("Test OK" in out, "Test failed")
> +
>      def test_func_reentrancy(self):
>          """
>          Run function reentrancy autotest.
> --
> 2.7.5

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

end of thread, other threads:[~2019-01-07  8:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30  1:12 [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests Xueqin Lin
2018-12-03  3:26 ` Tu, Lijuan
2018-12-04  6:07   ` Lin, Xueqin
2018-12-10  1:57     ` Yao, BingX Y
2018-12-10  2:08 ` Yao, BingX Y
2019-01-07  8:18 ` 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).