+# test receiving of sent files
+mkdir /tmp/test/$RSYNC_LOGIN2
+RSYNC_PASSWORD=secret rsync -rv rsync://$RSYNC_LOGIN2@127.0.0.1:6501/$RSYNC_LOGIN2/received/ /tmp/test/$RSYNC_LOGIN2
+
+fi # skip tests
+
+# test file move
+
+ps ax > Jellyfish.jpg
+push Jellyfish.jpg
+
+mkdir -p .sync/pending
+cat << __pending__ > .sync/pending/test
+MOVED#Jellyfish.jpg#Photos with space/Jellyfish cool.jpg
+DELETED#Photos with space/Jellyfish cool.jpg
+DELETED#Photos with space
+__pending__
+
+push .sync -rv
+
+exit
+
+ps ax > perms-test
+chmod 400 perms-test
+push -va perms-test
+
+sudo sh -xc "ls -al ~$RSYNC_LOGIN/localhost/"
+
+
+
+
+find $SLICE/2001/ -type f | grep -v '/\.' | xargs md5sum | sort > /tmp/test/1
+FULL=1 $base_dir/user-md5sum.pl u2001 | sort > /tmp/test/2
+
+diff /tmp/test/1 /tmp/test/2 && echo "OK - md5 database consistant with filesystem"
+