diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-04-23 13:17:41 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-04-23 13:24:15 -0700 |
commit | b936741032fbfcd41b74ae4ca76ea718df25c64b (patch) | |
tree | 783e982e10171d8815cb8d1a607fb4c37daf49ab /testsuite/atimes.test | |
parent | 2b2a3c87b6390ffef87311eb6551117a312d4f61 (diff) | |
download | rsync-b936741032fbfcd41b74ae4ca76ea718df25c64b.tar.gz |
Added --atimes and --set-noatime options.
Diffstat (limited to 'testsuite/atimes.test')
-rw-r--r-- | testsuite/atimes.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/atimes.test b/testsuite/atimes.test new file mode 100644 index 00000000..bd3f2927 --- /dev/null +++ b/testsuite/atimes.test @@ -0,0 +1,17 @@ +#! /bin/sh + +# Test rsync copying atimes + +. "$suitedir/rsync.fns" + +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 |