github.com/vrothberg/storage@v1.12.13/drivers/vfs/vfs_test.go (about) 1 // +build linux 2 3 package vfs 4 5 import ( 6 "testing" 7 8 "github.com/containers/storage/drivers/graphtest" 9 10 "github.com/containers/storage/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 TestVfsCreateFromTemplate(t *testing.T) { 36 graphtest.DriverTestCreateFromTemplate(t, "vfs") 37 } 38 39 func TestVfsTeardown(t *testing.T) { 40 graphtest.PutDriver(t) 41 } 42 43 func TestVfsDiffApply100Files(t *testing.T) { 44 graphtest.DriverTestDiffApply(t, 100, "vfs") 45 } 46 47 func TestVfsChanges(t *testing.T) { 48 graphtest.DriverTestChanges(t, "vfs") 49 } 50 51 func TestVfsEcho(t *testing.T) { 52 graphtest.DriverTestEcho(t, "vfs") 53 }