Merge pull request #354 from rhatdan/test

Add test for fuse-overlay without mknod
This commit is contained in:
Giuseppe Scrivano 2019-05-24 12:47:02 +02:00 committed by GitHub
commit f01efbad8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 14 deletions

View File

@ -6,22 +6,16 @@ source $(dirname $0)/lib.sh
cd $GOSRC
make install.tools
echo "Build Binary"
make local-binary
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
showrun make local-binary
showrun make STORAGE_DRIVER=overlay local-test-integration
showrun make STORAGE_DRIVER=overlay STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration
showrun make STORAGE_DRIVER=overlay FUSE_OVERLAYFS_DISABLE_OVL_WHITEOUT=1 STORAGE_OPTION=overlay.mount_program=/usr/bin/fuse-overlayfs local-test-integration
showrun make STORAGE_DRIVER=vfs local-test-integration
showrun make local-test-unit
case "$OS_REL_VER" in
ubuntu-19)
echo "local-test-integration Aufs"
make STORAGE_DRIVER=aufs local-test-integration
showrun make STORAGE_DRIVER=aufs local-test-integration
;;
esac
#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
#showrun make STORAGE_DRIVER=devicemapper STORAGE_OPTION=dm.directlvm_device=/dev/abc local-test-integration

View File

@ -165,3 +165,17 @@ install_fuse_overlayfs_from_git(){
sudo make install prefix=/usr
cd $wd
}
showrun() {
if [[ "$1" == "--background" ]]
then
shift
# Properly escape any nested spaces, so command can be copy-pasted
echo '+ '$(printf " %q" "$@")' &' > /dev/stderr
"$@" &
echo -e "${RED}<backgrounded>${NOR}"
else
echo '+ '$(printf " %q" "$@") > /dev/stderr
"$@"
fi
}