Diff for /embedaddon/rsync/testsuite/devices.test between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/17 15:09:30 version 1.1.1.2, 2013/10/14 07:51:15
Line 19  case $0 in Line 19  case $0 in
     $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"      $RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync needs xattrs for fake device tests"
     RSYNC="$RSYNC --fake-super"      RSYNC="$RSYNC --fake-super"
     TLS_ARGS="$TLS_ARGS --fake-super"      TLS_ARGS="$TLS_ARGS --fake-super"
    case "`xattr 2>&1`" in    case "$HOST_OS" in
    *--list:*)    darwin*)
         mknod() {          mknod() {
             fn="$1"              fn="$1"
             case "$2" in              case "$2" in
Line 34  case $0 in Line 34  case $0 in
             xattr -s 'rsync.%stat' "$mode $maj,$min 0:0" "$fn"              xattr -s 'rsync.%stat' "$mode $maj,$min 0:0" "$fn"
         }          }
         ;;          ;;
       solaris*)
           mknod() {
               fn="$1"
               case "$2" in
               p) mode=10644 ;;
               c) mode=20644 ;;
               b) mode=60644 ;;
               esac
               maj="${3:-0}"
               min="${4:-0}"
               touch "$fn"
               runat "$fn" "$SHELL_PATH" <<EOF
   echo "$mode $maj,$min 0:0" > rsync.%stat
   EOF
           }
           ;;
     *)      *)
         mknod() {          mknod() {
             fn="$1"              fn="$1"
Line 54  case $0 in Line 70  case $0 in
     case `get_testuid` in      case `get_testuid` in
     '') ;; # If "id" failed, try to continue...      '') ;; # If "id" failed, try to continue...
     0)  ;;      0)  ;;
    *)  if [ -f /usr/bin/fakeroot ]; then    *)  if [ -e "$FAKEROOT_PATH" ]; then
             echo "Let's try re-running the script under fakeroot..."              echo "Let's try re-running the script under fakeroot..."
            exec /usr/bin/fakeroot /bin/sh $RUNSHFLAGS "$0"            exec "$FAKEROOT_PATH" "$SHELL_PATH" $RUNSHFLAGS "$0"
         fi          fi
         test_skipped "Rsync needs root/fakeroot for device tests"          test_skipped "Rsync needs root/fakeroot for device tests"
         ;;          ;;
Line 74  mknod "$fromdir/char3" c 42 69  || test_skipped "Can't Line 90  mknod "$fromdir/char3" c 42 69  || test_skipped "Can't
 mknod "$fromdir/block" b 42 69 || test_skipped "Can't create block device node"  mknod "$fromdir/block" b 42 69 || test_skipped "Can't create block device node"
 mknod "$fromdir/block2" b 42 73 || test_skipped "Can't create block device node"  mknod "$fromdir/block2" b 42 73 || test_skipped "Can't create block device node"
 mknod "$fromdir/block3" b 105 73 || test_skipped "Can't create block device node"  mknod "$fromdir/block3" b 105 73 || test_skipped "Can't create block device node"
ln "$fromdir/block3" "$fromdir/block2.5" || echo "Skipping hard-linked device test..."ln "$fromdir/block3" "$fromdir/block3.5" || echo "Skipping hard-linked device test..."
 mkfifo "$fromdir/fifo" || mknod "$fromdir/fifo" p || test_skipped "Can't run mkfifo"  mkfifo "$fromdir/fifo" || mknod "$fromdir/fifo" p || test_skipped "Can't run mkfifo"
 # Work around time rounding/truncating issue by touching both files.  # Work around time rounding/truncating issue by touching both files.
 touch -r "$fromdir/block" "$fromdir/block" "$fromdir/block2"  touch -r "$fromdir/block" "$fromdir/block" "$fromdir/block2"
Line 110  cat <<EOT >"$chkfile" Line 126  cat <<EOT >"$chkfile"
 cDc.t.$dots block  cDc.t.$dots block
 cDc...$dots block2  cDc...$dots block2
 cD$all_plus block3  cD$all_plus block3
hD$all_plus block2.5 => block3hD$all_plus block3.5 => block3
 cD$all_plus char  cD$all_plus char
 cD$all_plus char2  cD$all_plus char2
 cD$all_plus char3  cD$all_plus char3
 cS$all_plus fifo  cS$all_plus fifo
 EOT  EOT
if test ! -r "$fromdir/block2.5"; thenif test ! -r "$fromdir/block3.5"; then
    grep -v block2.5 <"$chkfile" >"$chkfile.new"    grep -v block3.5 <"$chkfile" >"$chkfile.new"
     mv "$chkfile.new" "$chkfile"      mv "$chkfile.new" "$chkfile"
 fi  fi
 diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"  diff $diffopt "$chkfile" "$outfile" || test_fail "test 4 failed"
Line 128  echo "" Line 144  echo ""
 ( cd "$todir" && rsync_ls_lR . ) > "$tmpdir/ls-to"  ( cd "$todir" && rsync_ls_lR . ) > "$tmpdir/ls-to"
 diff $diffopt "$tmpdir/ls-from" "$tmpdir/ls-to"  diff $diffopt "$tmpdir/ls-from" "$tmpdir/ls-to"
   
if test -r "$fromdir/block2.5"; thenif test -r "$fromdir/block3.5"; then
     set -x      set -x
     $RSYNC -aii --link-dest="$todir" "$fromdir/" "$chkdir/" \      $RSYNC -aii --link-dest="$todir" "$fromdir/" "$chkdir/" \
         | tee "$outfile"          | tee "$outfile"
Line 136  if test -r "$fromdir/block2.5"; then Line 152  if test -r "$fromdir/block2.5"; then
 cd$allspace ./  cd$allspace ./
 hD$allspace block  hD$allspace block
 hD$allspace block2  hD$allspace block2
 hD$allspace block2.5  
 hD$allspace block3  hD$allspace block3
   hD$allspace block3.5
 hD$allspace char  hD$allspace char
 hD$allspace char2  hD$allspace char2
 hD$allspace char3  hD$allspace char3

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


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