after the changes to unit test framework, fixing gccgo to run unit tests

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
Srini Brahmaroutu 2015-10-31 20:22:44 +00:00
parent 49f55b273b
commit 81b3d2eec9
1 changed files with 6 additions and 1 deletions

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"