github.com/cloudfoundry-attic/garden-linux@v0.333.2-candidate/integration/bind_mount/bind_mount_suite_test.go (about)

     1  package bind_mount_test
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  
     7  	"github.com/cloudfoundry-incubator/garden-linux/integration/runner"
     8  
     9  	. "github.com/onsi/ginkgo"
    10  	. "github.com/onsi/gomega"
    11  )
    12  
    13  var client *runner.RunningGarden
    14  
    15  func startGarden(argv ...string) *runner.RunningGarden {
    16  	return runner.Start(argv...)
    17  }
    18  
    19  func TestBindMount(t *testing.T) {
    20  	BeforeEach(func() {
    21  		if os.Getenv("GARDEN_TEST_ROOTFS") == "" {
    22  			Skip("GARDEN_TEST_ROOTFS undefined")
    23  		}
    24  	})
    25  
    26  	AfterEach(func() {
    27  		err := client.DestroyAndStop()
    28  		client.Cleanup()
    29  		Expect(err).NotTo(HaveOccurred())
    30  	})
    31  
    32  	RegisterFailHandler(Fail)
    33  	RunSpecs(t, "BindMount Suite")
    34  }