Skip to content

Commit

Permalink
Try fixing TPM simulator coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Jun 7, 2023
1 parent b2dc92c commit ac157ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ defaulttest:
$Q $(GOFLAGS) gotestsum -- -coverpkg=./... -coverprofile=defaultcoverage.out -covermode=atomic ./...

simulatortest:
$Q $(GOFLAGS) CGO_ENABLED=1 gotestsum -- -coverpkg=./tpm,./kms/tpmkms -coverprofile=simulatorcoverage.out -covermode=atomic -tags tpmsimulator ./tpm
$Q $(GOFLAGS) CGO_ENABLED=1 gotestsum -- -coverpkg=./tpm/...,./kms/tpmkms -coverprofile=simulatorcoverage.out -covermode=atomic -tags tpmsimulator ./tpm ./kms/tpmkms

combinecoverage:
cat defaultcoverage.out simulatorcoverage.out > coverage.out
cat defaultcoverage.out > coverage.out
tail -n +2 simulatorcoverage.out >> coverage.out

race:
$Q $(GOFLAGS) gotestsum -- -race ./...
Expand Down

0 comments on commit ac157ce

Please sign in to comment.