summaryrefslogtreecommitdiffstats
path: root/testsuite/atimes.test
blob: 4d46eb0570c71eba30d2d3dafaa0ea0f8966efcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Test rsync copying atimes

. "$suitedir/rsync.fns"

$RSYNC -VV | grep '"atimes": true' >/dev/null || test_skipped "Rsync is configured without atimes support"

mkdir "$fromdir"

touch "$fromdir/foo"
touch -a -t 200102031717.42 "$fromdir/foo"

TLS_ARGS=--atimes

checkit "$RSYNC -rtUgvvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"

# The script would have aborted on error, so getting here means we've won.
exit 0