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?
5 cp $GOPATH/src/standalone_benchmark_test.go $WORK/tmp/standalone_benchmark_test.go
6 go test -run '^$' -bench . $WORK/tmp/standalone_benchmark_test.go
7 stdout '^goos: '$GOOS
8 stdout '^goarch: '$GOARCH
9 ! stdout '^pkg:'
10 ! stderr '^pkg:'
11
12 -- standalone_benchmark_test.go --
13 package standalone_benchmark
14
15 import "testing"
16
17 func Benchmark(b *testing.B) {
18 }
View as plain text