Diff for /embedaddon/rsync/testsuite/itemize.test between versions 1.1 and 1.1.1.3

version 1.1, 2012/02/17 15:09:30 version 1.1.1.3, 2021/03/17 00:32:36
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
   
# Copyright (C) 2005 by Wayne Davison <wayned@samba.org># Copyright (C) 2005-2020 Wayne Davison
   
 # This program is distributable under the terms of the GNU GPL (see  # This program is distributable under the terms of the GNU GPL (see
 # COPYING).  # COPYING).
Line 17  outfile="$scratchdir/rsync.out" Line 17  outfile="$scratchdir/rsync.out"
   
 makepath "$fromdir/foo"  makepath "$fromdir/foo"
 makepath "$fromdir/bar/baz"  makepath "$fromdir/bar/baz"
cp -p "$srcdir/configure.ac" "$fromdir/foo/config1"cp_p "$srcdir/configure.ac" "$fromdir/foo/config1"
cp -p "$srcdir/config.h.in" "$fromdir/foo/config2"cp_p "$srcdir/config.sub" "$fromdir/foo/config2"
cp -p "$srcdir/rsync.h" "$fromdir/bar/baz/rsync"cp_p "$srcdir/rsync.h" "$fromdir/bar/baz/rsync"
 chmod 600 "$fromdir"/foo/config? "$fromdir/bar/baz/rsync"  chmod 600 "$fromdir"/foo/config? "$fromdir/bar/baz/rsync"
 umask 0  umask 0
 ln -s ../bar/baz/rsync "$fromdir/foo/sym"  ln -s ../bar/baz/rsync "$fromdir/foo/sym"
Line 40  case "$RSYNC" in Line 40  case "$RSYNC" in
     T=.T      T=.T
     ;;      ;;
 *)  *)
    if $RSYNC --version | grep ", symtimes" >/dev/null; then    if $RSYNC --version | grep "[, ] symtimes" >/dev/null; then
         T=.t          T=.t
     else      else
         T=.T          T=.T
Line 66  diff $diffopt "$chkfile" "$outfile" || test_fail "test Line 66  diff $diffopt "$chkfile" "$outfile" || test_fail "test
 # Ensure there are no accidental directory-time problems.  # Ensure there are no accidental directory-time problems.
 $RSYNC -a -f '-! */' "$fromdir/" "$todir"  $RSYNC -a -f '-! */' "$fromdir/" "$todir"
   
cp -p "$srcdir/configure.ac" "$fromdir/foo/config2"cp_p "$srcdir/configure.ac" "$fromdir/foo/config2"
 chmod 601 "$fromdir/foo/config2"  chmod 601 "$fromdir/foo/config2"
 $RSYNC -iplrH "$fromdir/" "$todir/" \  $RSYNC -iplrH "$fromdir/" "$todir/" \
     | tee "$outfile"      | tee "$outfile"
Line 79  EOT Line 79  EOT
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 2 failed"  diff $diffopt "$chkfile" "$outfile" || test_fail "test 2 failed"
   
 $RSYNC -a -f '-! */' "$fromdir/" "$todir"  $RSYNC -a -f '-! */' "$fromdir/" "$todir"
   cp_p "$srcdir/config.sub" "$fromdir/foo/config2"
 sleep 1 # For directory mod below to ensure time difference  sleep 1 # For directory mod below to ensure time difference
 rm "$todir/foo/sym"  rm "$todir/foo/sym"
 umask 0  umask 0
 ln -s ../bar/baz "$todir/foo/sym"  ln -s ../bar/baz "$todir/foo/sym"
 umask 022  umask 022
 cp -p "$srcdir/config.h.in" "$fromdir/foo/config2"  
 chmod 600 "$fromdir/foo/config2"  chmod 600 "$fromdir/foo/config2"
 chmod 777 "$todir/bar/baz/rsync"  chmod 777 "$todir/bar/baz/rsync"
   
Line 99  cLc$T.$dots foo/sym -> ../bar/baz/rsync Line 99  cLc$T.$dots foo/sym -> ../bar/baz/rsync
 EOT  EOT
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 3 failed"  diff $diffopt "$chkfile" "$outfile" || test_fail "test 3 failed"
   
cp -p "$srcdir/configure.ac" "$fromdir/foo/config2"cp_p "$srcdir/configure.ac" "$fromdir/foo/config2"
 chmod 600 "$fromdir/foo/config2"  chmod 600 "$fromdir/foo/config2"
 # Lack of -t is for unchanged hard-link stress-test!  # Lack of -t is for unchanged hard-link stress-test!
 $RSYNC -vvplrH "$fromdir/" "$todir/" \  $RSYNC -vvplrH "$fromdir/" "$todir/" \
Line 108  filter_outfile Line 108  filter_outfile
 cat <<EOT >"$chkfile"  cat <<EOT >"$chkfile"
 bar/baz/rsync is uptodate  bar/baz/rsync is uptodate
 foo/config1 is uptodate  foo/config1 is uptodate
 foo/config2  
 foo/extra is uptodate  foo/extra is uptodate
 foo/sym is uptodate  foo/sym is uptodate
   foo/config2
 EOT  EOT
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"  diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"
   
Line 203  bar/baz/rsync is uptodate Line 203  bar/baz/rsync is uptodate
 foo/ is uptodate  foo/ is uptodate
 foo/config1 is uptodate  foo/config1 is uptodate
 foo/config2 is uptodate  foo/config2 is uptodate
 foo/extra => foo/config1  
 foo/sym $is_uptodate  foo/sym $is_uptodate
   foo/extra => foo/config1
 EOT  EOT
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 10 failed"  diff $diffopt "$chkfile" "$outfile" || test_fail "test 10 failed"
   

Removed from v.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>