1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #17578 from brahmaroutu/fix_unit_tests_gccgo

after the changes to unit test framework, fixing gccgo to run unit tests
This commit is contained in:
Vincent Demeester 2015-11-04 20:35:17 +01:00
commit d718388df7

View file

@ -21,7 +21,12 @@ bundle_test_unit() {
"${BUILDFLAGS[@]}" $TEST_PATH \
| grep -v github.com/docker/docker/vendor \
| grep -v github.com/docker/docker/integration-cli)
go test -cover $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
}
if [[ "$(go version)" =~ "gccgo" ]]; then
GCCGOFLAGS=-gccgoflags="-lpthread"
else
COVER=-cover
fi
bundle_test_unit 2>&1 | tee -a "$DEST/test.log"