diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-06-16 23:22:37 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-06-16 23:22:37 +1000 |
commit | 6f0e35b5664b34423f64da2c8dfd876a61888d6d (patch) | |
tree | 63b51bbade81ae0fb3c0043ffe11c7542db72e50 /regress | |
parent | 7a06f62b6a211f1257d9284995ac72f3adfa743c (diff) |
- 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')
-rw-r--r-- | regress/scp.sh | 8 |
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 @@ | |||
1 | # $OpenBSD: scp.sh,v 1.1 2004/06/13 13:51:02 dtucker Exp $ | 1 | # $OpenBSD: scp.sh,v 1.2 2004/06/16 13:15:09 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="scp" | 4 | tid="scp" |
@@ -45,15 +45,17 @@ cmp ${COPY} ${DIR}/copy || fail "corrupted copy" | |||
45 | 45 | ||
46 | verbose "$tid: recursive local dir to remote dir" | 46 | verbose "$tid: recursive local dir to remote dir" |
47 | scpclean | 47 | scpclean |
48 | rm -rf ${DIR2} | ||
48 | cp ${DATA} ${DIR}/copy | 49 | cp ${DATA} ${DIR}/copy |
49 | $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed" | 50 | $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed" |
50 | cmp ${DIR} ${DIR2} || fail "corrupted copy" | 51 | diff -rN ${DIR} ${DIR2} || fail "corrupted copy" |
51 | 52 | ||
52 | verbose "$tid: recursive remote dir to local dir" | 53 | verbose "$tid: recursive remote dir to local dir" |
53 | scpclean | 54 | scpclean |
55 | rm -rf ${DIR2} | ||
54 | cp ${DATA} ${DIR}/copy | 56 | cp ${DATA} ${DIR}/copy |
55 | $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed" | 57 | $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed" |
56 | cmp ${DIR} ${DIR2} || fail "corrupted copy" | 58 | diff -rN ${DIR} ${DIR2} || fail "corrupted copy" |
57 | 59 | ||
58 | for i in 0 1 2 3 4; do | 60 | for i in 0 1 2 3 4; do |
59 | verbose "$tid: disallow bad server #$i" | 61 | verbose "$tid: disallow bad server #$i" |