Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
4c80c473
Commit
4c80c473
authored
Sep 06, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More testsuite cleanups. Now I hope we cope without 'cp -a', though
we still need 'cp -p'.
parent
571a4b26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
hands.test
testsuite/hands.test
+3
-10
rsync.fns
testsuite/rsync.fns
+4
-5
No files found.
testsuite/hands.test
View file @
4c80c473
...
@@ -16,20 +16,13 @@ runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}'
...
@@ -16,20 +16,13 @@ runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}'
ln
$
{
FROM
}
/
filelist
$
{
FROM
}
/
dir
ln
$
{
FROM
}
/
filelist
$
{
FROM
}
/
dir
runtest
"hard links"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
runtest
"hard links"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
rm
$
{
TO
}
/
$
{
F1
}
rm
$
{
TO
}
/
text
runtest
"one file"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
runtest
"one file"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
echo
"extra line"
>>
$
{
TO
}
/
$
{
F1
}
echo
"extra line"
>>
$
{
TO
}
/
text
runtest
"extra data"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
runtest
"extra data"
'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
cp
$
{
FROM
}
/
$
{
F1
}
$
{
TO
}
/
ThisShouldGo
cp
$
{
FROM
}
/
text
$
{
TO
}
/
ThisShouldGo
runtest
" --delete"
'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
runtest
" --delete"
'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
rm
-
rf
$
{
TO
}
mkdir
-
p
$
{
FROM
}
2
/
dir
/
subdir
cp
-
a
$
{
FROM
}
/
dir
/
subdir
/
subsubdir
$
{
FROM
}
2
/
dir
/
subdir
cp
$
{
FROM
}
/
dir
/* ${FROM}2/dir || :
runtest "excludes" 'checkit "$RSYNC -vv -Hlrt --delete --include /dir/ --include /dir/\* --include /dir/\*/
subsubdir
--
include
/
dir
/
\
*/
subsubdir
/
\
*
\
*
--
exclude
\
*
\
*
$
{
FROM
}
/
dir
$
{
TO
}
" ${FROM}2/ ${TO}'
rm -r ${FROM}2
checkforlogs
$
{
LOG
}
.?
checkforlogs
$
{
LOG
}
.?
testsuite/rsync.fns
View file @
4c80c473
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
TMP
=
"
$scratchdir
"
TMP
=
"
$scratchdir
"
FROM
=
${
TMP
}
/from
FROM
=
${
TMP
}
/from
TO
=
${
TMP
}
/to
TO
=
${
TMP
}
/to
F1
=
text1
LOG
=
${
TMP
}
/log
LOG
=
${
TMP
}
/log
RSYNC
=
"
$rsync_bin
"
RSYNC
=
"
$rsync_bin
"
...
@@ -68,17 +67,17 @@ hands_setup() {
...
@@ -68,17 +67,17 @@ hands_setup() {
mkdir
${
FROM
}
/emptydir
mkdir
${
FROM
}
/emptydir
# a hundred lines of text or so
# a hundred lines of text or so
ls
-lR
$
(
srcdir
)
>
${
FROM
}
/filelist
ls
-lR
$
{
srcdir
}
>
${
FROM
}
/filelist
# This might fail on systems that don't have -n
# This might fail on systems that don't have -n
echo
$ECHO_N
"This file has no trailing lf
$ECHO_C
"
>
${
FROM
}
/nolf
echo
$ECHO_N
"This file has no trailing lf
$ECHO_C
"
>
${
FROM
}
/nolf
umask
0
umask
0
ln
-s
nolf
${
FROM
}
/nolf-symlink
ln
-s
nolf
${
FROM
}
/nolf-symlink
umask
0
77
umask
0
22
cat
$srcdir
/
*
.c
>
${
FROM
}
/
${
F1
}
cat
$srcdir
/
*
.c
>
${
FROM
}
/
text
mkdir
${
FROM
}
/dir
mkdir
${
FROM
}
/dir
cp
${
FROM
}
/
${
F1
}
${
FROM
}
/dir
cp
${
FROM
}
/
text
${
FROM
}
/dir
mkdir
${
FROM
}
/dir/subdir
mkdir
${
FROM
}
/dir/subdir
mkdir
${
FROM
}
/dir/subdir/subsubdir
mkdir
${
FROM
}
/dir/subdir/subsubdir
ls
-ltr
/etc
>
${
FROM
}
/dir/subdir/subsubdir/etc-ltr-list
ls
-ltr
/etc
>
${
FROM
}
/dir/subdir/subsubdir/etc-ltr-list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment