github.com/gunjan5/docker@v1.8.2/daemon/graphdriver/btrfs/btrfs_test.go (about)

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