blob: affab6b806968171da4f741e315bf925781a8dd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Tests that go test -bench prints out goos, goarch, and pkg.
# Check for goos, goarch, and pkg.
go test -run ^$ -bench . bench
stdout '^goos: '$GOOS
stdout '^goarch: '$GOARCH
stdout '^pkg: bench'
# Check go test does not print pkg multiple times
! stdout 'pkg:.*pkg: '
! stderr 'pkg:.*pkg:'
-- bench/x_test.go --
package bench
import "testing"
func Benchmark(b *testing.B) {
}
|