3 user_dir=/srv/cloudstore/users/test/
4 rm -Rvf $user_dir/log/* #$user_dir/blob/*
10 RSYNC_PASSWORD=secret rsync $* $file rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$file
15 test -z "$to" && to=$1
16 RSYNC_PASSWORD=secret rsync rsync://$RSYNC_LOGIN@127.0.0.1:6501/$RSYNC_LOGIN/localhost/$from $to
20 sudo ./remove-user.sh test@example.com
21 sudo ./remove-user.sh test2@example.com
23 RSYNC_LOGIN=`sudo ./create-user.sh test@example.com secret 500k`
24 RSYNC_LOGIN2=`sudo ./create-user.sh test2@example.com secret 20k`
31 if true ; then # skip tests if false
33 push . --recursive --delete -v
39 touch --date='2000-01-01' bar
51 uptime > "dir-test/file with spaces"
52 push dir-test --recursive -v
54 find . type -f | xargs -i md5sum {} > /tmp/md5sum
57 push dir-test --recursive --delete -v
60 pull non-existing || true
64 # test md5 import from directory
67 # client should hardlink or copy files locally to avoid wastefull pull
68 # but we test server-side hardlink here
71 md5sum clone/* | sed -e 's! ! _import/foo/bar/baz!' > md5sum
77 # test unused md5 pool quota
88 ps ax >> sent-to-$RSYNC_LOGIN2
89 push sent-to-$RSYNC_LOGIN2 # must be done before first send
91 mkdir -p .send/$RSYNC_LOGIN2/received
92 ln -s ../../../sent-to-$RSYNC_LOGIN2 .send/$RSYNC_LOGIN2/received/new-name