mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
32e61b8f5c
We might want to break it up into smaller pieces (eg. tools in one place, documents in another) but let's worry about that later. Signed-off-by: Solomon Hykes <solomon@docker.com>
15 lines
481 B
Bash
15 lines
481 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
DEST=$1
|
|
|
|
bundle_test_integration() {
|
|
LDFLAGS="$LDFLAGS $LDFLAGS_STATIC_DOCKER" go_test_dir ./integration \
|
|
"-coverpkg $(find_dirs '*.go' | sed 's,^\.,'$DOCKER_PKG',g' | paste -d, -s)"
|
|
}
|
|
|
|
# this "grep" hides some really irritating warnings that "go test -coverpkg"
|
|
# spews when it is given packages that aren't used
|
|
exec > >(tee -a $DEST/test.log) 2>&1
|
|
bundle_test_integration 2>&1 \
|
|
| grep --line-buffered -v '^warning: no packages being tested depend on '
|