gopkg.in/openshift/source-to-image.v1@v1.2.0/hack/test-docker.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}" != "12" ]; 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 docker integration tests ..." 25 echo 26 27 S2I_TIMEOUT="-timeout 600s" "${S2I_ROOT}/hack/test-go.sh" test/integration/docker -v -tags "integration" "${@:1}"