8694d1f09c29023f665cacd0191bc0a35e43bfd1
[cloudstore.git] / test-gearman.sh
1 #!/bin/sh -xe
2
3 #echo 'dpavlin@gmail.com password 100M' | gearman -f create_user -n
4
5 sudo -u u2001 sh -cx "ps ax > ~u2001/foo.txt"
6
7 echo '~u2001/foo.txt#~u2002/dir with space/file with space' | gearman -f send_file -n
8
9 echo '~u2002/dir with space/file with space' | gearman -f delete -n
10
11 echo '~u2002/foo.txt#bar.txt' | gearman -f rename_file -n
12 echo '~u2002/bar.txt#baz.txt' | gearman -f rename_file -n
13
14 echo '~u2002/baz.txt' | gearman -f delete -n
15
16 echo u2001 | gearman -f zfs_userquota -n
17 echo u2001 | gearman -f zfs_userused -n
18 echo u2001 | gearman -f zfs_userspace -n