summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2012-08-06 10:50:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 15:18:45 +0100
commitba218e743be4d4beec5faba188ea1236db774fb5 (patch)
treee02334dcb696b2a19c9cb4cdf765afe812674fdd
parentc8815d2f21849deb9359706f54dc71490773415e (diff)
downloadpoky-ba218e743be4d4beec5faba188ea1236db774fb5.tar.gz
busybox: fix du-k-works test case
[YOCTO #2896] The du-k-works test seems to assume that du -k on a directory with two files totaling 80 kilobytes should report either 80k or 88k. In ext4 filesystm however, both busybox' du -k and coreutils' du -k reports a size of 84k which causes the test to fail. Intergrate the patch from: http://git.busybox.net/busybox/commit/?id=a5ee090e8651692545514a81a16c6cde3a2dc577 (From OE-Core rev: a022fb6b69388f28f3130e71125b64e4c154d504) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch27
-rw-r--r--meta/recipes-core/busybox/busybox_1.19.4.bb5
2 files changed, 30 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch b/meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch
new file mode 100644
index 0000000000..b75eaacd29
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch
@@ -0,0 +1,27 @@
1Backport the patch from:
2http://git.busybox.net/busybox/commit/?id=a5ee090e8651692545514a81a16c6cde3a2dc577
3
4From a5ee090e8651692545514a81a16c6cde3a2dc577 Mon Sep 17 00:00:00 2001
5From: Denys Vlasenko <vda.linux@googlemail.com>
6Date: Thu, 10 May 2012 19:26:37 +0200
7Subject: [PATCH] fix for spurious testsuite failure
8
9Upstream-Status: Backport
10Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
11---
12 testsuite/du/du-k-works | 1 +
13 1 files changed, 1 insertions(+), 0 deletions(-)
14
15diff --git a/testsuite/du/du-k-works b/testsuite/du/du-k-works
16index 229a948..36dcaa8 100644
17--- a/testsuite/du/du-k-works
18+++ b/testsuite/du/du-k-works
19@@ -3,4 +3,5 @@ cd du.testdir
20 dd if=/dev/zero of=file1 bs=1k count=64 2>/dev/null
21 dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null
22 test x"`busybox du -k .`" = x"80 ." \
23+ -o x"`busybox du -k .`" = x"84 ." \
24 -o x"`busybox du -k .`" = x"88 ."
25--
261.7.4.1
27
diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb
index ced50c55da..2e262ca481 100644
--- a/meta/recipes-core/busybox/busybox_1.19.4.bb
+++ b/meta/recipes-core/busybox/busybox_1.19.4.bb
@@ -1,5 +1,5 @@
1require busybox.inc 1require busybox.inc
2PR = "r12" 2PR = "r13"
3 3
4SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ 4SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
5 file://B921600.patch \ 5 file://B921600.patch \
@@ -24,7 +24,8 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
24 file://mdev.conf \ 24 file://mdev.conf \
25 file://umount.busybox \ 25 file://umount.busybox \
26 file://defconfig \ 26 file://defconfig \
27 file://busybox-mkfs-minix-tests_bigendian.patch" 27 file://busybox-mkfs-minix-tests_bigendian.patch \
28 file://fix-for-spurious-testsuite-failure.patch"
28 29
29SRC_URI[tarball.md5sum] = "9c0cae5a0379228e7b55e5b29528df8e" 30SRC_URI[tarball.md5sum] = "9c0cae5a0379228e7b55e5b29528df8e"
30SRC_URI[tarball.sha256sum] = "9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee" 31SRC_URI[tarball.sha256sum] = "9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee"