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