btrfs_test.go 662 B

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