Debian Codegraph @

.github/workflows/scripts/run-tests.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -euo pipefail
4
5 echoscip-shell system . . echo. 'mode: atomic' > coverage.txt
6 GOEXPERIMENT=synctest goscip-shell system . . go. test -covermode=atomic -coverprofile=coverage.txt.tmp -coverpkg=./... -v -race ./...
7 catscip-shell system . . cat. coverage.txt.tmp | grepscip-shell system . . grep. -v -E "/generated/|/cmd/scip-shell filesystem . . `/generated/|/cmd/`." > coverage.txt
8 rmscip-shell system . . rm. coverage.txt.tmp
9 COVERAGE=$(goscip-shell system . . go. tool cover -func=coverage.txt | tailscip-shell system . . tail. -1 | grepscip-shell system . . grep. -Eo '[0-9]+\.[0-9]')
10 echoscip-shell system . . echo. "coverage: $COVERAGE% of statements"