3 # Test rsync copying create times
5 . "$suitedir/rsync.fns"
7 $RSYNC -VV | grep '"crtimes": true' >/dev/null || test_skipped "Rsync is configured without crtimes support"
9 # Setting an older time via touch sets the create time to the mtime.
10 # Setting it to a newer time affects just the mtime.
13 echo hiho >"$fromdir/foo"
15 touch -t 200101011111.11 "$fromdir"
16 touch -t 200202022222.22 "$fromdir"
18 touch -t 200111111111.11 "$fromdir/foo"
19 touch -t 200212122222.22 "$fromdir/foo"
23 checkit "$RSYNC -rtgvvv --crtimes \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
25 # The script would have aborted on error, so getting here means we've won.