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 0096FA00BE; Fri, 12 Jun 2020 03:46:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AA0A02C28; Fri, 12 Jun 2020 03:46:49 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C2DF02C15 for ; Fri, 12 Jun 2020 03:46:47 +0200 (CEST) IronPort-SDR: bxYXfYuGurx9IAz0VOzBFm1YAvnsi1f+gih+NUErlOBOoLrKwHAgRN8LeHi3azj8PGRAWVwNta Vjcs9H5orvAQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2020 18:46:46 -0700 IronPort-SDR: 79fZ0cJl4GCXfR5jDkBTZ4XZkZsusxLDdKtcQli7Y3UYRXcHA73uHLCpRvEXb7cGd9IHdECmOg EWyop++82UDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,501,1583222400"; d="scan'208";a="289733130" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 11 Jun 2020 18:46:46 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 18:46:45 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 11 Jun 2020 18:46:45 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 11 Jun 2020 18:46:45 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 11 Jun 2020 18:46:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzwJdZ+8k/ebynpyAWtEtPzSi5bkX/oHj7DPZeSo1gP0X3KqTIKMKKKL9ygAZPPV61v5F2hu8sHcSAN5wgNBJxsG3VaQVN2syeGRhnNWsRi/yCfO5dXrest3If/dP6MWq3kx4lwwZMEPW5UAItEk5xEuYPLX6+Bu4529E6yCWc8sZxPQm6ERCW6PBHr6BGHNHPdOaExJ3YW3p9zSr8u5i6FJ/P0X+/YvqgOvYRNIlyvDcG0ol+mG0F5/YoT1jq2hVdUhizYYTIjLhgLtozCe7Ky8vi9//lt0dMbyAqIwrtXFVUSQsyXEqE4Z1GagAPYdfikrfyACPC1NW1UmQyoEUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/z5bExkktmpM1CJ2KlSeACYECv0JJtJW91KUGwtmzkI=; b=LqFgH5a/8Q229Q/hDRd25c2gjqMISGGMBZ+ggj6UDhCExTYpKPAEB+UxSVRBG8nc0h1LZOOrsjL7QA68Qr8o3hrhOUXuYuFUVWdPUjFpOvcQzFbN6bvxpIpY7bbKd+JxOBOJwjsaoGFwJrFQcup/S5t33U7QXhCyaAKFhkX8zlPHQjkT9SgAa7gHhnQwUcltGmFZ98JEG15YcmEHP1ICfTTB2oHJoUbEBgpEYr2bIUcfzdNsWN/l16QHs1lJEdX8D18XW2aZbKlUIpn+fUa6rNzcTac+PoMn9tV2Isa6yZpKNaPbJqzgEFwidPgVzy2DaSXkHkSD2YLOkQcMokYnew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/z5bExkktmpM1CJ2KlSeACYECv0JJtJW91KUGwtmzkI=; b=jXgdKQOdGKqcDb+jTOSu2wcz8+nLEWpKNzYszUCBlzcdCU0L9bOen4dVxDX06wB0zITAguV5GnZMJERl7hwLb97Q4NUtRycHSe1YbAJp8qA7A9SDNkQAiEI+9O0+7bFPgRlFCw8YXo/O3nXehewEq5gbmCeHZm8GCsIoSPh+NB8= Received: from DM5PR11MB2059.namprd11.prod.outlook.com (2603:10b6:3:8::21) by DM6PR11MB3675.namprd11.prod.outlook.com (2603:10b6:5:13e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.21; Fri, 12 Jun 2020 01:46:42 +0000 Received: from DM5PR11MB2059.namprd11.prod.outlook.com ([fe80::e8ea:dd7e:95e0:59ab]) by DM5PR11MB2059.namprd11.prod.outlook.com ([fe80::e8ea:dd7e:95e0:59ab%4]) with mapi id 15.20.3066.023; Fri, 12 Jun 2020 01:46:42 +0000 From: "Wan, Zhe" To: "Tu, Lijuan" , "dts@dpdk.org" CC: "Zhao, XinfengX" Thread-Topic: [dts] [PATCH V1 6/6] tests/unit_tests_cryptodev_func: rework cryptodev unit test script Thread-Index: AQHWOgr7nNMfhsDPykSnsWuGyUjhxKjUQlyA Date: Fri, 12 Jun 2020 01:46:42 +0000 Message-ID: References: <20200604005445.110297-1-xinfengx.zhao@intel.com> <20200604005445.110297-7-xinfengx.zhao@intel.com> In-Reply-To: <20200604005445.110297-7-xinfengx.zhao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e9c2ab15-6c98-440f-6743-08d80e7274cf x-ms-traffictypediagnostic: DM6PR11MB3675: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:626; x-forefront-prvs: 0432A04947 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oEGLz/edWo3WF1vlN1xgj9dDmIAsXQD8o0XULh9DDOCq0VHb3R05rNP1P727caFsMGJ3AZwVy6Fi2Eqlu6KFqe/Iy7M+I+KkC5/Zmdsspity8j+Znai4af/jQpWr6yfcqWzycaf2bzcer1kjGU6mNkBP0Ob4IPKt29rFGxBMomL/aEBNPDUXQZLlFxXKX7svCWPJW6XqEXRu8oA+2z1O1HZyNSK4KMTnKQGLLh6aEKawMupVoEXvYB5LvszRcE2Iy+3NQc2LVcIwxyzhAQu7nnYOnjns4vaZcU9yusd0jprp+oQhEC4PzheJO2AQ4oaYFUTSzP7hVjuOaTtGCN4QZg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR11MB2059.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(366004)(136003)(346002)(396003)(376002)(39860400002)(52536014)(316002)(55016002)(66476007)(2906002)(8936002)(7696005)(71200400001)(33656002)(110136005)(66946007)(6506007)(53546011)(66556008)(9686003)(83380400001)(478600001)(186003)(5660300002)(107886003)(64756008)(86362001)(66446008)(76116006)(26005)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 7HoA3TvfXn9cV7tl7a/WVyU41uMTEXzvf3t/pGqwBcCkHDwqy4adtdogU28mN0P+bMon7rZMocxu1zpoz/QmGi3XT3URCOhpSPUNbl7I+8kWIrBloVpVGVS18JADPCN/+dIivD2Q1MSJdLF+KZGFqB1AW1YjlUoUld38D4RE/E0DaZkCf2X/Y7YjliDMuVrLIT51YkPp0TSE4u8/TNobaQTVFfl/+6RudL3Jb29HozGDArftah+VDXIkjhUjoXn2mH8AAzeaycB940y2ADSbSTKBfpV/fMUPB3y1/K+wbjTHZDQMK+nXUHNYA/S9HWv9Gg2AF3R16pIZ/IWO7ccTIUlX+iUW502tnrp2dLBYgmtz0ZgxH0rYz7vbTGRMtQ2PA9Yi68DaSMMjaFN9ksXdemO4B3rt8w4/iwplgabDfWs+/EhnxElI225opAks2yzD86L1fyrNBnvA2tEy6Kdjk+myhaOG7REwjuLtVkQ67g8= Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: e9c2ab15-6c98-440f-6743-08d80e7274cf X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2020 01:46:42.0685 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hgcvPH3ADqeeomkTOL3a5sQmcUHgf07caaDTdhZm1kvx7el4EiTgknYx2EqCio9K6DPn0BSYlDfsAXETVAJzCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3675 X-OriginatorOrg: intel.com Subject: Re: [dts] [PATCH V1 6/6] tests/unit_tests_cryptodev_func: rework cryptodev unit test script 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: dts On Behalf Of xinfengx Sent: 2020=1B$BG/=1B(B6=1B$B7n=1B(B4=1B$BF|=1B(B 8:55 To: dts@dpdk.org Cc: Zhao, XinfengX Subject: [dts] [PATCH V1 6/6] tests/unit_tests_cryptodev_func: rework crypt= odev unit test script rework cryptodev unit test script remove the redundant code Signed-off-by: xinfengx --- tests/TestSuite_unit_tests_cryptodev_func.py | 56 ++++++++------------ 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/tests/TestSuite_unit_tests_cryptodev_func.py b/tests/TestSuite= _unit_tests_cryptodev_func.py index a370fc4..e990192 100644 --- a/tests/TestSuite_unit_tests_cryptodev_func.py +++ b/tests/TestSuite_unit_tests_cryptodev_func.py @@ -54,77 +54,63 @@ class UnitTestsCryptodev(TestCase): cc.clear_dpdk_config(self) =20 def test_cryptodev_qat_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_qat_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_qat_autotest") =20 def test_cryptodev_qat_asym_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_qat_asym_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_qat_asym_autotest") =20 def _test_cryptodev_qat_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_qat_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_qat_perftest") =20 def _test_cryptodev_qat_continual_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_qat_continual_perftest", eal_opt_s= tr) + self.__run_unit_test("cryptodev_qat_continual_perftest") =20 def _test_cryptodev_qat_snow3g_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_qat_snow3g_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_qat_snow3g_perftest") =20 def test_cryptodev_aesni_mb_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_aesni_mb_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_aesni_mb_autotest") =20 def _test_cryptodev_aesni_mb_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_aesni_mb_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_aesni_mb_perftest") =20 def test_cryptodev_aesni_gcm_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_aesni_gcm_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_aesni_gcm_autotest") =20 def _test_cryptodev_aesni_gcm_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_aesni_gcm_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_aesni_gcm_perftest") =20 def test_cryptodev_sw_snow3g_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_sw_snow3g_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_sw_snow3g_autotest") =20 def _test_cryptodev_sw_snow3g_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_sw_snow3g_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_sw_snow3g_perftest") =20 def test_cryptodev_sw_kasumi_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_sw_kasumi_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_sw_kasumi_autotest") =20 def test_cryptodev_sw_zuc_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_sw_zuc_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_sw_zuc_autotest") =20 def test_cryptodev_null_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_null_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_null_autotest") =20 def test_cryptodev_openssl_autotest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_openssl_autotest", eal_opt_str) + self.__run_unit_test("cryptodev_openssl_autotest") =20 def _test_cryptodev_openssl_perftest(self): - eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_openssl_perftest", eal_opt_str) + self.__run_unit_test("cryptodev_openssl_perftest") =20 def test_cryptodev_scheduler_autotest(self): + self.__run_unit_test("cryptodev_scheduler_autotest") + + def __run_unit_test(self, testsuite, timeout=3D600): eal_opt_str =3D cc.get_eal_opt_str(self) - self.__run_unit_test("cryptodev_scheduler_autotest", eal_opt_str) + w =3D cc.get_qat_devices(self, num=3D1) =20 - def __run_unit_test(self, testsuite, eal_opt_str, timeout=3D600): self.logger.info("STEP_TEST: " + testsuite) self.dut.send_expect("dmesg -C", "# ", 30) - cmd_str =3D cc.get_dpdk_app_cmd_str(self._app_path, eal_opt_str) + cmd_str =3D cc.get_dpdk_app_cmd_str(self._app_path, eal_opt_str + = " --log-level=3D6 -w %s" % w[0]) self.dut.send_expect(cmd_str, "RTE>>", 30) =20 out =3D "" --=20 2.17.1