...
Text file
src/cmd/go/testdata/script/test_match_benchmark_labels.txt
1# Benchmark labels, file outside gopath
2# TODO(matloob): This test was called TestBenchmarkLabelsOutsideGOPATH
3# why "OutsideGOPATH"? Does the go command need to be run outside GOPATH?
4# Do the files need to exist outside GOPATH?
5cp $GOPATH/src/standalone_benchmark_test.go $WORK/tmp/standalone_benchmark_test.go
6go test -run '^$' -bench . $WORK/tmp/standalone_benchmark_test.go
7stdout '^goos: '$GOOS
8stdout '^goarch: '$GOARCH
9! stdout '^pkg:'
10! stderr '^pkg:'
11
12-- standalone_benchmark_test.go --
13package standalone_benchmark
14
15import "testing"
16
17func Benchmark(b *testing.B) {
18}
View as plain text