zfs_test.go 719 B

1234567891011121314151617181920212223242526272829303132333435
  1. // +build linux
  2. package zfs
  3. import (
  4. "testing"
  5. "github.com/docker/docker/daemon/graphdriver/graphtest"
  6. )
  7. // This avoids creating a new driver for each test if all tests are run
  8. // Make sure to put new tests between TestZfsSetup and TestZfsTeardown
  9. func TestZfsSetup(t *testing.T) {
  10. graphtest.GetDriver(t, "zfs")
  11. }
  12. func TestZfsCreateEmpty(t *testing.T) {
  13. graphtest.DriverTestCreateEmpty(t, "zfs")
  14. }
  15. func TestZfsCreateBase(t *testing.T) {
  16. graphtest.DriverTestCreateBase(t, "zfs")
  17. }
  18. func TestZfsCreateSnap(t *testing.T) {
  19. graphtest.DriverTestCreateSnap(t, "zfs")
  20. }
  21. func TestZfsSetQuota(t *testing.T) {
  22. graphtest.DriverTestSetQuota(t, "zfs")
  23. }
  24. func TestZfsTeardown(t *testing.T) {
  25. graphtest.PutDriver(t)
  26. }