3 # Copyright (C) 1998,1999 Philip Hands <phil@hands.com>
4 # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
6 # This program is distributable under the terms of the GNU GPL (see
9 # This script tests ssh, if possible. It's called by runtests.sh
11 .
"$suitedir/rsync.fns"
13 if ! type ssh >/dev
/null
; then
14 echo "Skipping SSH tests because ssh is not in the path"
18 if ! [ "`ssh -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
19 echo "Skipping SSH tests because ssh conection to localhost not authorised"
23 runtest
"ssh: basic test" 'checkit "$RSYNC -avH -e ssh --rsync-path=$RSYNC ${FROM}/ localhost:${TO}" ${FROM}/ ${TO}'
25 mv ${TO}/${F1} ${TO}/ThisShouldGo
27 runtest
"ssh: renamed file" 'checkit "$RSYNC --delete -avH -e ssh --rsync-path=$RSYNC ${FROM}/ localhost:${TO}" ${FROM}/ ${TO}'