summaryrefslogtreecommitdiffstats
path: root/regress/scp.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-16 15:22:37 +0200
committerDarren Tucker <dtucker@zip.com.au>2004-06-16 15:22:37 +0200
commit6f0e35b5664b34423f64da2c8dfd876a61888d6d (patch)
tree63b51bbade81ae0fb3c0043ffe11c7542db72e50 /regress/scp.sh
parent - (dtucker) [regress/README.regress] (diff)
downloadopenssh-6f0e35b5664b34423f64da2c8dfd876a61888d6d.tar.xz
openssh-6f0e35b5664b34423f64da2c8dfd876a61888d6d.zip
- dtucker@cvs.openbsd.org 2004/06/16 13:15:09
[regress/scp.sh] Make scp -r tests use diff -rN not cmp (which won't do dirs. ok markus@
Diffstat (limited to 'regress/scp.sh')
-rw-r--r--regress/scp.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/scp.sh b/regress/scp.sh
index 2d722c70c..cda01868a 100644
--- a/regress/scp.sh
+++ b/regress/scp.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: scp.sh,v 1.1 2004/06/13 13:51:02 dtucker Exp $
+# $OpenBSD: scp.sh,v 1.2 2004/06/16 13:15:09 dtucker Exp $
# Placed in the Public Domain.
tid="scp"
@@ -45,15 +45,17 @@ cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
verbose "$tid: recursive local dir to remote dir"
scpclean
+rm -rf ${DIR2}
cp ${DATA} ${DIR}/copy
$SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
-cmp ${DIR} ${DIR2} || fail "corrupted copy"
+diff -rN ${DIR} ${DIR2} || fail "corrupted copy"
verbose "$tid: recursive remote dir to local dir"
scpclean
+rm -rf ${DIR2}
cp ${DATA} ${DIR}/copy
$SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
-cmp ${DIR} ${DIR2} || fail "corrupted copy"
+diff -rN ${DIR} ${DIR2} || fail "corrupted copy"
for i in 0 1 2 3 4; do
verbose "$tid: disallow bad server #$i"