bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / util-linux / mkfs_ext2_test.sh
index 79f8126cd9d9255d0a77659ab2fede859995d158..df22963f25f9cec8c84aef3f3379f1a10dd80a93 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 # Disabling features we do not match exactly:
-system_mke2fs='/sbin/mke2fs -I 128 -O ^resize_inode'
+system_mke2fs='/sbin/mke2fs -O ^resize_inode'
 bbox_mke2fs='./busybox mke2fs'
 
 gen_image() { # params: mke2fs_invocation image_name
@@ -47,7 +47,7 @@ test_mke2fs() {
 kilobytes=60
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = 200 && break
 done
 
@@ -56,7 +56,7 @@ done
 kilobytes=$((1 * 8*1024 - 50))
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = $((1 * 8*1024 + 300)) && break
 done
 
@@ -65,7 +65,7 @@ done
 kilobytes=$((2 * 8*1024 - 50))
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = $((2 * 8*1024 + 400)) && break
 done
 
@@ -74,7 +74,7 @@ done
 kilobytes=$((3 * 8*1024 - 50))
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = $((3 * 8*1024 + 500)) && break
 done
 
@@ -83,7 +83,7 @@ done
 kilobytes=$((4 * 8*1024 - 50))
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = $((4 * 8*1024 + 600)) && break
 done
 
@@ -92,7 +92,7 @@ done
 kilobytes=$((5 * 8*1024 - 50))
 while true; do
     test_mke2fs || exit 1
-    : $((kilobytes++))
+    kilobytes=$((kilobytes+1))
     test $kilobytes = $((5 * 8*1024 + 700)) && break
 done
 exit