Browse code

after the changes to unit test framework, fixing gccgo to run unit tests Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>

Srini Brahmaroutu authored on 2015/11/01 05:22:44
Showing 1 changed files
... ...
@@ -21,7 +21,12 @@ bundle_test_unit() {
21 21
 		"${BUILDFLAGS[@]}" $TEST_PATH \
22 22
 		| grep -v github.com/docker/docker/vendor \
23 23
 		| grep -v github.com/docker/docker/integration-cli)
24
-	go test -cover $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
24
+	go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
25 25
 }
26 26
 
27
+if [[ "$(go version)" =~ "gccgo" ]]; then
28
+	GCCGOFLAGS=-gccgoflags="-lpthread"
29
+else
30
+	COVER=-cover
31
+fi
27 32
 bundle_test_unit 2>&1 | tee -a "$DEST/test.log"