github.com/psychoss/docker@v1.9.0/daemon/graphdriver/btrfs/btrfs_test.go (about)

     1  // +build linux
     2  
     3  package btrfs
     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 TestBtrfsSetup and TestBtrfsTeardown
    13  func TestBtrfsSetup(t *testing.T) {
    14  	graphtest.GetDriver(t, "btrfs")
    15  }
    16  
    17  func TestBtrfsCreateEmpty(t *testing.T) {
    18  	graphtest.DriverTestCreateEmpty(t, "btrfs")
    19  }
    20  
    21  func TestBtrfsCreateBase(t *testing.T) {
    22  	graphtest.DriverTestCreateBase(t, "btrfs")
    23  }
    24  
    25  func TestBtrfsCreateSnap(t *testing.T) {
    26  	graphtest.DriverTestCreateSnap(t, "btrfs")
    27  }
    28  
    29  func TestBtrfsTeardown(t *testing.T) {
    30  	graphtest.PutDriver(t)
    31  }