This repository has been archived on 2020-04-20. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-08 22:10:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-09 21:58:50 +00:00
|
|
|
#go test ${1} -coverprofile=coverage.out -coverpkg="git.openprivacy.ca/openprivacy/libricochet-go/channels,git.openprivacy.ca/openprivacy/libricochet-go/channels/v3/inbound,git.openprivacy.ca/openprivacy/libricochet-go/channels/v3/outbound,git.openprivacy.ca/openprivacy/libricochet-go/identity,git.openprivacy.ca/openprivacy/libricochet-go/utils,git.openprivacy.ca/openprivacy/libricochet-go/policies,git.openprivacy.ca/openprivacy/libricochet-go/connection,git.openprivacy.ca/openprivacy/libricochet-go" -v . ./utils/ ./channels/ ./channels/v3/inbound ./connection ./policies ./identity ./utils
|
|
|
|
|
2016-11-08 22:10:52 +00:00
|
|
|
set -e
|
|
|
|
pwd
|
2019-11-08 00:11:14 +00:00
|
|
|
GORACE="haltonerror=1"
|
|
|
|
go test -race ${1} -coverprofile=utils.cover.out -v ./utils
|
|
|
|
go test -race ${1} -coverprofile=channels.cover.out -v ./channels
|
|
|
|
go test -race ${1} -coverprofile=channels.v3.inbound.cover.out -v ./channels/v3/inbound
|
|
|
|
go test -race ${1} -coverprofile=connection.cover.out -v ./connection
|
|
|
|
go test -race ${1} -coverprofile=policies.cover.out -v ./policies
|
|
|
|
go test -race ${1} -coverprofile=identity.cover.out -v ./identity
|
|
|
|
go test -race ${1} -coverprofile=root.cover.out -v ./
|
2018-11-09 21:58:50 +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
|
2018-09-22 20:12:08 +00:00
|
|
|
|