mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Remove integration tests and port them to integration-cli
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
@@ -57,7 +57,6 @@ DEFAULT_BUNDLES=(
|
||||
test-docker-py
|
||||
|
||||
dynbinary
|
||||
test-integration
|
||||
|
||||
cover
|
||||
cross
|
||||
@@ -216,7 +215,6 @@ find_dirs() {
|
||||
find . -not \( \
|
||||
\( \
|
||||
-path './vendor/*' \
|
||||
-o -path './integration/*' \
|
||||
-o -path './integration-cli/*' \
|
||||
-o -path './contrib/*' \
|
||||
-o -path './pkg/mflag/example/*' \
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
DEST=$1
|
||||
|
||||
INIT=$DEST/../dynbinary/dockerinit-$VERSION
|
||||
[ -x "$INIT" ] || {
|
||||
source "${MAKEDIR}/.dockerinit"
|
||||
INIT="$DEST/dockerinit"
|
||||
}
|
||||
export TEST_DOCKERINIT_PATH="$INIT"
|
||||
|
||||
bundle_test_integration() {
|
||||
LDFLAGS="
|
||||
$LDFLAGS
|
||||
-X $DOCKER_PKG/dockerversion.INITSHA1 \"$DOCKER_INITSHA1\"
|
||||
" go_test_dir ./integration \
|
||||
"-coverpkg $(find_dirs '*.go' | sed 's,^\.,'$DOCKER_PKG',g' | paste -d, -s)"
|
||||
}
|
||||
|
||||
# this "grep" hides some really irritating warnings that "go test -coverpkg"
|
||||
# spews when it is given packages that aren't used
|
||||
bundle_test_integration 2>&1 \
|
||||
| grep --line-buffered -v '^warning: no packages being tested depend on ' \
|
||||
| tee -a "$DEST/test.log"
|
||||
Reference in New Issue
Block a user