test: correct 'make cover' task to work correctly
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
3c7285942c
commit
89fffba48b
6
Makefile
6
Makefile
|
@ -7,12 +7,12 @@ test:
|
|||
done ; \
|
||||
|
||||
cover:
|
||||
echo "mode: set" > profile.cov ; \
|
||||
echo "" > profile.cov
|
||||
for package in $(PACKAGES) ; do \
|
||||
go test -a -coverprofile=tmp.cov gobot.io/x/$$package ; \
|
||||
cat tmp.cov | grep -v "mode: set" >> profile.cov ; \
|
||||
cat tmp.cov >> profile.cov ; \
|
||||
rm tmp.cov ; \
|
||||
done ; \
|
||||
rm tmp.cov ; \
|
||||
|
||||
robeaux:
|
||||
ifeq (,$(shell which go-bindata))
|
||||
|
|
Loading…
Reference in New Issue