Preparing for release of 3.2.4pre2
[rsync.git] / testsuite / crtimes.test
blob51bfe301cfec32e77276a10f6483928e9c38d521
1 #!/bin/sh
3 # Test rsync copying create times
5 . "$suitedir/rsync.fns"
7 $RSYNC --version | grep "[, ] crtimes" >/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.
12 mkdir "$fromdir"
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"
21 TLS_ARGS=--crtimes
23 checkit "$RSYNC -rtgvvv --crtimes \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
25 # The script would have aborted on error, so getting here means we've won.
26 exit 0