summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-27 06:31:37 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-27 06:31:37 +0000
commit35f69d8ad928122528482418dcc77afb19819775 (patch)
tree54957f5ab66932bbb8052c1e8a25cd1435980c91 /test.sh
parent7b1ce0d746df0d7f7f33238799949ff3cec911a2 (diff)
downloadrsync-35f69d8ad928122528482418dcc77afb19819775.tar.gz
new test code from Phil
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/test.sh b/test.sh
index 73dde037..c5d23820 100755
--- a/test.sh
+++ b/test.sh
@@ -98,14 +98,21 @@ cp ${FROM}/${F1} ${TO}/ThisShouldGo
checkit "rsync --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO} \
5 " --delete"
+LONGDIR=${FROM}/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job/This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job
+mkdir -p ${LONGDIR}
+date > ${LONGDIR}/1
+ls -la / > ${LONGDIR}/2
+checkit "rsync --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO} \
+ 6 "long paths"
+
if type ssh >/dev/null ; then
rm -rf ${TO}
checkit "rsync -avH -e ssh ${FROM}/ localhost:${TO}" ${FROM}/ ${TO} \
- 6 "ssh: basic test"
+ 7 "ssh: basic test"
mv ${TO}/${F1} ${TO}/ThisShouldGo
checkit "rsync --delete -avH -e ssh ${FROM}/ localhost:${TO}" ${FROM}/ ${TO}\
- 7 "ssh: renamed file"
+ 8 "ssh: renamed file"
else
echo ""
echo "**** Skipping SSH tests because ssh is not in the path ****"
@@ -113,4 +120,3 @@ else
fi
checkforlogs ${LOG}.?
-