summaryrefslogtreecommitdiff
path: root/tests/md5sum
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-26 04:13:46 +0000
committerJim Meyering <jim@meyering.net>1997-01-26 04:13:46 +0000
commit46f650f6b0a3f1abf4089d6b9a26c4db4e94d2a2 (patch)
treee4c4e17e89b0165886599447d4fb5241b789fe09 /tests/md5sum
parent74bca24efe438aa32de78983d28094f7c593b92a (diff)
downloadcoreutils-46f650f6b0a3f1abf4089d6b9a26c4db4e94d2a2.tar.xz
.
Diffstat (limited to 'tests/md5sum')
-rwxr-xr-xtests/md5sum/md5sum-tests56
1 files changed, 28 insertions, 28 deletions
diff --git a/tests/md5sum/md5sum-tests b/tests/md5sum/md5sum-tests
index 1211a6ea3..b3b7db0e3 100755
--- a/tests/md5sum/md5sum-tests
+++ b/tests/md5sum/md5sum-tests
@@ -12,15 +12,15 @@ test "$VERBOSE" && $xx --version 2> /dev/null
$xx < $srcdir/t1.in > t1.out 2> t1.err
code=$?
if test $code != 0 ; then
- $echo Test 1 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 1 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t1.out $srcdir/t1.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 1; fi ;; # equal files
- 1) $echo Test 1 failed: files t1.out and $srcdir/t1.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 1"; fi ;;
+ 1) $echo "Test 1 failed: files t1.out and $srcdir/t1.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 1 may have failed. 1>&2;
+ 2) $echo "Test 1 may have failed." 1>&2;
$echo The command "cmp t1.out $srcdir/t1.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -29,15 +29,15 @@ test -s t1.err || rm -f t1.err
$xx < $srcdir/t2.in > t2.out 2> t2.err
code=$?
if test $code != 0 ; then
- $echo Test 2 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 2 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t2.out $srcdir/t2.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 2; fi ;; # equal files
- 1) $echo Test 2 failed: files t2.out and $srcdir/t2.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 2"; fi ;;
+ 1) $echo "Test 2 failed: files t2.out and $srcdir/t2.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 2 may have failed. 1>&2;
+ 2) $echo "Test 2 may have failed." 1>&2;
$echo The command "cmp t2.out $srcdir/t2.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -46,15 +46,15 @@ test -s t2.err || rm -f t2.err
$xx < $srcdir/t3.in > t3.out 2> t3.err
code=$?
if test $code != 0 ; then
- $echo Test 3 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 3 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t3.out $srcdir/t3.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 3; fi ;; # equal files
- 1) $echo Test 3 failed: files t3.out and $srcdir/t3.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 3"; fi ;;
+ 1) $echo "Test 3 failed: files t3.out and $srcdir/t3.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 3 may have failed. 1>&2;
+ 2) $echo "Test 3 may have failed." 1>&2;
$echo The command "cmp t3.out $srcdir/t3.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -63,15 +63,15 @@ test -s t3.err || rm -f t3.err
$xx < $srcdir/t4.in > t4.out 2> t4.err
code=$?
if test $code != 0 ; then
- $echo Test 4 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 4 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t4.out $srcdir/t4.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 4; fi ;; # equal files
- 1) $echo Test 4 failed: files t4.out and $srcdir/t4.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 4"; fi ;;
+ 1) $echo "Test 4 failed: files t4.out and $srcdir/t4.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 4 may have failed. 1>&2;
+ 2) $echo "Test 4 may have failed." 1>&2;
$echo The command "cmp t4.out $srcdir/t4.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -80,15 +80,15 @@ test -s t4.err || rm -f t4.err
$xx < $srcdir/t5.in > t5.out 2> t5.err
code=$?
if test $code != 0 ; then
- $echo Test 5 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 5 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t5.out $srcdir/t5.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 5; fi ;; # equal files
- 1) $echo Test 5 failed: files t5.out and $srcdir/t5.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 5"; fi ;;
+ 1) $echo "Test 5 failed: files t5.out and $srcdir/t5.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 5 may have failed. 1>&2;
+ 2) $echo "Test 5 may have failed." 1>&2;
$echo The command "cmp t5.out $srcdir/t5.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -97,15 +97,15 @@ test -s t5.err || rm -f t5.err
$xx < $srcdir/t6.in > t6.out 2> t6.err
code=$?
if test $code != 0 ; then
- $echo Test 6 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 6 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t6.out $srcdir/t6.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 6; fi ;; # equal files
- 1) $echo Test 6 failed: files t6.out and $srcdir/t6.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 6"; fi ;;
+ 1) $echo "Test 6 failed: files t6.out and $srcdir/t6.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 6 may have failed. 1>&2;
+ 2) $echo "Test 6 may have failed." 1>&2;
$echo The command "cmp t6.out $srcdir/t6.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac
@@ -114,15 +114,15 @@ test -s t6.err || rm -f t6.err
$xx < $srcdir/t7.in > t7.out 2> t7.err
code=$?
if test $code != 0 ; then
- $echo Test 7 failed: ../../src/md5sum return code $code differs from expected value 0 1>&2
+ $echo "Test 7 failed: ../../src/md5sum return code $code differs from expected value 0" 1>&2
errors=`expr $errors + 1`
else
cmp t7.out $srcdir/t7.exp
case $? in
- 0) if test "$VERBOSE" ; then $echo passed 7; fi ;; # equal files
- 1) $echo Test 7 failed: files t7.out and $srcdir/t7.exp differ 1>&2;
+ 0) if test "$VERBOSE" ; then $echo "passed 7"; fi ;;
+ 1) $echo "Test 7 failed: files t7.out and $srcdir/t7.exp differ" 1>&2;
errors=`expr $errors + 1` ;;
- 2) $echo Test 7 may have failed. 1>&2;
+ 2) $echo "Test 7 may have failed." 1>&2;
$echo The command "cmp t7.out $srcdir/t7.exp" failed. 1>&2 ;
errors=`expr $errors + 1` ;;
esac