consistent use of v23 test generate in order to use TestMain and in turn call test.Init.

Change-Id: Ib321c65ccba48d895fe793baac73a6b1f0a82b6f
diff --git a/cmd/application/impl_test.go b/cmd/application/impl_test.go
index 9315b2d..5df47a9 100644
--- a/cmd/application/impl_test.go
+++ b/cmd/application/impl_test.go
@@ -73,6 +73,8 @@
 }`
 )
 
+//go:generate v23 test generate
+
 type server struct {
 	suffix string
 }
diff --git a/cmd/application/v23_internal_test.go b/cmd/application/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/application/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/binary/impl_test.go b/cmd/binary/impl_test.go
index eb2ade6..8d53851 100644
--- a/cmd/binary/impl_test.go
+++ b/cmd/binary/impl_test.go
@@ -29,6 +29,8 @@
 	"v.io/x/ref/test"
 )
 
+//go:generate v23 test generate
+
 type server struct {
 	suffix string
 }
diff --git a/cmd/binary/v23_internal_test.go b/cmd/binary/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/binary/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/build/impl_test.go b/cmd/build/impl_test.go
index 13e2653..9cc263b 100644
--- a/cmd/build/impl_test.go
+++ b/cmd/build/impl_test.go
@@ -22,6 +22,8 @@
 	"v.io/x/ref/test"
 )
 
+//go:generate v23 test generate
+
 type mock struct{}
 
 func (mock) Build(call build.BuilderBuildServerCall, arch build.Architecture, opsys build.OperatingSystem) ([]byte, error) {
diff --git a/cmd/build/v23_internal_test.go b/cmd/build/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/build/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/mgmt/device/impl/impl_test.go b/cmd/mgmt/device/impl/impl_test.go
index 8133798..0d69ecb 100644
--- a/cmd/mgmt/device/impl/impl_test.go
+++ b/cmd/mgmt/device/impl/impl_test.go
@@ -23,6 +23,8 @@
 	"v.io/x/ref/security"
 )
 
+//go:generate v23 test generate
+
 func TestListCommand(t *testing.T) {
 	shutdown := initTest()
 	defer shutdown()
diff --git a/cmd/mgmt/device/impl/v23_internal_test.go b/cmd/mgmt/device/impl/v23_internal_test.go
new file mode 100644
index 0000000..f3c1179
--- /dev/null
+++ b/cmd/mgmt/device/impl/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package impl
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/profile/impl_test.go b/cmd/profile/impl_test.go
index 2241d96..e89b79c 100644
--- a/cmd/profile/impl_test.go
+++ b/cmd/profile/impl_test.go
@@ -36,6 +36,8 @@
 	}
 )
 
+//go:generate v23 test generate
+
 type server struct {
 	suffix string
 }
diff --git a/cmd/profile/v23_internal_test.go b/cmd/profile/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/profile/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/servicerunner/servicerunner b/cmd/servicerunner/servicerunner
new file mode 100755
index 0000000..938287a
--- /dev/null
+++ b/cmd/servicerunner/servicerunner
Binary files differ
diff --git a/cmd/servicerunner/servicerunner_test.go b/cmd/servicerunner/servicerunner_test.go
index 2978996..4d48f5e 100644
--- a/cmd/servicerunner/servicerunner_test.go
+++ b/cmd/servicerunner/servicerunner_test.go
@@ -19,6 +19,8 @@
 	"v.io/x/ref/test/testutil"
 )
 
+//go:generate v23 test generate
+
 func TestServiceRunner(t *testing.T) {
 	testutil.UnsetPrincipalEnvVars()
 	tmpdir, err := ioutil.TempDir("", "servicerunner_test")
diff --git a/cmd/servicerunner/v23_internal_test.go b/cmd/servicerunner/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/servicerunner/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/vdl/v23_internal_test.go b/cmd/vdl/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/vdl/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/vdl/vdl_test.go b/cmd/vdl/vdl_test.go
index 932aaa9..1c8ee18 100644
--- a/cmd/vdl/vdl_test.go
+++ b/cmd/vdl/vdl_test.go
@@ -19,6 +19,8 @@
 	outPkgPath = "v.io/x/ref/lib/vdl/testdata/base"
 )
 
+//go:generate v23 test generate
+
 // Compares generated VDL files against the copy in the repo.
 func TestVDLGenerator(t *testing.T) {
 	// Setup the vdl command-line.
diff --git a/cmd/vrpc/v23_internal_test.go b/cmd/vrpc/v23_internal_test.go
new file mode 100644
index 0000000..dcd0029
--- /dev/null
+++ b/cmd/vrpc/v23_internal_test.go
@@ -0,0 +1,17 @@
+// Copyright 2015 The Vanadium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// This file was auto-generated via go generate.
+// DO NOT UPDATE MANUALLY
+package main
+
+import "testing"
+import "os"
+
+import "v.io/x/ref/test"
+
+func TestMain(m *testing.M) {
+	test.Init()
+	os.Exit(m.Run())
+}
diff --git a/cmd/vrpc/vrpc_test.go b/cmd/vrpc/vrpc_test.go
index f1328c1..8d25a93 100644
--- a/cmd/vrpc/vrpc_test.go
+++ b/cmd/vrpc/vrpc_test.go
@@ -20,6 +20,8 @@
 
 type server struct{}
 
+//go:generate v23 test generate
+
 // TypeTester interface implementation
 
 func (*server) EchoBool(call rpc.ServerCall, i1 bool) (bool, error) {