cleanup everything from ~u2002 for test
[cloudstore.git] / test-gearman.sh
index 01eee6e..c71bf68 100755 (executable)
@@ -3,11 +3,17 @@
 #echo 'dpavlin@gmail.com password 100M' | gearman -f create_user -n
 
 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 '~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 zfs_userquota -n
 echo u2001 | gearman -f zfs_userused -n
 echo u2001 | gearman -f zfs_userspace -n