Fixes after dnephin review

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Upstream-commit: 7dabed019a7aac9b317b586d582431eef3b65e33
Component: engine
This commit is contained in:
Christopher Crone
2017-09-14 19:27:09 +02:00
parent 6cc83af533
commit 44733ed80a
17 changed files with 87 additions and 118 deletions
+34 -8
View File
@@ -1,15 +1,41 @@
#!/usr/bin/env bash
set -e
TESTFLAGS=${TESTFLAGS:-""}
# Currently only DockerSuite and DockerNetworkSuite have been adapted for E2E testing
TESTFLAGS_LEGACY=${TESTFLAGS_LEGACY:-""}
TIMEOUT=${TIMEOUT:-60m}
SCRIPTDIR="$(dirname ${BASH_SOURCE[0]})"
export DOCKER_ENGINE_GOARCH=${DOCKER_ENGINE_GOARCH:-amd64}
echo "Ensure emptyfs image is loaded"
bash /ensure-emptyfs.sh
run_test_integration() {
run_test_integration_suites
run_test_integration_legacy_suites
}
echo "Run integration/container tests"
cd /tests/integration/container
./test.main -test.v
run_test_integration_suites() {
local flags="-test.v -test.timeout=${TIMEOUT} $TESTFLAGS"
for dir in /tests/integration/*; do
if ! (
cd $dir
echo "Running $PWD"
./test.main $flags
); then exit 1; fi
done
}
echo "Run integration-cli tests (DockerSuite, DockerNetworkSuite)"
cd /tests/integration-cli
./test.main -test.v -check.v -check.f "DockerSuite|DockerNetworkSuite"
run_test_integration_legacy_suites() {
(
flags="-check.v -check.timeout=${TIMEOUT} -test.timeout=360m $TESTFLAGS_LEGACY"
cd /tests/integration-cli
echo "Running $PWD"
./test.main $flags
)
}
bash $SCRIPTDIR/ensure-emptyfs.sh
echo "Run integration tests"
run_test_integration