daemon-gzip-upload.test 921 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. # Copyright (C) 2001, 2002 by Martin Pool <mbp@samba.org>
  3. # This program is distributable under the terms of the GNU GPL (see
  4. # COPYING)
  5. # We don't really want to start the server listening, because that
  6. # might interfere with the security or operation of the test machine.
  7. # Instead we use the fake-connect feature to dynamically assign a pair
  8. # of ports.
  9. # This test tries to upload a file over a compressed connection to the
  10. # server. This ought to exercise (exorcise?) a bug in 2.5.3.
  11. . "$suitedir/rsync.fns"
  12. build_rsyncd_conf
  13. RSYNC_CONNECT_PROG="$RSYNC --config=$conf --daemon"
  14. export RSYNC_CONNECT_PROG
  15. hands_setup
  16. # Build chkdir with a normal rsync and an --exclude.
  17. $RSYNC -av --exclude=foobar.baz "$fromdir/" "$chkdir/"
  18. checkit "'$ignore23' $RSYNC -avvvvz '$fromdir/' localhost::test-to/" "$chkdir" "$todir"
  19. # The script would have aborted on error, so getting here means we've won.
  20. exit 0