From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id CEC691B3B9 for ; Tue, 4 Dec 2018 07:07:46 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2018 22:07:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,312,1539673200"; d="scan'208";a="122707270" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 03 Dec 2018 22:07:44 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 3 Dec 2018 22:07:44 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 3 Dec 2018 22:07:44 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.203]) by shsmsx102.ccr.corp.intel.com ([169.254.2.182]) with mapi id 14.03.0415.000; Tue, 4 Dec 2018 14:07:42 +0800 From: "Lin, Xueqin" To: "Tu, Lijuan" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests. Thread-Index: AQHUirf7LiXSf4vocU6OdTotovOdZaVuGbFg Date: Tue, 4 Dec 2018 06:07:42 +0000 Message-ID: <0D300480287911409D9FF92C1FA2A3355B45C827@SHSMSX104.ccr.corp.intel.com> References: <1543540378-116447-1-git-send-email-xueqin.lin@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0B9DA78E@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0B9DA78E@SHSMSX101.ccr.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWU1YTUxODgtOWZjYy00ZjJlLTkwN2YtY2ZhZGQxZTY2YmY0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJUZk04XC9cL2g2Vjl1VmwrNzJJY3lJTlN0eXB4b0VjRWJ4OFg2eCtNYnYzWEMrS2c4SFp5Z0hHNmNcLyt3cCsrQ21JIn0= dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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: Tue, 04 Dec 2018 06:07:47 -0000 The unit tests are not new, I will try to add this part. Best regards, Xueqin -----Original Message----- From: Tu, Lijuan=20 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 >=20 > --- > 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