btrfs_test.go 645 B

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