diff options
author | Zach Koopmans <zkoopmans@google.com> | 2020-07-17 16:13:44 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-17 16:23:10 -0700 |
commit | e3c2bd51a1a970991cce71d6994bb053c546e538 (patch) | |
tree | 0363d1825f3959c63959f6baa2d085c6c17b4095 /test/benchmarks/network/network.go | |
parent | 03c30ec634e529eb0f0051b0de03d4811706fe72 (diff) |
Move main methods for benchmark packages main package file.
PiperOrigin-RevId: 321875119
Diffstat (limited to 'test/benchmarks/network/network.go')
-rw-r--r-- | test/benchmarks/network/network.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/benchmarks/network/network.go b/test/benchmarks/network/network.go index f480b5bcd..ce17ddb94 100644 --- a/test/benchmarks/network/network.go +++ b/test/benchmarks/network/network.go @@ -14,3 +14,18 @@ // Package network holds benchmarks around raw network performance. package network + +import ( + "os" + "testing" + + "gvisor.dev/gvisor/test/benchmarks/harness" +) + +var h harness.Harness + +// TestMain is the main method for package network. +func TestMain(m *testing.M) { + h.Init() + os.Exit(m.Run()) +} |