2016-11-08 22:10:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
pwd
|
2016-11-08 22:42:58 +00:00
|
|
|
go test -coverprofile=main.cover.out -v .
|
2016-11-08 22:10:52 +00:00
|
|
|
go test -coverprofile=utils.cover.out -v ./utils
|
2017-05-02 23:33:51 +00:00
|
|
|
go test -coverprofile=channels.cover.out -v ./channels
|
|
|
|
go test -coverprofile=connection.cover.out -v ./connection
|
|
|
|
go test -coverprofile=policies.cover.out -v ./policies
|
2016-11-08 22:10:52 +00:00
|
|
|
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
|
|
|
|
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
|
|
|
|
rm -rf *.cover.out
|