More tweaks for Actions.
[rsync.git] / testsuite / crtimes.test
1 #!/bin/sh
2
3 # Test rsync copying create times
4
5 . "$suitedir/rsync.fns"
6
7 $RSYNC -VV | grep '"crtimes": true' >/dev/null || test_skipped "Rsync is configured without crtimes support"
8
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.
11
12 mkdir "$fromdir"
13 echo hiho >"$fromdir/foo"
14
15 touch -t 200101011111.11 "$fromdir"
16 touch -t 200202022222.22 "$fromdir"
17
18 touch -t 200111111111.11 "$fromdir/foo"
19 touch -t 200212122222.22 "$fromdir/foo"
20
21 TLS_ARGS=--crtimes
22
23 checkit "$RSYNC -rtgvvv --crtimes \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
24
25 # The script would have aborted on error, so getting here means we've won.
26 exit 0