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
501972bf
Commit
501972bf
authored
Sep 06, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split the 'longdir' test into its own script, and make it work without
'mkdir -p'.
parent
99cdaff7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
hands.test
testsuite/hands.test
+0
-6
longdir.test
testsuite/longdir.test
+18
-0
rsync.fns
testsuite/rsync.fns
+12
-3
No files found.
testsuite/hands.test
View file @
501972bf
...
...
@@ -25,12 +25,6 @@ runtest "extra data" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
cp
$
{
FROM
}
/
$
{
F1
}
$
{
TO
}
/
ThisShouldGo
runtest
" --delete"
'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
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
runtest
"long paths"
'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
...
...
testsuite/longdir.test
0 → 100644
View file @
501972bf
#!/bin/sh
# Copyright (C) 1998,1999 Philip Hands <phil@hands.com>
# Copyright (C) 2001 by Martin Pool <mbp@samba.org>
#
# This program is distributable under the terms of the GNU GPL (see COPYING)
.
"
$suitedir
/rsync.fns"
hands_setup
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
makepath
$
{
LONGDIR
}
date
>
$
{
LONGDIR
}
/
1
ls
-
la
/
>
$
{
LONGDIR
}
/
2
checkit
"
$RSYNC
--delete -avH ${FROM}/ ${TO}"
$
{
FROM
}
/
$
{
TO
}
testsuite/rsync.fns
View file @
501972bf
...
...
@@ -27,7 +27,14 @@ RSYNC="$rsync_bin"
runtest
()
{
echo
$ECHO_N
"Test
$1
:
$ECHO_C
"
eval
"
$2
"
if
eval
"
$2
"
then
echo
"
${
ECHO_T
}
done."
return
0
else
echo
"
${
ECHO_T
}
failed!"
return
1
fi
}
printmsg
()
{
...
...
@@ -39,6 +46,10 @@ printmsg() {
# Build test directories TO and FROM, with FROM full of files.
hands_setup
()
{
# Clean before creation
rm
-rf
$FROM
rm
-rf
$TO
[
-d
$FROM
]
||
mkdir
$FROM
[
-d
$TO
]
||
mkdir
$TO
...
...
@@ -130,11 +141,9 @@ checkit() {
(
cd
$3
;
ls
-laR
)
>
${
TMP
}
/ls-to 2>>
${
log
}
diff
-c
${
TMP
}
/ls-from
${
TMP
}
/ls-to
>>
${
log
}
2>&1
||
failed
=
YES
if
[
-z
"
${
failed
}
"
]
;
then
echo
"
${
ECHO_T
}
done."
rm
$log
return
0
else
echo
"
${
ECHO_T
}
failed!"
cat
${
log
}
rm
${
log
}
return
1
...
...
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