2013-12-08 20:41:50 -05:00
|
|
|
#!/bin/bash
|
2014-04-08 00:14:19 -04:00
|
|
|
set -e
|
2013-12-08 20:41:50 -05:00
|
|
|
|
|
|
|
DEST=$1
|
|
|
|
|
|
|
|
bundle_test_integration() {
|
2014-03-06 21:55:22 -05:00
|
|
|
LDFLAGS="$LDFLAGS $LDFLAGS_STATIC_DOCKER" go_test_dir ./integration \
|
2014-02-10 18:21:20 -05:00
|
|
|
"-coverpkg $(find_dirs '*.go' | sed 's,^\.,github.com/dotcloud/docker,g' | paste -d, -s)"
|
2013-12-08 20:41:50 -05:00
|
|
|
}
|
|
|
|
|
2014-02-21 13:26:04 -05:00
|
|
|
# this "grep" hides some really irritating warnings that "go test -coverpkg"
|
|
|
|
# spews when it is given packages that aren't used
|
2014-05-18 07:17:31 -04:00
|
|
|
exec > >(tee -a $DEST/test.log) 2>&1
|
2014-02-21 13:26:04 -05:00
|
|
|
bundle_test_integration 2>&1 \
|
2014-05-18 07:17:31 -04:00
|
|
|
| grep --line-buffered -v '^warning: no packages being tested depend on '
|