⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ssh-basic.test

📁 Rsync 3.0.5 source code
💻 TEST
字号:
#!/bin/sh# Copyright (C) 1998,1999 Philip Hands <phil@hands.com># Copyright (C) 2001 by Martin Pool <mbp@samba.org># This program is distributable under the terms of the GNU GPL (see# COPYING)# This script tests ssh, if possible.  It's called by runtests.sh. "$suitedir/rsync.fns"SSH="$scratchdir/src/support/lsh"if test x"$rsync_enable_ssh_tests" = xyes; then    if type ssh >/dev/null ; then	SSH=ssh    fifiif ! [ "`$SSH -o'BatchMode yes' localhost echo yes`" = "yes" ]; then    test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"fiecho "Using remote shell: $SSH"# Create some files for rsync to copyhands_setupruntest "ssh: basic test" 'checkit "$RSYNC -avH -e \"$SSH\" --rsync-path=\"$RSYNC\" \"$fromdir/\" \"localhost:$todir\"" "$fromdir/" "$todir"'mv "$todir/text" "$todir/ThisShouldGo"runtest "ssh: renamed file" 'checkit "$RSYNC --delete -avH -e \"$SSH\" --rsync-path=\"$RSYNC\" \"$fromdir/\" \"localhost:$todir\"" "$fromdir/" "$todir"'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -