X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=test-gearman.sh;h=033ac613be6a79b727c62fcc2bd1cbd5915510dd;hb=4e0aa6a0740e8a79cd642a129a50335649a208ce;hp=01eee6e2fc3e8d22b82238904d35adcc1d4748cf;hpb=f4bf6afc4a140ea63d66c30e4cca008e130d8be2;p=cloudstore.git diff --git a/test-gearman.sh b/test-gearman.sh index 01eee6e..033ac61 100755 --- a/test-gearman.sh +++ b/test-gearman.sh @@ -2,12 +2,17 @@ #echo 'dpavlin@gmail.com password 100M' | gearman -f create_user -n -sudo -u u2001 sh -cx "ps ax > ~u2001/foo.txt" +test -e ~u2001/foo.txt || sudo -u u2001 sh -cx "ps ax > ~u2001/foo.txt" +sudo sh -cx "rm -vRf ~u2002/*" echo '~u2001/foo.txt#~u2002/dir with space/file with space' | gearman -f send_file -n echo '~u2002/dir with space/file with space' | gearman -f delete -n -echo u2001 | gearman -f zfs_userquota -n -echo u2001 | gearman -f zfs_userused -n -echo u2001 | gearman -f zfs_userspace -n +echo '~u2001/foo.txt#~u2002/foo.txt' | gearman -f send_file -n +echo '~u2002/foo.txt#bar.txt' | gearman -f rename_file -n +echo '~u2002/bar.txt#baz.txt' | gearman -f rename_file -n + +echo '~u2002/baz.txt' | gearman -f delete -n + +echo u2001 | gearman -f user_usage -n