History

Added a --no-cd option to support/lsh so that the script can be used by the testsuite. Improved the home-directory-changing code and added an error message when "localhost" is not the hostname specified. Use the updated script in the testsuite instead of creating a pretend-ssh script in a couple spots.

Wayne Davison committed 18 years ago

Commit 276cc451 parent 311676e3 files · +21 −35Browse files

Showing the changes to testsuite/ssh-basic.test (1 of 3 files). Show all

Unified · Split

testsuite/ssh-basic.test+2−15
@@ -10,20 +10,7 @@ · 9 unmodified lines
10 10
11. "$suitedir/rsync.fns"11. "$suitedir/rsync.fns"
12 12
13SSH="$scratchdir/pretend-ssh"13SSH=support/lsh
14
15cat >"$SSH" <<'EOT'
16while : ; do
17 case "$1" in
18 -*) shift ;;
19 localhost) shift; break ;;
20 *) exit 1 ;;
21 esac
22done
23
24eval "${@}"
25EOT
26chmod +x "$SSH"
27 14
28if test x"$rsync_enable_ssh_tests" = xyes; then15if test x"$rsync_enable_ssh_tests" = xyes; then
29 if type ssh >/dev/null ; then16 if type ssh >/dev/null ; then
@@ -31,7 +18,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then · 1 unmodified line
31 fi18 fi
32fi19fi
33 20
34if ! [ "`"$SSH" -o'BatchMode yes' localhost echo yes`" = "yes" ]; then21if ! [ "`$SSH -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
35 test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"22 test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
36fi23fi
37 24