2017-04-21 09:23:45 +00:00
|
|
|
#!/usr/bin/env bash
|
2016-02-19 11:58:06 +00:00
|
|
|
set -e
|
2015-09-15 19:38:54 +00:00
|
|
|
|
|
|
|
export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
export DEST=.
|
|
|
|
|
2016-11-14 16:41:12 +00:00
|
|
|
TESTFLAGS="${TESTFLAGS} -test.timeout=9m -check.v"
|
2016-03-23 22:06:22 +00:00
|
|
|
|
|
|
|
if [ -n "$VERBOSE" ]; then
|
|
|
|
TESTFLAGS="${TESTFLAGS} -v"
|
|
|
|
fi
|
2015-09-27 13:56:53 +00:00
|
|
|
|
|
|
|
cd integration
|
2016-05-12 15:18:58 +00:00
|
|
|
echo "Testing against…"
|
|
|
|
docker version
|
2017-10-30 09:02:03 +00:00
|
|
|
|
|
|
|
if [ -n "$TEST_CONTAINER" ]; then
|
|
|
|
echo "Testing from container…"
|
|
|
|
CGO_ENABLED=0 go test -integration -container $TESTFLAGS
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$TEST_HOST" ]; then
|
|
|
|
echo "Testing from host…"
|
|
|
|
CGO_ENABLED=0 go test -integration -host $TESTFLAGS
|
|
|
|
fi
|