File: test_all.sh

package info (click to toggle)
golang-github-grpc-ecosystem-go-grpc-prometheus 1.2.0%2Bgit20191002.6af20e3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates, bullseye
  • size: 260 kB
  • sloc: makefile: 31; sh: 11
file content (14 lines) | stat: -rwxr-xr-x 373 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
    echo -e "TESTS FOR: for \033[0;35m${d}\033[0m"
    go test -race -v -coverprofile=profile.coverage.out -covermode=atomic $d
    if [ -f profile.coverage.out ]; then
        cat profile.coverage.out >> coverage.txt
        rm profile.coverage.out
    fi
    echo ""
done