github.com/afein/docker@v1.8.2/daemon/graphdriver/vfs/vfs_test.go (about)

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