github.com/lmars/docker@v1.6.0-rc2/daemon/graphdriver/vfs/vfs_test.go (about) 1 package vfs 2 3 import ( 4 "testing" 5 6 "github.com/docker/docker/daemon/graphdriver/graphtest" 7 8 "github.com/docker/docker/pkg/reexec" 9 ) 10 11 func init() { 12 reexec.Init() 13 } 14 15 // This avoids creating a new driver for each test if all tests are run 16 // Make sure to put new tests between TestVfsSetup and TestVfsTeardown 17 func TestVfsSetup(t *testing.T) { 18 graphtest.GetDriver(t, "vfs") 19 } 20 21 func TestVfsCreateEmpty(t *testing.T) { 22 graphtest.DriverTestCreateEmpty(t, "vfs") 23 } 24 25 func TestVfsCreateBase(t *testing.T) { 26 graphtest.DriverTestCreateBase(t, "vfs") 27 } 28 29 func TestVfsCreateSnap(t *testing.T) { 30 graphtest.DriverTestCreateSnap(t, "vfs") 31 } 32 33 func TestVfsTeardown(t *testing.T) { 34 graphtest.PutDriver(t) 35 }