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 B2E4FA3201 for ; Mon, 21 Oct 2019 09:40:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A965C3423; Mon, 21 Oct 2019 09:40:46 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 3DBA22C28 for ; Mon, 21 Oct 2019 09:40:44 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Oct 2019 00:40:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,322,1566889200"; d="scan'208";a="191029100" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga008.jf.intel.com with ESMTP; 21 Oct 2019 00:40:43 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 21 Oct 2019 00:40:42 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 21 Oct 2019 00:40:42 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.165]) by shsmsx102.ccr.corp.intel.com ([169.254.2.176]) with mapi id 14.03.0439.000; Mon, 21 Oct 2019 15:40:40 +0800 From: "Wan, Zhe" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V1 4/4] tests/TestSuite_crypto_perf_cryptodev_perf: add cases Thread-Index: AQHVh9WVdftKKbTZ3Ee+iG8ntmgyVKdktfhw Date: Mon, 21 Oct 2019 07:40:40 +0000 Message-ID: <861C16A15685B44AA870C0D2A97B60458A26C3ED@SHSMSX103.ccr.corp.intel.com> References: <1571638221-86724-1-git-send-email-bingx.y.yao@intel.com> <1571638221-86724-4-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1571638221-86724-4-git-send-email-bingx.y.yao@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjgyNDRlNDQtMzE4OC00MzYwLWFlYzAtNGE5MzFlYTdiNDRmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNHpPUXJhZFRsNUNzT2hDcHNIaVwvQm1CWjMyYStjK0R1QUpRc0dHMDBkOCtiU3BqZDRLc1k2eTZla3I1dWlSMVQifQ== 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/4] tests/TestSuite_crypto_perf_cryptodev_perf: add cases 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 Thanks! BR, Wan,Zhe -----Original Message----- From: dts On Behalf Of yaobing Sent: 2019=1B$BG/=1B(B10=1B$B7n=1B(B21=1B$BF|=1B(B 14:10 To: dts@dpdk.org Cc: Yao, BingX Y Subject: [dts] [PATCH V1 4/4] tests/TestSuite_crypto_perf_cryptodev_perf: a= dd cases add cases Signed-off-by: yaobing --- tests/TestSuite_crypto_perf_cryptodev_perf.py | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/tests/TestSuite_crypto_perf_cryptodev_perf.py b/tests/TestSuit= e_crypto_perf_cryptodev_perf.py index 38b959f..6b0fffb 100644 --- a/tests/TestSuite_crypto_perf_cryptodev_perf.py +++ b/tests/TestSuite_crypto_perf_cryptodev_perf.py @@ -75,6 +75,10 @@ class PerfTestsCryptodev(TestCase): cc.build_dpdk_with_cryptodev(self) =20 cc.bind_qat_device(self, "vfio-pci") + src_files =3D ['dep/test_aes_cbc.data', 'dep/test_aes_gcm.data'] + self.dut_file_dir =3D '/tmp' + for file in src_files: + self.dut.session.copy_file_to(file, self.dut_file_dir) =20 def tear_down_all(self): cc.clear_dpdk_config(self) @@ -91,6 +95,109 @@ class PerfTestsCryptodev(TestCase): def tear_down(self): self.dut.kill_all() =20 + def _run_func(self, eal_opt_str, crypto_func_opt_str, case_name): + cmd_str =3D cc.get_dpdk_app_cmd_str(self._app_path, + eal_opt_str, + crypto_func_opt_str) + self.logger.info(cmd_str) + try: + out =3D self.dut.send_expect(cmd_str+">%s/%s.txt" % (self.dut_= file_dir, case_name), "#", 600) + except Exception as ex: + self.logger.error(ex) + raise ex + out =3D self.dut.send_expect("cat %s/%s.txt | grep fail" % (self.d= ut_file_dir, case_name), "#") + return out + + def test_verify_aesni_mb(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_ver= ify_aesni_mb") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_verify_qat(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_ver= ify_qat") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_verify_openssl_qat(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_ver= ify_openssl_qat") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_verify_openssl(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_ver= ify_openssl") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_latency_qat(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_lat= ency_qat") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_latency_auth_qat(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_lat= ency_auth_qat") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_latency_aead_qat(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_lat= ency_aead_qat") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_latency_aesni_gcm(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str, crypto_func_opt_str, "test_lat= ency_aesni_gcm") + self.verify(len(out) =3D=3D 0, "Test function failed") + + def test_latency_auth_aesni_mb(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str,crypto_func_opt_str,"test_laten= cy_auth_aesni_mb") + self.verify(len(out) =3D=3D0 , "Test function failed") + + def test_latency_aesni_mb(self): + if cc.is_test_skip(self): + return + + eal_opt_str =3D cc.get_eal_opt_str(self) + crypto_func_opt_str =3D self._get_crypto_perf_opt_str() + out =3D self._run_func(eal_opt_str,crypto_func_opt_str,"test_laten= cy_aesni_mb") + self.verify(len(out) =3D=3D0 , "Test function failed") + def test_qat_aes_cbc_sha1_hmac(self): if cc.is_test_skip(self): return --=20 2.17.2