mirror of
https://github.com/RsyncProject/rsync.git
synced 2025-12-23 23:28:17 -05:00
- use `grep -E` and `grep -F` (`egrep` and `fgrep` are non-standard) - use same hashbang style for all test scripts - use explicit comparisons in test scripts - remove redundant ; from test scripts - make test script not executable, just like all the other scripts - unify codestyle across all test scripts - make openssl license exception clearer by having it at the top - use modern links in COPYING. The text now matches: https://www.gnu.org/licenses/gpl-3.0.txt - fix typo
22 lines
482 B
Bash
22 lines
482 B
Bash
#!/bin/sh
|
|
|
|
# Test rsync --delay-updates
|
|
|
|
. "$suitedir/rsync.fns"
|
|
|
|
mkdir "$fromdir"
|
|
|
|
echo 1 > "$fromdir/foo"
|
|
|
|
checkit "$RSYNC -aiv --delay-updates \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
|
|
|
|
mkdir "$todir/.~tmp~"
|
|
echo 2 > "$todir/.~tmp~/foo"
|
|
touch -r .. "$todir/.~tmp~/foo" "$todir/foo"
|
|
echo 3 > "$fromdir/foo"
|
|
|
|
checkit "$RSYNC -aiv --delay-updates \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
|
|
|
|
# The script would have aborted on error, so getting here means we've won.
|
|
exit 0
|