#!/bin/sh # Copyright (C) 1998, 1999 by Philip Hands # Copyright (C) 2001, 2002 by Martin Pool # # This program is distributable under the terms of the GNU GPL (see COPYING) . "$suitedir/rsync.fns" hands_setup # Main script starts here runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}' ln ${FROM}/filelist ${FROM}/dir runtest "hard links" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' rm ${TO}/text runtest "one file" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' echo "extra line" >> ${TO}/text runtest "extra data" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' cp ${FROM}/text ${TO}/ThisShouldGo runtest " --delete" 'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' exit 0