diff options
-rw-r--r-- | regress/scp-uri.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/regress/scp-uri.sh b/regress/scp-uri.sh index bf21bf32e..c03d8bbe0 100644 --- a/regress/scp-uri.sh +++ b/regress/scp-uri.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: scp-uri.sh,v 1.1 2017/10/24 19:33:32 millert Exp $ | 1 | # $OpenBSD: scp-uri.sh,v 1.2 2017/12/11 11:41:56 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="scp-uri" | 4 | tid="scp-uri" |
@@ -51,14 +51,18 @@ scpclean | |||
51 | rm -rf ${DIR2} | 51 | rm -rf ${DIR2} |
52 | cp ${DATA} ${DIR}/copy | 52 | cp ${DATA} ${DIR}/copy |
53 | $SCP $scpopts -r ${DIR} "scp://${USER}@somehost:${PORT}/${DIR2}" || fail "copy failed" | 53 | $SCP $scpopts -r ${DIR} "scp://${USER}@somehost:${PORT}/${DIR2}" || fail "copy failed" |
54 | diff -rN ${DIR} ${DIR2} || fail "corrupted copy" | 54 | for i in $(cd ${DIR} && echo *); do |
55 | cmp ${DIR}/$i ${DIR2}/$i || fail "corrupted copy" | ||
56 | done | ||
55 | 57 | ||
56 | verbose "$tid: recursive remote dir to local dir" | 58 | verbose "$tid: recursive remote dir to local dir" |
57 | scpclean | 59 | scpclean |
58 | rm -rf ${DIR2} | 60 | rm -rf ${DIR2} |
59 | cp ${DATA} ${DIR}/copy | 61 | cp ${DATA} ${DIR}/copy |
60 | $SCP $scpopts -r "scp://${USER}@somehost:${PORT}/${DIR}" ${DIR2} || fail "copy failed" | 62 | $SCP $scpopts -r "scp://${USER}@somehost:${PORT}/${DIR}" ${DIR2} || fail "copy failed" |
61 | diff -rN ${DIR} ${DIR2} || fail "corrupted copy" | 63 | for i in $(cd ${DIR} && echo *); do |
64 | cmp ${DIR}/$i ${DIR2}/$i || fail "corrupted copy" | ||
65 | done | ||
62 | 66 | ||
63 | # TODO: scp -3 | 67 | # TODO: scp -3 |
64 | 68 | ||