From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 5DF55322C for ; Mon, 10 Dec 2018 02:57:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2018 17:57:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,336,1539673200"; d="scan'208";a="117407344" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 09 Dec 2018 17:57:50 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 17:57:49 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.182]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.59]) with mapi id 14.03.0415.000; Mon, 10 Dec 2018 09:57:48 +0800 From: "Yao, BingX Y" To: "Lin, Xueqin" , "Tu, Lijuan" , "dts@dpdk.org" CC: "Wang, FengqinX" Thread-Topic: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests. Thread-Index: AQHUirgHyCWfUSreP0icSsma2Z2IXaVtk8gAgAmtheA= Date: Mon, 10 Dec 2018 01:57:47 +0000 Message-ID: <95BCD24840F32441BEA74E0F8A31839E04ECD263@shsmsx102.ccr.corp.intel.com> References: <1543540378-116447-1-git-send-email-xueqin.lin@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0B9DA78E@SHSMSX101.ccr.corp.intel.com> <0D300480287911409D9FF92C1FA2A3355B45C827@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <0D300480287911409D9FF92C1FA2A3355B45C827@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2018 01:57:52 -0000 -----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 ; dts@dpdk.org Subject: Re: [dts] [PATCH] tests/unit_tests_eal: add more hash relative uni= t 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 ; dts@dpdk.org Cc: Lin, Xueqin Subject: RE: [dts] [PATCH] tests/unit_tests_eal: add more hash relative uni= t 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 > Subject: [dts] [PATCH] tests/unit_tests_eal: add more hash relative=20 > unit tests. >=20 > From: "xueqin.lin" >=20 > test_hash_functions > test_hash_multiwriter > test_hash_readwrite > test_hash_readwrite_lf >=20 > Signed-off-by: Xueqin Lin > tested-by: Yaobing > --- > tests/TestSuite_unit_tests_eal.py | 55 > +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) >=20 > 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 =3D self.dut.send_expect("hash_autotest", "RTE>>", > self.run_cmd_time) > self.dut.send_expect("quit", "# ") > + > + # Extendable Bucket Table enhances and guarantees insertion=20 > + of > 100% of > + # the keys for a given hash table size. Add the check that avera= ge > + # table utilization is 100% when extendable table is enabled. > + > + self.verify("Average table utilization =3D 100.00%" in out, > + "Test failed for extenable bucket table") > self.verify("Test OK" in out, "Test failed") >=20 > 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") >=20 > + 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 =3D 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 =3D 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 =3D 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 =3D 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