diff options
author | Martin Pool <mbp@samba.org> | 2001-08-29 09:18:45 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2001-08-29 09:18:45 +0000 |
commit | e8ca59014212d539dbddcdf6d0d320d70fc2857c (patch) | |
tree | f92ff63df67d928944e57c9c598caae19931ab1e /testsuite/hands.test | |
parent | 863dff5179921b8214f7f6a874e620f3e9bb2d9a (diff) | |
download | rsync-e8ca59014212d539dbddcdf6d0d320d70fc2857c.tar.gz |
Cleanup check_logs feature.
`ps ax' is not portable -- don't use it to generate random text. Use
`ls -lR' instead.
Diffstat (limited to 'testsuite/hands.test')
-rw-r--r-- | testsuite/hands.test | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/testsuite/hands.test b/testsuite/hands.test index b9c68c46..aeb208d3 100644 --- a/testsuite/hands.test +++ b/testsuite/hands.test @@ -1,38 +1,19 @@ #!/bin/sh # Copyright (C) 1998,1999 Philip Hands <phil@hands.com> +# Copyright (C) 2001 by Martin Pool <mbp@samba.org> # # This program is distributable under the terms of the GNU GPL (see COPYING) -# -# This is a simple test script that tests a few rsync -# features to make sure I haven't broken them before a release. -# -# . "$suitedir/rsync.fns" hands_setup - -checkforlogs() { - # skip it if we're under debian-test - if test -n "${Debian}" ; then return 0 ; fi - - if [ -f $1 -a -s $1 ] ; then - echo "Failures have occurred. $1 follows:" >&2 - cat $1 >&2 - exit 1 - else - echo "" - echo "Tests Completed Successfully :-)" - fi -} - # Main script starts here runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}' -ln ${FROM}/pslist ${FROM}/dir +ln ${FROM}/filelist ${FROM}/dir runtest "hard links" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}' rm ${TO}/${F1} |