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 D41EBA2F6B for ; Tue, 8 Oct 2019 07:26:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E5431BEF3; Tue, 8 Oct 2019 07:26:19 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 752B72AB for ; Tue, 8 Oct 2019 07:26:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2019 22:26:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,269,1566889200"; d="scan'208";a="223134705" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 07 Oct 2019 22:26:15 -0700 From: yaobing To: dts@dpdk.org Cc: yaobing Date: Tue, 8 Oct 2019 13:29:27 +0800 Message-Id: <1570512569-17999-1-git-send-email-bingx.y.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" add fips_cryptodev environment variable Signed-off-by: yaobing --- tests/cryptodev_common.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 = test_case.get_suite_cfg()["kasumi_lib_path"] + fip_cflags_path = "'-I/opt/openssl-fips-2.0.16/include/'" + if "fip_cflags_path" in test_case.get_suite_cfg(): + fip_cflags_path = test_case.get_suite_cfg()["fip_cflags_path"] + + fip_ldflags_path = "'-L/opt/openssl-fips-2.0.16/'" + if "fip_ldflags_path" in test_case.get_suite_cfg(): + fip_cflags_path = test_case.get_suite_cfg()["fip_ldflags_path"] + + fip_library_path = "/opt/openssl-fips-2.0.16/" + if "fip_library_path" in test_case.get_suite_cfg(): + fip_cflags_path = test_case.get_suite_cfg()["fip_library_path"] + test_case.dut.send_expect( "export LIBSSO_SNOW3G_PATH={}".format(snow3g_lib_path), "#") test_case.dut.send_expect( "export LIBSSO_ZUC_PATH={}".format(zuc_lib_path), "#") test_case.dut.send_expect( "export LIBSSO_KASUMI_PATH={}".format(kasumi_lib_path), "#") + test_case.dut.send_expect( + "export EXTRA_CFLAGS={}".format(fip_cflags_path), "#") + test_case.dut.send_expect( + "export EXTRA_LDFLAGS={}".format(fip_ldflags_path), "#") + test_case.dut.send_expect( + "export LD_LIBRARY_PATH={}".format(fip_library_path), "#") test_case.dut.send_expect( "sed -i 's/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=n$/CONFIG_RTE_LIBRTE_PMD_AESNI_MB=y/' config/common_base", "# ") -- 2.17.2