github.com/hms58/moby@v1.13.1/daemon/graphdriver/zfs/zfs_test.go (about)

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