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 AEB65A2F6B for ; Wed, 9 Oct 2019 02:51:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E4341BFC4; Wed, 9 Oct 2019 02:51:20 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0C5B91BE94 for ; Wed, 9 Oct 2019 02:51:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2019 17:51:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,273,1566889200"; d="scan'208";a="368590588" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 08 Oct 2019 17:51:18 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 8 Oct 2019 17:51:17 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 8 Oct 2019 17:51:17 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.166]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.96]) with mapi id 14.03.0439.000; Wed, 9 Oct 2019 08:51:15 +0800 From: "Chen, Zhaoyan" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" , "Chen, Zhaoyan" Thread-Topic: [dts] [PATCH V1 1/3] add fips environment variable Thread-Index: AQHVfZjx0k58i1iiAUWPmSjiCNClhKdRfBfw Date: Wed, 9 Oct 2019 00:51:15 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA41DD876A@SHSMSX104.ccr.corp.intel.com> References: <1570512569-17999-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1570512569-17999-1-git-send-email-bingx.y.yao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/3] add fips environment variable 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: Chen, Zhaoyan Regards, Zhaoyan Chen > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing > Sent: Tuesday, October 8, 2019 1:29 PM > To: dts@dpdk.org > Cc: Yao, BingX Y > Subject: [dts] [PATCH V1 1/3] add fips environment variable >=20 > add fips_cryptodev environment variable >=20 > Signed-off-by: yaobing > --- > tests/cryptodev_common.py | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) >=20 > diff --git a/tests/cryptodev_common.py b/tests/cryptodev_common.py index > 2e86bca..f521fbe 100644 > --- a/tests/cryptodev_common.py > +++ b/tests/cryptodev_common.py > @@ -44,12 +44,30 @@ def build_dpdk_with_cryptodev(test_case): > if "kasumi_lib_path" in test_case.get_suite_cfg(): > kasumi_lib_path =3D test_case.get_suite_cfg()["kasumi_lib_path"] >=20 > + fip_cflags_path =3D "'-I/opt/openssl-fips-2.0.16/include/'" > + if "fip_cflags_path" in test_case.get_suite_cfg(): > + fip_cflags_path =3D test_case.get_suite_cfg()["fip_cflags_path"] > + > + fip_ldflags_path =3D "'-L/opt/openssl-fips-2.0.16/'" > + if "fip_ldflags_path" in test_case.get_suite_cfg(): > + fip_cflags_path =3D test_case.get_suite_cfg()["fip_ldflags_path"= ] > + > + fip_library_path =3D "/opt/openssl-fips-2.0.16/" > + if "fip_library_path" in test_case.get_suite_cfg(): > + fip_cflags_path =3D test_case.get_suite_cfg()["fip_library_path"= ] > + > test_case.dut.send_expect( > "export LIBSSO_SNOW3G_PATH=3D{}".format(snow3g_lib_path), "#") > test_case.dut.send_expect( > "export LIBSSO_ZUC_PATH=3D{}".format(zuc_lib_path), "#") > test_case.dut.send_expect( > "export LIBSSO_KASUMI_PATH=3D{}".format(kasumi_lib_path), "#") > + test_case.dut.send_expect( > + "export EXTRA_CFLAGS=3D{}".format(fip_cflags_path), "#") > + test_case.dut.send_expect( > + "export EXTRA_LDFLAGS=3D{}".format(fip_ldflags_path), "#") > + test_case.dut.send_expect( > + "export LD_LIBRARY_PATH=3D{}".format(fip_library_path), "#") >=20 > test_case.dut.send_expect( > "sed -i > 's/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=3Dn$/CONFIG_RTE_LIBRTE_PMD_AESNI_MB > =3Dy/' config/common_base", "# ") > -- > 2.17.2