Mention smart-make in a comment.
[rsync.git] / testsuite / hands.test
blob8e265b7c2ef8428478cd3ff4f8ef1313975716ea
1 #!/bin/sh
3 # Copyright (C) 1998, 1999 by Philip Hands <phil@hands.com>
4 # Copyright (C) 2001, 2002 by Martin Pool <mbp@samba.org>
6 # This program is distributable under the terms of the GNU GPL (see COPYING)
8 . "$suitedir/rsync.fns"
10 hands_setup
12 DEBUG_OPTS="--debug=all0,deltasum0"
14 # Main script starts here
16 runtest "basic operation" 'checkit "$RSYNC -av \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
18 ln "$fromdir/filelist" "$fromdir/dir"
19 runtest "hard links" 'checkit "$RSYNC -avH --bwlimit=0 $DEBUG_OPTS \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
21 rm "$todir/text"
22 runtest "one file" 'checkit "$RSYNC -avH $DEBUG_OPTS \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
24 echo "extra line" >> "$todir/text"
25 runtest "extra data" 'checkit "$RSYNC -avH $DEBUG_OPTS --no-whole-file \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
27 cp "$fromdir/text" "$todir/ThisShouldGo"
28 runtest " --delete" 'checkit "$RSYNC --delete -avH $DEBUG_OPTS \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
30 cd "$tmpdir"
31 rm -rf to from/*dir
33 # Do the real copy, touch up the parent-dir's time, and then check the copy.
34 $RSYNC -av from/* to/
35 checkit "$RSYNC -av --exclude='*' from/ to/" "$fromdir" "$todir"
37 # The script would have aborted on error, so getting here means we've won.
38 exit 0