2019-08-07 20:08:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
pwd
|
2019-11-26 21:10:09 +00:00
|
|
|
go test -race ${1} -coverprofile=applications.cover.out -v ./applications
|
|
|
|
go test -race ${1} -coverprofile=applications.tokenboard.cover.out -v ./applications/tokenboard
|
|
|
|
go test -race ${1} -coverprofile=primitives.cover.out -v ./primitives
|
|
|
|
go test -race ${1} -coverprofile=primitives.auditable.cover.out -v ./primitives/auditable
|
|
|
|
go test -race ${1} -coverprofile=primitives.core.cover.out -v ./primitives/core
|
|
|
|
go test -race ${1} -coverprofile=primitives.privacypass.cover.out -v ./primitives/privacypass
|
2019-09-15 21:20:05 +00:00
|
|
|
go test -bench "BenchmarkAuditableStore" -benchtime 1000x primitives/auditable/*.go
|
2019-08-07 20:08:02 +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
|