github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/containerd/shimv2/shimv2-factory-tests.sh (about) 1 #/bin/bash 2 # 3 # Copyright (c) 2018 HyperHQ Inc. 4 # 5 # SPDX-License-Identifier: Apache-2.0 6 # 7 # This test will perform several tests to validate kata containers with 8 # factory enabled using shimv2 + containerd + cri 9 10 SCRIPT_PATH=$(dirname "$(readlink -f "$0")") 11 12 source "${SCRIPT_PATH}/../../../metrics/lib/common.bash" 13 source /etc/os-release || source /usr/lib/os-release 14 extract_kata_env 15 16 if [[ "$ID" =~ ^opensuse.*$ ]] || [ "$ID" == sles ] || [ "$ID" == rhel ]; then 17 issue="https://github.com/kata-containers/tests/issues/1251" 18 echo "Skip shimv2 on $ID, see: $issue" 19 exit 20 fi 21 22 if [ -z $INITRD_PATH ]; then 23 echo "Skipping vm templating test as initrd is not set" 24 exit 0 25 fi 26 27 echo "========================================" 28 echo " start shimv2 with factory testing" 29 echo "========================================" 30 31 export SHIMV2_TEST=true 32 export FACTORY_TEST=true 33 34 ${SCRIPT_PATH}/../cri/integration-tests.sh 35