github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/daemon/graphdriver/zfs/zfs_test.go (about) 1 //go:build linux 2 // +build linux 3 4 package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" 5 6 import ( 7 "testing" 8 9 "github.com/docker/docker/daemon/graphdriver/graphtest" 10 ) 11 12 // This avoids creating a new driver for each test if all tests are run 13 // Make sure to put new tests between TestZfsSetup and TestZfsTeardown 14 func TestZfsSetup(t *testing.T) { 15 graphtest.GetDriver(t, "zfs") 16 } 17 18 func TestZfsCreateEmpty(t *testing.T) { 19 graphtest.DriverTestCreateEmpty(t, "zfs") 20 } 21 22 func TestZfsCreateBase(t *testing.T) { 23 graphtest.DriverTestCreateBase(t, "zfs") 24 } 25 26 func TestZfsCreateSnap(t *testing.T) { 27 graphtest.DriverTestCreateSnap(t, "zfs") 28 } 29 30 func TestZfsSetQuota(t *testing.T) { 31 graphtest.DriverTestSetQuota(t, "zfs", true) 32 } 33 34 func TestZfsTeardown(t *testing.T) { 35 graphtest.PutDriver(t) 36 }