From 57eb1e2f00f3328d52fd84be33963ce585e16abb Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 21 Mar 2018 17:36:09 +0100 Subject: [PATCH] bind/benchmark: move package to testdata Move the benchmark support package to the testdata directory, just like the other test packages. Change-Id: Idc35ca973a7da78e8c8bb640ba60cfb947fbed5b Reviewed-on: https://go-review.googlesource.com/101896 Reviewed-by: Hyang-Ah Hana Kim --- bind/java/seq_test.go | 2 +- bind/objc/seq_test.go | 2 +- bind/{ => testdata}/benchmark/benchmark.go | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename bind/{ => testdata}/benchmark/benchmark.go (100%) diff --git a/bind/java/seq_test.go b/bind/java/seq_test.go index 3e82a56..07d02f3 100644 --- a/bind/java/seq_test.go +++ b/bind/java/seq_test.go @@ -55,7 +55,7 @@ func TestJavaSeqBench(t *testing.T) { if testing.Short() { t.Skip("skipping benchmark in short mode.") } - runTest(t, []string{"golang.org/x/mobile/bind/benchmark"}, "", "SeqBench") + runTest(t, []string{"golang.org/x/mobile/bind/testdata/benchmark"}, "", "SeqBench") } // runTest runs the Android java test class specified with javaCls. If javaPkg is diff --git a/bind/objc/seq_test.go b/bind/objc/seq_test.go index c3f86f4..941d6e4 100644 --- a/bind/objc/seq_test.go +++ b/bind/objc/seq_test.go @@ -51,7 +51,7 @@ func TestObjcSeqBench(t *testing.T) { if testing.Short() { t.Skip("skipping benchmark in short mode.") } - runTest(t, []string{"golang.org/x/mobile/bind/benchmark"}, "xcodebench", "SeqBench.m", true) + runTest(t, []string{"golang.org/x/mobile/bind/testdata/benchmark"}, "xcodebench", "SeqBench.m", true) } // TestObjcSeqWrappers runs ObjC test SeqWrappers.m. diff --git a/bind/benchmark/benchmark.go b/bind/testdata/benchmark/benchmark.go similarity index 100% rename from bind/benchmark/benchmark.go rename to bind/testdata/benchmark/benchmark.go