From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0CCCFA04C2; Mon, 25 Nov 2019 09:39:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EED752952; Mon, 25 Nov 2019 09:39:23 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id A936428EE for ; Mon, 25 Nov 2019 09:39:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Nov 2019 00:39:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,241,1571727600"; d="scan'208";a="216882209" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 25 Nov 2019 00:39:20 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 25 Nov 2019 00:39:19 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 25 Nov 2019 00:39:19 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.60]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.63]) with mapi id 14.03.0439.000; Mon, 25 Nov 2019 16:39:17 +0800 From: "Wan, Zhe" To: "Zhao, XinfengX" , "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 4/5] tests: add suite for compressdev isal pmd test Thread-Index: AQHVo2G1VvklRKWn6keMQb6UMZSe8KebkNYA Date: Mon, 25 Nov 2019 08:39:17 +0000 Message-ID: <861C16A15685B44AA870C0D2A97B60458A2891D1@SHSMSX103.ccr.corp.intel.com> References: <1574634769-325555-1-git-send-email-xinfengx.zhao@intel.com> <1574634769-325555-4-git-send-email-xinfengx.zhao@intel.com> <44051B25D8C8784BB77FFB604D6A70CA120A1E25@shsmsx102.ccr.corp.intel.com> In-Reply-To: <44051B25D8C8784BB77FFB604D6A70CA120A1E25@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWIyZGVjZmItNjJjZi00YWJmLTgyOWQtNzQ2YzdmYTAxMWRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidHE4ck82K2pDMmtoZ2szRnhWZ3J6RFp2MWN3dzYrTFUrYVYxOVFVaFlqRVJsanJLVldVK09wZ3BUY1NCdkQyZCJ9 dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 4/5] tests: add suite for compressdev isal pmd test 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Acked-by: Wan, Zhe -----Original Message----- From: Zhao, XinfengX =20 Sent: 2019=1B$BG/=1B(B11=1B$B7n=1B(B25=1B$BF|=1B(B 15:27 To: dts@dpdk.org; Wan, Zhe Subject: RE: [dts][PATCH V1 4/5] tests: add suite for compressdev isal pmd = test Tested-by: Zhao, Xinfeng -----Original Message----- From: Zhao, XinfengX Sent: Monday, November 25, 2019 6:33 AM To: dts@dpdk.org Cc: Zhao, XinfengX Subject: [dts][PATCH V1 4/5] tests: add suite for compressdev isal pmd test Signed-off-by: Xinfeng Zhao --- tests/TestSuite_compressdev_isal_pmd.py | 84 +++++++++++++++++++++++++++++= ++++ 1 file changed, 84 insertions(+) create mode 100644 tests/TestSuite_compressdev_isal_pmd.py diff --git a/tests/TestSuite_compressdev_isal_pmd.py b/tests/TestSuite_comp= ressdev_isal_pmd.py new file mode 100644 index 0000000..8d7e22e --- /dev/null +++ b/tests/TestSuite_compressdev_isal_pmd.py @@ -0,0 +1,84 @@ +# BSD LICENSE +# +# Copyright(c) 2019 Intel Corporation. All rights reserved. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without #=20 +modification, are permitted provided that the following conditions #=20 +are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Intel Corporation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS #=20 +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT #=20 +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR #=20 +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT #=20 +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, #=20 +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT #=20 +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, #=20 +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY #=20 +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT #=20 +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE #=20 +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +import os +from test_case import TestCase +import json +import compress_common as cc + +class TestCompressdevIsalPmd(TestCase): + + def set_up_all(self): + self.prepare_dpdk() + cc.default_eals.update({'w': "0000:00:00.0", "vdev": "compress_isa= l"}) + cc.default_opts.update({"driver-name": "compress_isal"}) + self._perf_result =3D dict() + + def set_up(self): + pass + + def prepare_dpdk(self): + self.dut.send_expect( + "sed -i 's/CONFIG_RTE_COMPRESSDEV_TEST=3Dn$/CONFIG_RTE_COMPRES= SDEV_TEST=3Dy/' config/common_base", "# ") + self.dut.send_expect( + "sed -i 's/CONFIG_RTE_LIBRTE_PMD_ISAL=3Dn$/CONFIG_RTE_LIBRTE_P= MD_ISAL=3Dy/' config/common_base", "# ") + self.dut.build_install_dpdk(self.dut.target) + + def test_isal_pmd_unit_test(self): + cc.run_unit(self) + + def test_isal_pmd_fixed_func(self): + cc.default_opts.update({"huffman-enc": "fixed"}) + result =3D cc.run_perf(self) + self._perf_result.update(result) + + def test_isal_pmd_dynamic_func(self): + cc.default_opts.update({"huffman-enc": "dynamic"}) + result =3D cc.run_perf(self) + self._perf_result.update(result) + + def tear_down(self): + pass + + def tear_down_all(self): + self.dut.kill_all() + + self.dut.send_expect( + "sed -i 's/CONFIG_RTE_COMPRESSDEV_TEST=3Dy$/CONFIG_RTE_COMPRES= SDEV_TEST=3Dn/' config/common_base", "# ") + self.dut.send_expect( + "sed -i 's/CONFIG_RTE_LIBRTE_PMD_ISAL=3Dy$/CONFIG_RTE_LIBRTE_P= MD_ISAL=3Dn/' config/common_base", "# ") + self.dut.build_install_dpdk(self.dut.target) + + if not self._perf_result: + return + with open(self.logger.log_path + "/" + self.suite_name + ".json", = "w") as f: + json.dump(self._perf_result, f, indent=3D4) -- 2.7.4