Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/bunzip2.tests

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 470  prep() { Line 470  prep() {
470  check() {  check() {
471      eval $2 >t_actual 2>&1      eval $2 >t_actual 2>&1
472      if $ECHO -ne "$expected" | cmp - t_actual; then      if $ECHO -ne "$expected" | cmp - t_actual; then
473   echo "$1: PASS"   echo "PASS: $1"
474      else      else
475   echo "$1: FAIL"   echo "FAIL: $1"
476      fi      fi
477  }  }
478    
# Line 504  prep; >t1; check "$unpack: already exist Line 504  prep; >t1; check "$unpack: already exist
504    
505  # From old testsuite  # From old testsuite
506  expected="HELLO\n0\n"  expected="HELLO\n0\n"
507  prep; check "$unpack: stream unpack" "cat t1.$ext | ${bb}$unpack; echo $?"  prep; check "$unpack: stream unpack" "cat t1.$ext | ${bb}$unpack; echo \$?"
508    
509  expected="ok\n"  expected="ok\n"
510  prep; check "$unpack: delete src" "${bb}$unpack t2.$ext; test ! -f t2.$ext && echo ok"  prep; check "$unpack: delete src" "${bb}$unpack t2.$ext; test ! -f t2.$ext && echo ok"
# Line 517  if test "${0##*/}" = "bunzip2.tests"; th Line 517  if test "${0##*/}" = "bunzip2.tests"; th
517      if test1_bz2 | ${bb}bunzip2 >/dev/null \      if test1_bz2 | ${bb}bunzip2 >/dev/null \
518   && test "`test1_bz2 | ${bb}bunzip2 | md5sum`" = "61bbeee4be9c6f110a71447f584fda7b  -"   && test "`test1_bz2 | ${bb}bunzip2 | md5sum`" = "61bbeee4be9c6f110a71447f584fda7b  -"
519      then      then
520   echo "$unpack: test bz2 file: PASS"   echo "PASS: $unpack: test bz2 file"
521      else      else
522   echo "$unpack: test bz2 file: FAIL"   echo "FAIL: $unpack: test bz2 file"
523      fi      fi
524  fi  fi

Legend:
Removed from v.983  
changed lines
  Added in v.984