aboutsummaryrefslogtreecommitdiff
path: root/testsuite/md5sum.tests
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2013-11-10 22:01:38 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-10 22:06:06 +0100
commitafa63b2dcdc9b9d0183ffd84599ea5d4ad94d639 (patch)
treeaf1b15bd42d42ee5be891983d86532e6e41c7ab8 /testsuite/md5sum.tests
parent5e63776212f8fab4fba08ab2b99dd5241f0c3880 (diff)
downloadbusybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.tar.gz
busybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.tar.bz2
busybox-w32-afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639.zip
fix bashisms in testsuite/
These places use ${var/search/replace}, $((n++) and `type -p' constructs which are not-so-standard. Replace with equivalent constructs. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'testsuite/md5sum.tests')
-rwxr-xr-xtestsuite/md5sum.tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/md5sum.tests b/testsuite/md5sum.tests
index 1068b083f..6c75b6d1c 100755
--- a/testsuite/md5sum.tests
+++ b/testsuite/md5sum.tests
@@ -30,13 +30,13 @@ result=`(
30n=0 30n=0
31while test $n -le 999; do 31while test $n -le 999; do
32 echo "$text" | head -c $n | "$sum" 32 echo "$text" | head -c $n | "$sum"
33 : $((n++)) 33 n=$(($n+1))
34done | "$sum" 34done | "$sum"
35)` 35)`
36 36
37if test x"$result" = x"$expected -"; then 37if test x"$result" = x"$expected -"; then
38 echo "PASS: $sum" 38 echo "PASS: $sum"
39 exit 0 39 exit 0
40fi 40fi
41 41
42echo "FAIL: $sum (r:$result exp:$expected)" 42echo "FAIL: $sum (r:$result exp:$expected)"