| 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright (C) 1998, 1999 by Philip Hands <phil@hands.com> |
| 4 | # Copyright (C) 2001, 2002 by Martin Pool <mbp@samba.org> |
| 5 | # |
| 6 | # This program is distributable under the terms of the GNU GPL (see COPYING) |
| 7 | |
| 8 | . "$suitedir/rsync.fns" |
| 9 | |
| 10 | hands_setup |
| 11 | |
| 12 | # Main script starts here |
| 13 | |
| 14 | runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}' |
| 15 | |
| 16 | ln ${FROM}/filelist ${FROM}/dir |
| 17 | runtest "hard links" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' |
| 18 | |
| 19 | rm ${TO}/text |
| 20 | runtest "one file" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' |
| 21 | |
| 22 | echo "extra line" >> ${TO}/text |
| 23 | runtest "extra data" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' |
| 24 | |
| 25 | cp ${FROM}/text ${TO}/ThisShouldGo |
| 26 | runtest " --delete" 'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' |
| 27 | |
| 28 | exit 0 |