From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id B5C67324D for ; Mon, 10 Dec 2018 03:08:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2018 18:08:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,336,1539673200"; d="scan'208";a="282279939" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 09 Dec 2018 18:08:50 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 18:08:50 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 18:08: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 10:08:48 +0800 From: "Yao, BingX Y" To: "Lin, Xueqin" , "dts@dpdk.org" CC: "Lin, Xueqin" , "Wang, FengqinX" Thread-Topic: [dts] [PATCH] tests/unit_tests_eal: add more hash relative unit tests. Thread-Index: AQHUiHxahI4TqF2oKEKtfn2PN1t/pqV3SUWg Date: Mon, 10 Dec 2018 02:08:47 +0000 Message-ID: <95BCD24840F32441BEA74E0F8A31839E04ECD291@shsmsx102.ccr.corp.intel.com> References: <1543540378-116447-1-git-send-email-xueqin.lin@intel.com> In-Reply-To: <1543540378-116447-1-git-send-email-xueqin.lin@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 02:08:52 -0000 -----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 unit te= sts. From: "xueqin.lin" test_hash_functions test_hash_multiwriter test_hash_readwrite test_hash_readwrite_lf =09 Signed-off-by: Xueqin Lin Tested-by:Yaobing --- 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 =3D self.dut.send_expect("hash_autotest", "RTE>>", self.run_cm= d_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 =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. --=20 2.7.5