2017-04-21 11:23:45 +02:00
|
|
|
#!/usr/bin/env bash
|
2016-02-19 12:58:06 +01:00
|
|
|
set -e
|
2015-09-15 21:38:54 +02:00
|
|
|
|
|
|
|
export DEST=.
|
|
|
|
|
2019-05-10 17:24:06 +02:00
|
|
|
TESTFLAGS+=("-test.timeout=20m" -check.v)
|
2016-03-23 23:06:22 +01:00
|
|
|
|
2022-09-14 15:10:08 +02:00
|
|
|
if [ -n "${VERBOSE}" ]; then
|
2019-05-10 17:24:06 +02:00
|
|
|
TESTFLAGS+=(-v)
|
2022-09-14 15:10:08 +02:00
|
|
|
elif [ -n "${VERBOSE_INTEGRATION}" ]; then
|
2019-05-10 17:24:06 +02:00
|
|
|
TESTFLAGS+=(-v)
|
2016-03-23 23:06:22 +01:00
|
|
|
fi
|
2015-09-27 15:56:53 +02:00
|
|
|
|
|
|
|
cd integration
|
2019-05-10 17:24:06 +02:00
|
|
|
echo "Testing against..."
|
2016-05-12 17:18:58 +02:00
|
|
|
docker version
|
2017-10-30 10:02:03 +01:00
|
|
|
|
2021-11-25 10:10:06 +00:00
|
|
|
# shellcheck disable=SC2086
|
2022-09-14 15:10:08 +02:00
|
|
|
# shellcheck disable=SC2048
|
2021-11-25 10:10:06 +00:00
|
|
|
CGO_ENABLED=0 go test -integration ${TESTFLAGS[*]}
|