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