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