github.com/cptmikhailov/conmon@v2.0.20+incompatible/contrib/cirrus/cri-o_test.sh (about) 1 #!/bin/bash 2 3 set -e 4 source $(dirname $0)/lib.sh 5 6 req_env_var " 7 SRC $SRC 8 CRIO_SRC $CRIO_SRC 9 OS_RELEASE_ID $OS_RELEASE_ID 10 OS_RELEASE_VER $OS_RELEASE_VER 11 " 12 13 cd "$CRIO_SRC" 14 case "$OS_REL_VER" in 15 fedora-29) 16 PATCH="$SRC/$SCRIPT_BASE/network_bats.patch" 17 cd "$CRIO_SRC" 18 echo "WARNING: Applying $PATCH" 19 git apply --index --apply --ignore-space-change --recount "$PATCH" 20 ;; 21 *) bad_os_id_ver ;; 22 esac 23 24 # Assume cri-o and all dependencies are installed from packages 25 # and conmon installed using build_and_replace_conmon() 26 export CRIO_BINARY=/usr/bin/crio 27 export CONMON_BINARY=/usr/libexec/crio/conmon 28 export PAUSE_BINARY=/usr/libexec/crio/pause 29 export CRIO_CNI_PLUGIN=/usr/libexec/cni 30 31 echo "Executing cri-o integration tests (typical 10 - 20 min)" 32 cd "$CRIO_SRC" 33 timeout --foreground --kill-after=5m 60m ./test/test_runner.sh