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
12865a97
Commit
12865a97
authored
Jan 27, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test to make sure that merging files from multiple directories
continues to work.
parent
ea847c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
merge.test
testsuite/merge.test
+52
-0
No files found.
testsuite/merge.test
0 → 100644
View file @
12865a97
#! /bin/sh
# Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
# This program is distributable under the terms of the GNU GPL (see
# COPYING).
# Make sure we can merge files from multiple directories into one.
.
$srcdir
/
testsuite
/
rsync
.
fns
set
-
x
# Build some files/dirs/links to copy
fromdir
=
"
$scratchdir
/from"
from1dir
=
"${fromdir}1"
from2dir
=
"${fromdir}2"
from3dir
=
"${fromdir}3"
todir
=
"
$scratchdir
/to"
chkdir
=
"
$scratchdir
/chk"
mkdir
"
$from1dir
"
"
$from2dir
"
"
$from3dir
"
mkdir
"
$from2dir
"
/
sub1
"
$from3dir
"
/
sub1
mkdir
"
$from3dir
"
/
sub2
mkdir
"
$chkdir
"
"
$chkdir
"
/
sub1
"
$chkdir
"
/
sub2
echo
"one"
>
"
$from1dir
"
/
one
echo
"uno"
>
"
$from2dir
"
/
one
echo
"1"
>
"
$from3dir
"
/
one
echo
"two"
>
"
$from1dir
"
/
two
echo
"three"
>
"
$from2dir
"
/
three
echo
"four"
>
"
$from3dir
"
/
four
echo
"five"
>
"
$from1dir
"
/
five
echo
"six"
>
"
$from3dir
"
/
six
echo
"sub1"
>
"
$from2dir
"
/
sub1
/
uno
echo
"hmm1"
>
"
$from3dir
"
/
sub1
/
uno
echo
"sub2"
>
"
$from3dir
"
/
sub1
/
dos
echo
"sub3"
>
"
$from2dir
"
/
sub1
/
tres
echo
"subby"
>
"
$from3dir
"
/
sub2
/
subby
cp
-
p
"
$from1dir
"
/
one
"
$from1dir
"
/
two
"
$from2dir
"
/
three
"
$from3dir
"
/
four
"
$from1dir
"
/
five
"
$from3dir
"
/
six
"
$chkdir
"
cp
-
p
"
$from2dir
"
/
sub1
/
uno
"
$from3dir
"
/
sub1
/
dos
"
$from2dir
"
/
sub1
/
tres
"
$chkdir
"
/
sub1
cp
-
p
"
$from3dir
"
/
sub2
/
subby
"
$chkdir
"
/
sub2
# Fix the directory times
$RSYNC
-
av
--
include
=
'*/'
--
exclude
=
'*'
"
$from3dir
/"
"
$chkdir
/"
$RSYNC
-
av
--
include
=
'*/'
--
exclude
=
'*'
"
$from2dir
/"
"
$chkdir
/"
$RSYNC
-
av
--
include
=
'*/'
--
exclude
=
'*'
"
$from1dir
/"
"
$chkdir
/"
checkit
"
$RSYNC
-aHvv
\"
$fromdir
\"
?/
\"
$todir
/
\"
"
"
$chkdir
"
"
$todir
"
exit
0
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