Tapir provides a framework for building Anonymous / metadata resistant Services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
770 B

  1. #!/bin/bash
  2. set -e
  3. pwd
  4. go test -race ${1} -coverprofile=applications.cover.out -v ./applications
  5. go test -race ${1} -coverprofile=applications.tokenboard.cover.out -v ./applications/tokenboard
  6. go test -race ${1} -coverprofile=primitives.cover.out -v ./primitives
  7. go test -race ${1} -coverprofile=primitives.auditable.cover.out -v ./primitives/auditable
  8. go test -race ${1} -coverprofile=primitives.core.cover.out -v ./primitives/core
  9. go test -race ${1} -coverprofile=primitives.privacypass.cover.out -v ./primitives/privacypass
  10. go test -bench "BenchmarkAuditableStore" -benchtime 1000x primitives/auditable/*.go
  11. echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
  12. awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
  13. rm -rf *.cover.out