github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/daemon/graphdriver/vfs/vfs_test.go (about) 1 // +build linux 2 3 package vfs // import "github.com/demonoid81/moby/daemon/graphdriver/vfs" 4 5 import ( 6 "testing" 7 8 "github.com/demonoid81/moby/daemon/graphdriver/graphtest" 9 10 "github.com/demonoid81/moby/pkg/reexec" 11 ) 12 13 func init() { 14 reexec.Init() 15 } 16 17 // This avoids creating a new driver for each test if all tests are run 18 // Make sure to put new tests between TestVfsSetup and TestVfsTeardown 19 func TestVfsSetup(t *testing.T) { 20 graphtest.GetDriver(t, "vfs") 21 } 22 23 func TestVfsCreateEmpty(t *testing.T) { 24 graphtest.DriverTestCreateEmpty(t, "vfs") 25 } 26 27 func TestVfsCreateBase(t *testing.T) { 28 graphtest.DriverTestCreateBase(t, "vfs") 29 } 30 31 func TestVfsCreateSnap(t *testing.T) { 32 graphtest.DriverTestCreateSnap(t, "vfs") 33 } 34 35 func TestVfsSetQuota(t *testing.T) { 36 graphtest.DriverTestSetQuota(t, "vfs", false) 37 } 38 39 func TestVfsTeardown(t *testing.T) { 40 graphtest.PutDriver(t) 41 }