github.com/thy00/storage@v1.12.8/drivers/zfs/zfs_test.go (about)

     1  // +build linux
     2  
     3  package zfs
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/containers/storage/drivers/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 TestZfsCreateFromTemplate(t *testing.T) {
    30  	graphtest.DriverTestCreateFromTemplate(t, "zfs")
    31  }
    32  
    33  func TestZfsSetQuota(t *testing.T) {
    34  	graphtest.DriverTestSetQuota(t, "zfs")
    35  }
    36  
    37  func TestZfsEcho(t *testing.T) {
    38  	graphtest.DriverTestEcho(t, "zfs")
    39  }
    40  
    41  func TestZfsTeardown(t *testing.T) {
    42  	graphtest.PutDriver(t)
    43  }