-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: convert TestCoverageRuns to the script framework
Part of converting all tests to script framework to improve test parallelism. Updates #36320 Updates #17751 Change-Id: Ie46118eddbd7c3ed0bb9ecee4bdc1cb6fdaf06a0 Reviewed-on: https://go-review.googlesource.com/c/go/+/214291 Reviewed-by: Jay Conrod <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[gccgo] skip 'gccgo has no cover tool' | ||
[short] skip | ||
|
||
go test -short -coverpkg=strings strings regexp | ||
! stdout '[^0-9]0\.0%' | ||
stdout 'strings.*coverage:.*[1-9][0-9.]+%' | ||
stdout 'regexp.*coverage:.*[1-9][0-9.]+%' | ||
|
||
go test -short -cover strings math regexp | ||
! stdout '[^0-9]0\.0%' | ||
stdout 'strings.*coverage:.*[1-9][0-9.]+%' | ||
stdout 'math.*coverage:.*[1-9][0-9.]+%' | ||
stdout 'regexp.*coverage:.*[1-9][0-9.]+%' |