Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always add the O_BINARY flag in do_open if it is defined, for Windows.
[rsync/rsync.git]
/
test.sh
diff --git
a/test.sh
b/test.sh
index
2754dd6
..
51f73df
100755
(executable)
--- a/
test.sh
+++ b/
test.sh
@@
-1,4
+1,4
@@
-#!/bin/sh
=
+#!/bin/sh
#
# Copyright (C) 1998 Philip Hands <http://www.hands.com/~phil/>
#
# Copyright (C) 1998 Philip Hands <http://www.hands.com/~phil/>
@@
-10,6
+10,14
@@
#
#
#
#
+cat <<EOF
+
+This set of tests is not completely portable. It is intended for developers
+not for end users. You may experience failures on some platforms that
+do not indicate a problem with rsync.
+
+EOF
+
export PATH=.:$PATH
TMP=/tmp/rsync-test.$$
FROM=${TMP}/from
export PATH=.:$PATH
TMP=/tmp/rsync-test.$$
FROM=${TMP}/from
@@
-53,7
+61,7
@@
checkit() {
echo " done."
rm $log
else
echo " done."
rm $log
else
- echo " FAILED.
=07
"
+ echo " FAILED.
\a
"
fi
}
fi
}
@@
-98,19
+106,25
@@
cp ${FROM}/${F1} ${TO}/ThisShouldGo
checkit "rsync --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO} \
5 " --delete"
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} \
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}\
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 ""
else
echo ""
- echo "**** Skipping SSH tests because ssh is not in the path
=07
****"
+ echo "**** Skipping SSH tests because ssh is not in the path
\a
****"
echo ""
fi
checkforlogs ${LOG}.?
echo ""
fi
checkforlogs ${LOG}.?
-