Commits

Greg Ward committed 710af59

coverage: pass build tags to gocov

What we build we test, and what we test we want coverage data on.

Comments (0)

Files changed (1)

     packages=$*
 fi
 
+tagdir=".build/tags"
+buildtags=`cd $tagdir && echo *`
+tagflag="-tags='$buildtags'"
+
 exclude="fubsy/testutils,\
 github.com/stretchrcom/testify/assert,\
 code.google.com/p/go-bit/bit,\
 for pkg in $packages; do
     json=coverage-`basename $pkg`.json
     report=coverage-`basename $pkg`.txt
-    run "$build1/bin/gocov test -exclude $exclude $pkg > $json"
+    run "$build1/bin/gocov test $tagflag -exclude $exclude $pkg > $json"
     run "$build1/bin/gocov report $json > $report"
 done