tapir/testing/tests.sh

12 lines
476 B
Bash
Raw Normal View History

2019-08-07 20:08:02 +00:00
#!/bin/bash
set -e
pwd
go test ${1} -coverprofile=applications.cover.out -v ./applications
2019-09-14 23:44:19 +00:00
go test ${1} -coverprofile=primitives.cover.out -v ./primitives
go test ${1} -coverprofile=primitives.core.cover.out -v ./primitives/core
go test ${1} -coverprofile=primitives.privacypass.cover.out -v ./primitives/privacypass
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