github.com/raychaser/docker@v1.5.0/project/make/test-integration (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  DEST=$1
     5  
     6  INIT=$DEST/../dynbinary/dockerinit-$VERSION
     7  [ -x "$INIT" ] || {
     8  	source "$(dirname "$BASH_SOURCE")/.dockerinit"
     9  	INIT="$DEST/dockerinit"
    10  }
    11  export TEST_DOCKERINIT_PATH="$INIT"
    12  
    13  bundle_test_integration() {
    14  	LDFLAGS="
    15  		$LDFLAGS
    16  		-X $DOCKER_PKG/dockerversion.INITSHA1 \"$DOCKER_INITSHA1\"
    17  	" go_test_dir ./integration \
    18  		"-coverpkg $(find_dirs '*.go' | sed 's,^\.,'$DOCKER_PKG',g' | paste -d, -s)"
    19  }
    20  
    21  # this "grep" hides some really irritating warnings that "go test -coverpkg"
    22  # spews when it is given packages that aren't used
    23  bundle_test_integration 2>&1 \
    24  	| grep --line-buffered -v '^warning: no packages being tested depend on ' \
    25  	| tee -a $DEST/test.log