diffutils: Add valgrind to support ptest
PATCH 1/1 diffutils: Add valgrind to support ptest
From: Peiran Hong <[email protected]>
The test "strip-trailing-cr" for diffutils package is skipped since it requires valgrind to run. This commit adds valgrind to the run-time dependency of the recipe for diffutils.
--- meta/recipes-extended/diffutils/diffutils_3.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-extended/diffutils/diffutils_3.7.bb +3 -1
@@ -17,7 +17,9 @@ acpaths = "-I ./m4" inherit ptest -RDEPENDS_${PN}-ptest += "make" +# Include valgrind since the test "strip-trailing-cr" requires it to run, although +# valgrind is a heavy package for diffutils +RDEPENDS_${PN}-ptest += "make valgrind" do_install_ptest() { t=${D}${PTEST_PATH}
Signature · 1 line
2.21.0
Quoted 1 line · Peiran Hong
From: Peiran Hong <[email protected]>
Drop this line please.
Was there some documentation that suggested it was required?
Otherwise looks fine so please send a v2.
../Randy
Quoted 26 lines
The test "strip-trailing-cr" for diffutils package is skipped since it requires valgrind to run. This commit adds valgrind to the run-time dependency of the recipe for diffutils.
Signed-off-by Peiran Hong <[email protected]>--- meta/recipes-extended/diffutils/diffutils_3.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-extended/diffutils/diffutils_3.7.bb +3
-1@@ -17,7 +17,9 @@ acpaths = "-I ./m4" inherit ptest -RDEPENDS_${PN}-ptest += "make" +# Include valgrind since the test "strip-trailing-cr" requires it to run, although +# valgrind is a heavy package for diffutils +RDEPENDS_${PN}-ptest += "make valgrind" do_install_ptest() { t=${D}${PTEST_PATH}
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Quoted 25 lines · Peiran Hong
From: Peiran Hong <[email protected]>
The test "strip-trailing-cr" for diffutils package is skipped since it requires
valgrind to run. This commit adds valgrind to the run-time dependency of
the recipe for diffutils.Signed-off-by Peiran Hong <[email protected]>--- meta/recipes-extended/diffutils/diffutils_3.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-extended/diffutils/diffutils_3.7.bb +1
-1@@ -17,7 +17,9 @@ acpaths = "-I ./m4" inherit ptest -RDEPENDS_${PN}-ptest += "make" +# Include valgrind since the test "strip-trailing-cr" requires it torun, although
meta/recipes-extended/diffutils/diffutils_3.7.bb acpaths = "-I ./m4" · line 22
Quoted 2 lines
meta/recipes-extended/diffutils/diffutils_3.7.bb +2
-0+# valgrind is a heavy package for diffutils +RDEPENDS_${PN}-ptest += "make valgrind"
This effectively means "bitbake diffutils" now requires valgrind to build before it. I'm not sure its worth doing that for a single test?
Cheers,
Richard
Quoted 23 lines · Richard Purdie
Quoted 22 lines · Peiran Hong
From: Peiran Hong <[email protected]>
The test "strip-trailing-cr" for diffutils package is skipped since it requires
valgrind to run. This commit adds valgrind to the run-time dependency of
the recipe for diffutils.Signed-off-by Peiran Hong <[email protected]>--- meta/recipes-extended/diffutils/diffutils_3.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-extended/diffutils/diffutils_3.7.bb +0
-0@@ -17,7 +17,9 @@ acpaths = "-I ./m4" inherit ptest
Quoted 8 lines
meta/recipes-extended/diffutils/diffutils_3.7.bb acpaths = "-I ./m4" · line 22
Quoted 5 lines
meta/recipes-extended/diffutils/diffutils_3.7.bb +1
-1-RDEPENDS_${PN}-ptest += "make" +# Include valgrind since the test "strip-trailing-cr" requires it torun, although
meta/recipes-extended/diffutils/diffutils_3.7.bb +2
-0+# valgrind is a heavy package for diffutils +RDEPENDS_${PN}-ptest += "make valgrind"This effectively means "bitbake diffutils" now requires valgrind to build before it. I'm not sure its worth doing that for a single test?
I was on the fence as well but I thought we'd ask devs on the list by sending the patch.
Peiran,
Please send a v2 that SKIPs the test.
../Randy
Quoted 5 lines
Cheers,
Richard
Signature · 2 lines
# Randy MacLeod # Wind River Linux
________________________________________
From: MacLeod, Randy
Sent: Thursday, September 05, 2019 14:23
To: Richard Purdie; Hong, Peiran; [email protected]
Subject: Re: [OE-core] [OE-Core][PATCH] diffutils: Add valgrind to support ptest
Quoted 23 lines · Richard Purdie
Quoted 22 lines · Peiran Hong
From: Peiran Hong <[email protected]>
The test "strip-trailing-cr" for diffutils package is skipped since it requires
valgrind to run. This commit adds valgrind to the run-time dependency of
the recipe for diffutils.Signed-off-by Peiran Hong <[email protected]>--- meta/recipes-extended/diffutils/diffutils_3.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes-extended/diffutils/diffutils_3.7.bb +0
-0@@ -17,7 +17,9 @@ acpaths = "-I ./m4" inherit ptest
Quoted 8 lines
meta/recipes-extended/diffutils/diffutils_3.7.bb acpaths = "-I ./m4" · line 22
Quoted 5 lines
meta/recipes-extended/diffutils/diffutils_3.7.bb +1
-1-RDEPENDS_${PN}-ptest += "make" +# Include valgrind since the test "strip-trailing-cr" requires it torun, although
meta/recipes-extended/diffutils/diffutils_3.7.bb +2
-0+# valgrind is a heavy package for diffutils +RDEPENDS_${PN}-ptest += "make valgrind"This effectively means "bitbake diffutils" now requires valgrind to build before it. I'm not sure its worth doing that for a single test?
I was on the fence as well but I thought we'd ask devs on the list by sending the patch.
Peiran,
Please send a v2 that SKIPs the test.
../Randy
Quoted 5 lines
Cheers,
Richard
I took valgrind out of the recipe, but there is another test "large-subopt"
that requires perl, which is also a dependency of valgrind. Here is some information of the size and packages of core-image-minimal with and without valgrind and perl FYI.
Without both:
Image size: 61776 KiB
With valgrind:
Image size: 125248 KiB
Extra packages:
36392 KiB libc6-dbg
23265 KiB valgrind
3293 KiB perl
39 KiB perl-module-config-heavyWith perl:
Image size: 65160 KiB
Extra packages:
3293 KiB perl
39 KiB perl-module-config-heavyAdding only perl to the recipe seems fine to me.
Peiran
--
# Randy MacLeod
# Wind River Linux