github.com/beornf/libcompose@v0.4.1-0.20210215180846-a59802c0f07c/hack/test-integration (about) 1 #!/bin/bash 2 3 export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 4 export DEST=. 5 6 TESTFLAGS="$TESTFLAGS -test.timeout=30m -check.v" 7 8 run_integration_test() { 9 echo "Running integration test against ${DOCKER_DAEMON_VERSION}" 10 11 bundle .integration-daemon-start 12 13 cd integration 14 TESTVERBOSE=$TESTVERBOSE go test $TESTFLAGS 15 cd .. 16 17 bundle .integration-daemon-stop 18 19 echo 20 } 21 22 if test -n "${DAEMON_VERSION}" && test "${DAEMON_VERSION}" != "all"; then 23 if test "${DAEMON_VERSION}" = "default"; then 24 DAEMON_VERSION="${DEFAULT_DOCKER_VERSION}" 25 fi 26 for version in $(echo ${DAEMON_VERSION} | cut -f1); do 27 DOCKER_DAEMON_VERSION="${version}" run_integration_test 28 done 29 else 30 for version in $(echo ${DOCKER_VERSIONS} | cut -f1); do 31 DOCKER_DAEMON_VERSION="${version}" run_integration_test 32 done 33 fi 34 35