Merge pull request #353 from rhatdan/test1
Add VFS storage driver testing.
This commit is contained in:
commit
181b27344b
|
|
@ -12,19 +12,16 @@ echo "local-test-integration Overlay"
|
|||
make STORAGE_DRIVER=overlay local-test-integration
|
||||
echo "local-test-integration Fuse-overlay"
|
||||
make STORAGE_DRIVER=overlay STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration
|
||||
echo "local-test-unit"
|
||||
make STORAGE_DRIVER=vfs local-test-integration
|
||||
echo "local-test-unit"
|
||||
make local-test-unit
|
||||
|
||||
case "$OS_REL_VER" in
|
||||
ubuntu-19)
|
||||
echo "local-test-integration Aufs"
|
||||
make STORAGE_DRIVER=aufs local-test-integration
|
||||
echo "local-test-unit"
|
||||
make local-test-unit
|
||||
;;
|
||||
fedora-30)
|
||||
echo "local-test-unit"
|
||||
make local-test-unit
|
||||
;;
|
||||
esac
|
||||
#make STORAGE_DRIVER=vfs local-test-integration
|
||||
#make STORAGE_DRIVER=overlay FUSE_OVERLAYFS_DISABLE_OVL_WHITEOUT=1 STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration
|
||||
#make STORAGE_DRIVER=devicemapper STORAGE_OPTION=dm.directlvm_device=/dev/abc local-test-integration
|
||||
|
|
|
|||
|
|
@ -539,5 +539,18 @@ func DriverTestEcho(t testing.TB, drivername string, driverOptions ...string) {
|
|||
if err = checkChanges(expectedChanges, changes); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = driver.Put(third)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = driver.Put(second)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
err = driver.Put(base)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue