longdir.test 877 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # Copyright (C) 1998,1999 Philip Hands <phil@hands.com>
  3. # Copyright (C) 2001 by Martin Pool <mbp@samba.org>
  4. #
  5. # This program is distributable under the terms of the GNU GPL (see COPYING)
  6. . "$suitedir/rsync.fns"
  7. hands_setup
  8. longname=This-is-a-directory-with-a-stupidly-long-name-created-in-an-attempt-to-provoke-an-error-found-in-2.0.11-that-should-hopefully-never-appear-again-if-this-test-does-its-job
  9. longdir="$fromdir/$longname/$longname/$longname"
  10. makepath "$longdir" || test_skipped "unable to create long directory"
  11. touch "$longdir/1" || test_skipped "unable to create files in long directory"
  12. date > "$longdir/1"
  13. if [ -r /etc ]; then
  14. ls -la /etc >"$longdir/2"
  15. else
  16. ls -la / >"$longdir/2"
  17. fi
  18. checkit "$RSYNC --delete -avH '$fromdir/' '$todir'" "$fromdir/" "$todir"
  19. # The script would have aborted on error, so getting here means we've won.
  20. exit 0