github.com/nak3/source-to-image@v1.1.10-0.20180319140719-2ed55639898d/hack/test-integration.sh (about) 1 #!/bin/bash 2 3 set -o errexit 4 set -o nounset 5 set -o pipefail 6 7 readonly S2I_ROOT=$(dirname "${BASH_SOURCE}")/.. 8 9 s2i::cleanup() { 10 echo 11 echo "Complete" 12 } 13 14 readonly img_count="$(docker images | grep -c sti_test/sti-fake || :)" 15 16 if [ "${img_count}" != "10" ]; then 17 echo "Missing test images, run 'hack/build-test-images.sh' and try again." 18 exit 1 19 fi 20 21 trap s2i::cleanup EXIT SIGINT 22 23 echo 24 echo "Running integration tests ..." 25 echo 26 27 S2I_TIMEOUT="-timeout 600s" "${S2I_ROOT}/hack/test-go.sh" test/integration -v -tags 'integration' "${@:1}"