Fix compile w/o openssl; disable sha256 & sha512 for --checksum.
[rsync.git] / testsuite / delay-updates.test
blob3b6226b4b28b9adf4b3a426947104403b48e7aac
1 #!/bin/sh
3 # Test rsync --delay-updates
5 . "$suitedir/rsync.fns"
7 mkdir "$fromdir"
9 echo 1 > "$fromdir/foo"
11 checkit "$RSYNC -aiv --delay-updates \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
13 mkdir "$todir/.~tmp~"
14 echo 2 > "$todir/.~tmp~/foo"
15 touch -r .. "$todir/.~tmp~/foo" "$todir/foo"
16 echo 3 > "$fromdir/foo"
18 checkit "$RSYNC -aiv --delay-updates \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
20 # The script would have aborted on error, so getting here means we've won.
21 exit 0