diff options
Diffstat (limited to 'testsuite/md5sum.tests')
-rwxr-xr-x | testsuite/md5sum.tests | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/md5sum.tests b/testsuite/md5sum.tests index cca26dc64..a6d2b7ffb 100755 --- a/testsuite/md5sum.tests +++ b/testsuite/md5sum.tests | |||
@@ -9,6 +9,7 @@ | |||
9 | # efe30c482e0b687e0cca0612f42ca29b | 9 | # efe30c482e0b687e0cca0612f42ca29b |
10 | # d41337e834377140ae7f98460d71d908598ef04f | 10 | # d41337e834377140ae7f98460d71d908598ef04f |
11 | # 8e1d3ed57ebc130f0f72508446559eeae06451ae6d61b1e8ce46370cfb8963c3 | 11 | # 8e1d3ed57ebc130f0f72508446559eeae06451ae6d61b1e8ce46370cfb8963c3 |
12 | # c01420bb6613d4bd00396a82033e59e81486cbb045ae0dd2b4c3332e581b3ce09fb1946d6e283acec685778ff205d485 | ||
12 | # fe413e0f177324d1353893ca0772ceba83fd41512ba63895a0eebb703ef9feac2fb4e92b2cb430b3bda41b46b0cb4ea8307190a5cc795157cfb680a9cd635d0f | 13 | # fe413e0f177324d1353893ca0772ceba83fd41512ba63895a0eebb703ef9feac2fb4e92b2cb430b3bda41b46b0cb4ea8307190a5cc795157cfb680a9cd635d0f |
13 | 14 | ||
14 | if ! test "$1"; then | 15 | if ! test "$1"; then |
@@ -31,9 +32,9 @@ text=`yes "$text" | head -c 9999` | |||
31 | result=`( | 32 | result=`( |
32 | n=0 | 33 | n=0 |
33 | while test $n -le 999; do | 34 | while test $n -le 999; do |
34 | echo "$text" | head -c $n | "$sum" | 35 | echo "$text" | head -c $n | $sum |
35 | n=$(($n+1)) | 36 | n=$(($n+1)) |
36 | done | "$sum" | 37 | done | $sum |
37 | )` | 38 | )` |
38 | if test x"$result" != x"$expected -"; then | 39 | if test x"$result" != x"$expected -"; then |
39 | echo "FAIL: $sum (r:$result exp:$expected)" | 40 | echo "FAIL: $sum (r:$result exp:$expected)" |
@@ -44,7 +45,7 @@ fi | |||
44 | 45 | ||
45 | # GNU compat: -c EMPTY must fail (exitcode 1)! | 46 | # GNU compat: -c EMPTY must fail (exitcode 1)! |
46 | >EMPTY | 47 | >EMPTY |
47 | if "$sum" -c EMPTY 2>/dev/null; then | 48 | if $sum -c EMPTY 2>/dev/null; then |
48 | echo "FAIL: $sum -c EMPTY" | 49 | echo "FAIL: $sum -c EMPTY" |
49 | : $((FAILCOUNT++)) | 50 | : $((FAILCOUNT++)) |
50 | else | 51 | else |