summaryrefslogtreecommitdiffhomepage
path: root/test/benchmarks/fs/fs.go
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-07-17 16:13:44 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-17 16:23:10 -0700
commite3c2bd51a1a970991cce71d6994bb053c546e538 (patch)
tree0363d1825f3959c63959f6baa2d085c6c17b4095 /test/benchmarks/fs/fs.go
parent03c30ec634e529eb0f0051b0de03d4811706fe72 (diff)
Move main methods for benchmark packages main package file.
PiperOrigin-RevId: 321875119
Diffstat (limited to 'test/benchmarks/fs/fs.go')
-rw-r--r--test/benchmarks/fs/fs.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/benchmarks/fs/fs.go b/test/benchmarks/fs/fs.go
index 27eb6c56a..e5ca28c3b 100644
--- a/test/benchmarks/fs/fs.go
+++ b/test/benchmarks/fs/fs.go
@@ -14,3 +14,18 @@
// Package fs holds benchmarks around filesystem performance.
package fs
+
+import (
+ "os"
+ "testing"
+
+ "gvisor.dev/gvisor/test/benchmarks/harness"
+)
+
+var h harness.Harness
+
+// TestMain is the main method for package fs.
+func TestMain(m *testing.M) {
+ h.Init()
+ os.Exit(m.Run())
+}