github.com/fcwu/docker@v1.4.2-0.20150115145920-2a69ca89f0df/project/make/test-integration (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  DEST=$1
     5  
     6  bundle_test_integration() {
     7  	LDFLAGS="$LDFLAGS $LDFLAGS_STATIC_DOCKER" go_test_dir ./integration \
     8  		"-coverpkg $(find_dirs '*.go' | sed 's,^\.,'$DOCKER_PKG',g' | paste -d, -s)"
     9  }
    10  
    11  # this "grep" hides some really irritating warnings that "go test -coverpkg"
    12  # spews when it is given packages that aren't used
    13  exec > >(tee -a $DEST/test.log) 2>&1
    14  bundle_test_integration 2>&1 \
    15  	| grep --line-buffered -v '^warning: no packages being tested depend on '