vfs_test.go 623 B

12345678910111213141516171819202122232425262728
  1. package vfs
  2. import (
  3. "github.com/dotcloud/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 TestVfsSetup and TestVfsTeardown
  8. func TestVfsSetup(t *testing.T) {
  9. graphtest.GetDriver(t, "vfs")
  10. }
  11. func TestVfsCreateEmpty(t *testing.T) {
  12. graphtest.DriverTestCreateEmpty(t, "vfs")
  13. }
  14. func TestVfsCreateBase(t *testing.T) {
  15. graphtest.DriverTestCreateBase(t, "vfs")
  16. }
  17. func TestVfsCreateSnap(t *testing.T) {
  18. graphtest.DriverTestCreateSnap(t, "vfs")
  19. }
  20. func TestVfsTeardown(t *testing.T) {
  21. graphtest.PutDriver(t)
  22. }