|
@@ -63,7 +63,7 @@ fi
|
|
# Use these flags when compiling the tests and final binary
|
|
# Use these flags when compiling the tests and final binary
|
|
LDFLAGS='-X main.GITCOMMIT "'$GITCOMMIT'" -X main.VERSION "'$VERSION'" -w'
|
|
LDFLAGS='-X main.GITCOMMIT "'$GITCOMMIT'" -X main.VERSION "'$VERSION'" -w'
|
|
LDFLAGS_STATIC='-X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"'
|
|
LDFLAGS_STATIC='-X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"'
|
|
-BUILDFLAGS='-tags netgo'
|
|
|
|
|
|
+BUILDFLAGS='-tags netgo -a'
|
|
|
|
|
|
HAVE_GO_TEST_COVER=
|
|
HAVE_GO_TEST_COVER=
|
|
if \
|
|
if \
|
|
@@ -88,10 +88,6 @@ go_test_dir() {
|
|
coverprofile="$DEST/coverprofiles/${coverprofile//\//-}"
|
|
coverprofile="$DEST/coverprofiles/${coverprofile//\//-}"
|
|
testcover=( -cover -coverprofile "$coverprofile" )
|
|
testcover=( -cover -coverprofile "$coverprofile" )
|
|
fi
|
|
fi
|
|
- ( # we run "go test -i" ouside the "set -x" to provde cleaner output
|
|
|
|
- cd "$dir"
|
|
|
|
- go test -i -ldflags "$LDFLAGS" $BUILDFLAGS
|
|
|
|
- )
|
|
|
|
(
|
|
(
|
|
set -x
|
|
set -x
|
|
cd "$dir"
|
|
cd "$dir"
|