2013-12-09 01:41:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
bundle_test_integration() {
|
2014-02-10 23:21:20 +00:00
|
|
|
LDFLAGS="$LDFLAGS $LDFLAGS_STATIC" go_test_dir ./integration \
|
|
|
|
"-coverpkg $(find_dirs '*.go' | sed 's,^\.,github.com/dotcloud/docker,g' | paste -d, -s)"
|
2013-12-09 01:41:50 +00:00
|
|
|
}
|
|
|
|
|
2014-02-21 18:26:04 +00:00
|
|
|
# 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 \
|
2014-02-24 21:59:01 +00:00
|
|
|
| grep --line-buffered -v '^warning: no packages being tested depend on ' \
|
2014-02-21 18:26:04 +00:00
|
|
|
| tee $DEST/test.log
|