projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
login: explain -h HOST option better
[oweals/busybox.git]
/
testsuite
/
du
/
du-k-works
diff --git
a/testsuite/du/du-k-works
b/testsuite/du/du-k-works
index a52264945040321a889ed73be719373c7679e15b..213e9ba991f9d7138649494446e1914104d65f05 100644
(file)
--- a/
testsuite/du/du-k-works
+++ b/
testsuite/du/du-k-works
@@
-1,4
+1,13
@@
+mkdir du.testdir
+cd du.testdir
dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
+# ext4 on images <512M gives 81kb
+# ext3 on images <512M gives 83kb
+# a bsd system reportedly gives 82kb
test x"`busybox du -k .`" = x"80 ." \
test x"`busybox du -k .`" = x"80 ." \
- -o x"`busybox du -k .`" = x"88 ." \
+ -o x"`busybox du -k .`" = x"81 ." \
+ -o x"`busybox du -k .`" = x"82 ." \
+ -o x"`busybox du -k .`" = x"83 ." \
+ -o x"`busybox du -k .`" = x"84 ." \
+ -o x"`busybox du -k .`" = x"88 ."