mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b3d5e9527a
If coverpkg is missing on `go test` command, only the current package will be covered. That's the case of unit tests. For integration tests we need to explicitly declare each package. Docker-DCO-1.1-Signed-off-by: Fabio Falci <fabiofalci@gmail.com> (github: fabiofalci)
12 lines
267 B
Bash
12 lines
267 B
Bash
#!/bin/bash
|
|
|
|
DEST=$1
|
|
|
|
set -e
|
|
|
|
bundle_test_integration() {
|
|
LDFLAGS="$LDFLAGS $LDFLAGS_STATIC" go_test_dir ./integration \
|
|
"-coverpkg $(find_dirs '*.go' | sed 's,^\.,github.com/dotcloud/docker,g' | paste -d, -s)"
|
|
}
|
|
|
|
bundle_test_integration 2>&1 | tee $DEST/test.log
|