[PATCH 4/4] test_plan: updated testsuite details for ipsec testcases

Yogesh Jangra yogesh.jangra at intel.com
Tue May 2 00:58:42 CEST 2023


IPSEC feature requires installation of librarires. Added the details
related to the required libraries, along with sample script that can
be used to install the libraries.

Signed-off-by: Yogesh Jangra <yogesh.jangra at intel.com>
Signed-off-by: Harshad Narayane <harshad.suresh.narayane at intel.com>
Signed-off-by: Kamalakannan R <kamalakannan.r at intel.com>
---
 ...mple_crypto_devices_installation_script.sh | 53 +++++++++++++++++++
 test_plans/pipeline_test_plan.rst             |  7 +++
 2 files changed, 60 insertions(+)
 create mode 100644 dep/pipeline/sample_crypto_devices_installation_script.sh

diff --git a/dep/pipeline/sample_crypto_devices_installation_script.sh b/dep/pipeline/sample_crypto_devices_installation_script.sh
new file mode 100644
index 00000000..e1f23127
--- /dev/null
+++ b/dep/pipeline/sample_crypto_devices_installation_script.sh
@@ -0,0 +1,53 @@
+#SPDX-License-Identifier: BSD-3-Clause
+#Copyright(c) 2023 Intel Corporation
+
+#!/usr/bin/env bash
+#set -o xtrace
+
+NASM_VERSION=2.15.05
+NASM_TAR_FILE=nasm-$NASM_VERSION.tar.gz
+NASM_DIR=nasm-$NASM_VERSION
+NASM_INSTALLATION_LINK=https://www.nasm.us/pub/nasm/releasebuilds/$NASM_VERSION/$NASM_TAR_FILE
+IPSEC_AESNI_MB_BRANCH_TAG=v1.2
+INSTALLATION_PATH=~
+
+#Switching to installation directory path
+echo "Switching to installation directory path: $INSTALLATION_PATH."
+cd $INSTALLATION_PATH
+
+if [ -d "$INSTALLATION_PATH/crypto_devices" ]
+then
+	#Removing previously created crypto device directory
+	echo "Removing crypto directories at the $INSTALLATION_PATH path."
+	rm -rf crypto_devices
+fi
+
+#Creating crypto device directory at installation path
+echo "Creating installation directory at $INSTALLATION_PATH."
+mkdir crypto_devices
+
+#Switching to crypto device directory
+echo "Switching to installation directory."I
+cd crypto_devices
+echo "Switched to installation directory."
+
+#Installing NASM
+echo "Installing NASM...."
+wget $NASM_INSTALLATION_LINK
+tar -xvf $NASM_TAR_FILE
+cd $NASM_DIR
+./configure
+make
+sudo make install
+echo "NASM installed successfully."
+
+#Installing IPSEC_AESNI_MB
+#Switching back to installation directory
+cd ../
+echo "Installing IPSEC_AESNI_MB...."
+git clone https://github.com/intel/intel-ipsec-mb.git
+cd intel-ipsec-mb/
+git checkout tags/$IPSEC_AESNI_MB_BRANCH_TAG
+make
+sudo make install
+echo "IPSEC_AESNI_MB installed successfully."
\ No newline at end of file
diff --git a/test_plans/pipeline_test_plan.rst b/test_plans/pipeline_test_plan.rst
index ee7a2af5..c887cadc 100644
--- a/test_plans/pipeline_test_plan.rst
+++ b/test_plans/pipeline_test_plan.rst
@@ -36,6 +36,13 @@ Supporting Files
 All the supporting files for this test suite are maintained in the folder named "pipeline"
 present in the {DTS_SRC_DIR}/dep directory.
 
+Crypto device library installation is prerequisite to run/execute ipsec testcases.
+The testcases added in the testsuite uses "Intel(R) Multi-Buffer Crypto for
+IPsec Library (AESNI MB PMD)" as a crypto device for encryption and decryption.
+Installation of crypto device library must be done before executing ipsec testcases
+for successful execution. A sample script for the installation of the crypto device
+(here, AESNI MB) has been provided at {DTS_SRC_DIR}/dep/pipeline/} directory.
+
 Directory Structure of Each Test Case
 =====================================
 Within {DTS_SRC_DIR}/dep/pipeline folder, all files related to a particular test case are maintained
-- 
2.25.1



More information about the dts mailing list