test-integration 471 B

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