blob: 213e9ba991f9d7138649494446e1914104d65f05 [file] [log] [blame]
Dan Fandrich775965d2010-08-10 23:33:57 -07001mkdir du.testdir
2cd du.testdir
Denys Vlasenkoe82cf332010-05-12 15:59:32 +02003dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
4dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
Kang Kai03b61472013-01-28 14:02:51 +01005# ext4 on images <512M gives 81kb
6# ext3 on images <512M gives 83kb
Denys Vlasenkoe85e2602013-12-20 02:55:16 +01007# a bsd system reportedly gives 82kb
Denys Vlasenkoe82cf332010-05-12 15:59:32 +02008test x"`busybox du -k .`" = x"80 ." \
Kang Kai03b61472013-01-28 14:02:51 +01009 -o x"`busybox du -k .`" = x"81 ." \
Denys Vlasenkoe85e2602013-12-20 02:55:16 +010010 -o x"`busybox du -k .`" = x"82 ." \
Kang Kai03b61472013-01-28 14:02:51 +010011 -o x"`busybox du -k .`" = x"83 ." \
Denys Vlasenkoa5ee0902012-05-10 19:26:37 +020012 -o x"`busybox du -k .`" = x"84 ." \
Dan Fandrich775965d2010-08-10 23:33:57 -070013 -o x"`busybox du -k .`" = x"88 ."