missing.test 954 B

12345678910111213141516171819202122232425262728
  1. #! /bin/sh
  2. # This program is distributable under the terms of the GNU GPL (see
  3. # COPYING).
  4. # Test three bugs fixed by my redoing of the missing_below logic.
  5. . $srcdir/testsuite/rsync.fns
  6. makepath "$fromdir/subdir" "$todir"
  7. echo data >"$fromdir/subdir/file"
  8. echo data >"$todir/other"
  9. # Test 1: Too much "not creating new..." output on a dry run
  10. $RSYNC -n -r --ignore-non-existing -vv "$fromdir/" "$todir/" | tee "$scratchdir/out"
  11. if grep 'not creating new.*subdir/file' "$scratchdir/out" >/dev/null; then
  12. test_fail 'test 1 failed'
  13. fi
  14. # Test 2: Attempt to make a fuzzy dirlist for a dir not created on a dry run
  15. $RSYNC -n -r -R --no-implied-dirs -y "$fromdir/./subdir/file" "$todir/" \
  16. || test_fail 'test 2 failed'
  17. # Test 3: --delete-after pass skipped when last dir is dry-missing
  18. $RSYNC -n -r --delete-after -i "$fromdir/" "$todir/" | tee "$scratchdir/out"
  19. grep '^\*deleting * other' "$scratchdir/out" >/dev/null \
  20. || test_fail 'test 3 failed'