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
- Added FLAG_SKIP_GROUP define.
[rsync/rsync.git]
/
testsuite
/
backup.test
diff --git
a/testsuite/backup.test
b/testsuite/backup.test
index
f2cdb28
..
3d026f3
100644
(file)
--- a/
testsuite/backup.test
+++ b/
testsuite/backup.test
@@
-11,9
+11,9
@@
bakdir="$tmpdir/bak"
bakdir="$tmpdir/bak"
-m
kdir "$fromdir
" "$bakdir"
-name1="$fromdir/name1"
-name2="$fromdir/name2"
+m
akepath "$fromdir/deep
" "$bakdir"
+name1="$fromdir/
deep/
name1"
+name2="$fromdir/
deep/
name2"
outfile="$scratchdir/rsync.out"
outfile="$scratchdir/rsync.out"
@@
-28,9
+28,9
@@
cat "$srcdir"/[etw]*.[ch] > "$name2"
$RSYNC -avv --no-whole-file --backup "$fromdir/" "$todir/" \
| tee "$outfile"
$RSYNC -avv --no-whole-file --backup "$fromdir/" "$todir/" \
| tee "$outfile"
-for fn in
name1
name2; do
+for fn in
deep/name1 deep/
name2; do
grep "backed up $fn to $fn~" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
grep "backed up $fn to $fn~" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
- diff $diffopt "$fromdir/$fn" "$todir" || test_fail "copy of $fn failed"
+ diff $diffopt "$fromdir/$fn" "$todir
/$fn
" || test_fail "copy of $fn failed"
diff $diffopt "$chkdir/$fn" "$todir/$fn~" || test_fail "backup of $fn to $fn~ failed"
mv "$todir/$fn~" "$todir/$fn"
done
diff $diffopt "$chkdir/$fn" "$todir/$fn~" || test_fail "backup of $fn to $fn~ failed"
mv "$todir/$fn~" "$todir/$fn"
done
@@
-42,7
+42,7
@@
checkit "$RSYNC -avv --no-whole-file --delete-delay \
--backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
| tee "$outfile"
--backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
| tee "$outfile"
-for fn in
name1
name2; do
+for fn in
deep/name1 deep/
name2; do
grep "backed up $fn to .*/$fn$" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
done
diff -r $diffopt "$chkdir" "$bakdir" || test_fail "backup dir contents are bogus"
grep "backed up $fn to .*/$fn$" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
done
diff -r $diffopt "$chkdir" "$bakdir" || test_fail "backup dir contents are bogus"
@@
-55,7
+55,7
@@
cat "$srcdir"/[ew]*.[ch] > "$name2"
checkit "$RSYNC -avv --inplace --no-whole-file --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
| tee "$outfile"
checkit "$RSYNC -avv --inplace --no-whole-file --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \
| tee "$outfile"
-for fn in
name1
name2; do
+for fn in
deep/name1 deep/
name2; do
grep "backed up $fn to .*/$fn$" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
done
diff -r $diffopt "$chkdir" "$bakdir" || test_fail "backup dir contents are bogus"
grep "backed up $fn to .*/$fn$" "$outfile" >/dev/null || test_fail "no backup message output for $fn"
done
diff -r $diffopt "$chkdir" "$bakdir" || test_fail "backup dir contents are bogus"