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
307555eb
Commit
307555eb
authored
Apr 14, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use upper-case HLINK in a --debug setting to avoid a really weird bug
in the strncasecmp() of OpenSUSE 10.2 (x86_64).
parent
261808da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
hardlinks.test
testsuite/hardlinks.test
+7
-7
No files found.
testsuite/hardlinks.test
View file @
307555eb
...
@@ -33,11 +33,11 @@ ln "$name2" "$name3" || fail "Can't create hardlink"
...
@@ -33,11 +33,11 @@ ln "$name2" "$name3" || fail "Can't create hardlink"
cp
"
$name2
"
"
$name4
"
||
fail
"Can't copy file"
cp
"
$name2
"
"
$name4
"
||
fail
"Can't copy file"
cat
$srcdir
/*.
c
>
"
$fromdir
/text"
cat
$srcdir
/*.
c
>
"
$fromdir
/text"
checkit
"
$RSYNC
-aHivv --debug=
hlink
5 '
$fromdir
/' '
$todir
/'"
"
$fromdir
"
"
$todir
"
checkit
"
$RSYNC
-aHivv --debug=
HLINK
5 '
$fromdir
/' '
$todir
/'"
"
$fromdir
"
"
$todir
"
echo
"extra extra"
>>
"
$todir
/name1"
echo
"extra extra"
>>
"
$todir
/name1"
checkit
"
$RSYNC
-aHivv --debug=
hlink
5 --no-whole-file '
$fromdir
/' '
$todir
/'"
"
$fromdir
"
"
$todir
"
checkit
"
$RSYNC
-aHivv --debug=
HLINK
5 --no-whole-file '
$fromdir
/' '
$todir
/'"
"
$fromdir
"
"
$todir
"
# Add a new link in a new subdirectory to test that we don't try to link
# Add a new link in a new subdirectory to test that we don't try to link
# the files before the directory gets created. We also create a bunch of
# the files before the directory gets created. We also create a bunch of
...
@@ -56,27 +56,27 @@ done
...
@@ -56,27 +56,27 @@ done
ln
"
$name1
"
"
$fromdir
/subdir/down/deep/new-file"
ln
"
$name1
"
"
$fromdir
/subdir/down/deep/new-file"
rm
"
$todir
/text"
rm
"
$todir
/text"
checkit
"
$RSYNC
-aHivve '
$SSH
' --debug=
hlink
5 --rsync-path='
$RSYNC
' '
$fromdir
/' localhost:'
$todir
/'"
"
$fromdir
"
"
$todir
"
checkit
"
$RSYNC
-aHivve '
$SSH
' --debug=
HLINK
5 --rsync-path='
$RSYNC
' '
$fromdir
/' localhost:'
$todir
/'"
"
$fromdir
"
"
$todir
"
# Do some duplicate copies using --link-dest and --copy-dest to test that
# Do some duplicate copies using --link-dest and --copy-dest to test that
# we hard-link all locally-inherited items.
# we hard-link all locally-inherited items.
checkit
"
$RSYNC
-aHivv --debug=
hlink
5 --link-dest='
$todir
' '
$fromdir
/' '
$chkdir
/'"
"
$todir
"
"
$chkdir
"
checkit
"
$RSYNC
-aHivv --debug=
HLINK
5 --link-dest='
$todir
' '
$fromdir
/' '
$chkdir
/'"
"
$todir
"
"
$chkdir
"
rm
-
rf
"
$chkdir
"
rm
-
rf
"
$chkdir
"
checkit
"
$RSYNC
-aHivv --debug=
hlink
5 --copy-dest='
$todir
' '
$fromdir
/' '
$chkdir
/'"
"
$fromdir
"
"
$chkdir
"
checkit
"
$RSYNC
-aHivv --debug=
HLINK
5 --copy-dest='
$todir
' '
$fromdir
/' '
$chkdir
/'"
"
$fromdir
"
"
$chkdir
"
# Create a hard link that has only one part in the hierarchy.
# Create a hard link that has only one part in the hierarchy.
echo
"This is another file"
>
"
$fromdir
/solo"
echo
"This is another file"
>
"
$fromdir
/solo"
ln
"
$fromdir
/solo"
"
$chkdir
/solo"
||
fail
"Can't create hardlink"
ln
"
$fromdir
/solo"
"
$chkdir
/solo"
||
fail
"Can't create hardlink"
# Make sure that the checksum data doesn't slide due to an HLINK_BUMP() change.
# Make sure that the checksum data doesn't slide due to an HLINK_BUMP() change.
$RSYNC
-
aHivc
--
debug
=
hlink
5
"
$fromdir
/"
"
$chkdir
/"
|
tee
"
$outfile
"
$RSYNC
-
aHivc
--
debug
=
HLINK
5
"
$fromdir
/"
"
$chkdir
/"
|
tee
"
$outfile
"
grep
solo
"
$outfile
"
&&
test_fail
"Erroneous copy of solo file occurred!"
grep
solo
"
$outfile
"
&&
test_fail
"Erroneous copy of solo file occurred!"
# Make sure there's nothing wrong with sending a single file with -H
# Make sure there's nothing wrong with sending a single file with -H
# enabled (this has broken twice so far, so we need this test).
# enabled (this has broken twice so far, so we need this test).
rm
-
rf
"
$todir
"
rm
-
rf
"
$todir
"
$RSYNC
-
aHivv
--
debug
=
hlink
5
"
$name1
"
"
$todir
/"
$RSYNC
-
aHivv
--
debug
=
HLINK
5
"
$name1
"
"
$todir
/"
diff
$diffopt
"
$name1
"
"
$todir
"
||
test_fail
"solo copy of name1 failed"
diff
$diffopt
"
$name1
"
"
$todir
"
||
test_fail
"solo copy of name1 failed"
# The script would have aborted on error, so getting here means we've won.
# The script would have aborted on error, so getting here means we've won.
...
...
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