Use newer protocol to avoid mtime corruption.
[rsync.git] / testsuite / atimes.test
1 #!/bin/sh
2
3 # Test rsync copying atimes
4
5 . "$suitedir/rsync.fns"
6
7 $RSYNC --version | grep "[, ] atimes" >/dev/null || test_skipped "Rsync is configured without atimes support"
8
9 mkdir "$fromdir"
10
11 touch "$fromdir/foo"
12 touch -a -t 200102031717.42 "$fromdir/foo"
13
14 TLS_ARGS=--atimes
15
16 checkit "$RSYNC -rtUgvvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
17
18 # The script would have aborted on error, so getting here means we've won.
19 exit 0