]> Cypherpunks.ru repositories - gostls13.git/commit
testing: print extra labels on benchmarks
authorQuentin Smith <quentin@golang.org>
Mon, 6 Feb 2017 16:59:01 +0000 (11:59 -0500)
committerQuentin Smith <quentin@golang.org>
Tue, 7 Feb 2017 00:08:39 +0000 (00:08 +0000)
commit6b742b2f84fc4ddea27076aa1e581197d17bd863
tree0a57912cf2d8303e1b3faec809c3ee583e39b2a7
parentc0bd4f33ccc9a9454d50245a1dba1fa46e62a1ad
testing: print extra labels on benchmarks

When running benchmarks, print "goos", "goarch", and "pkg"
labels. This makes it easier to refer to benchmark logs and understand
how they were generated. "pkg" is printed only for benchmarks located
in GOPATH.

Change-Id: I397cbdd57b9fe8cbabbb354ec7bfba59f5625c42
Reviewed-on: https://go-review.googlesource.com/36356
Run-TryBot: Quentin Smith <quentin@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/src/bench/x_test.go [new file with mode: 0644]
src/testing/benchmark.go
src/testing/internal/testdeps/deps.go
src/testing/testing.go