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 ; \
|
done ; \
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
echo "mode: set" > profile.cov ; \
|
echo "" > profile.cov
|
||||||
for package in $(PACKAGES) ; do \
|
for package in $(PACKAGES) ; do \
|
||||||
go test -a -coverprofile=tmp.cov gobot.io/x/$$package ; \
|
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 ; \
|
done ; \
|
||||||
rm tmp.cov ; \
|
|
||||||
|
|
||||||
robeaux:
|
robeaux:
|
||||||
ifeq (,$(shell which go-bindata))
|
ifeq (,$(shell which go-bindata))
|
||||||
|
|
Loading…
Reference in New Issue