Skip to contentSkip to conversation

dbus-test: Improve ptest dependencies dependencies

PATCH In review Richard Purdie 3 participants 4 messages May 14, 2019 – May 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dbus-test: Improve ptest dependencies dependencies

The dbus-test package is empty, move its dependencies to the ${PN}-ptest package. Also ensure that it doesn't depend on the empty ${PN} package which is about to start causing image failures in the following commit. In this case the correct dependency is dbus itself.

---
 meta/recipes-core/dbus/dbus-test_1.12.12.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/dbus/dbus-test_1.12.12.bb +2 -2
index 0502c449171..f95b31a8630 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
 
 DEPENDS = "dbus glib-2.0"
 
-RDEPENDS_${PN} += "make"
 RDEPENDS_${PN}-dev = ""
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
@@ -85,6 +84,7 @@ do_install_ptest() {
         sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g'  ${D}${PTEST_PATH}/run-ptest
 }
 
-RDEPENDS_${PN}-ptest += "bash"
+RDEPENDS_${PN}-ptest += "bash make dbus"
+RDEPENDS_${PN}-ptest_remove = "${PN}"
 
 PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 ptest: Add RDEPENDS frpm PN-ptest to PN package

Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.

It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).

---
 meta/classes/ptest.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/ptest.bbclass +1 -0
index 936bf82736e..fa4c36ec769 100644
@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
 PTEST_ENABLED_class-native = ""
 PTEST_ENABLED_class-nativesdk = ""
 PTEST_ENABLED_class-cross-canadian = ""
+RDEPENDS_${PN}-ptest += "${PN}"
 RDEPENDS_${PN}-ptest_class-native = ""
 RDEPENDS_${PN}-ptest_class-nativesdk = ""
 RRECOMMENDS_${PN}-ptest += "ptest-runner"
Signature · 1 line
2.20.1
#2 lore raw

Re: [PATCH 2/2] ptest: Add RDEPENDS frpm PN-ptest to PN package

Quoted 3 lines · Richard Purdie

Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.

Ah, cool, noticed this with some my recipes and fixed them.

BTW, if you run ptest with core-image-minimal ( with openssd) more dependences can be found.

Quoted 2 lines

It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).

will put it into the bucket.

- armin

Quoted 18 lines
---
 meta/classes/ptest.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/ptest.bbclass +1 -0
index 936bf82736e..fa4c36ec769 100644
@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
 PTEST_ENABLED_class-native = ""
 PTEST_ENABLED_class-nativesdk = ""
 PTEST_ENABLED_class-cross-canadian = ""
+RDEPENDS_${PN}-ptest += "${PN}"
 RDEPENDS_${PN}-ptest_class-native = ""
 RDEPENDS_${PN}-ptest_class-nativesdk = ""
 RRECOMMENDS_${PN}-ptest += "ptest-runner"
Reviewed-by on v1 2/2
#3 lore raw

Re: [PATCH 2/2] ptest: Add RDEPENDS frpm PN-ptest to PN package

In reply to Richard Purdie
Quoted 6 lines · Richard Purdie

Many different ptests are breaking as they assume that ${PN}-ptest depends on ${PN}. It doesn't currently but should. If we fix this, many different ptests start passing when they previously failed.

It does depend on fixing an issue in the dbus-test recipe which is done in the preceeding patch (mentioned in case this gets backported).

Awesome! Thanks for this. In our case we build many packages and their ptests but they may not be installed to images by default. Thus this helps.

Same also applies to our SDK. We build more stuff for the SDK than what is installed by default.

Quoted 25 lines
---
 meta/classes/ptest.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/ptest.bbclass +1 -0
index 936bf82736e..fa4c36ec769 100644
@@ -13,6 +13,7 @@ PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
 PTEST_ENABLED_class-native = ""
 PTEST_ENABLED_class-nativesdk = ""
 PTEST_ENABLED_class-cross-canadian = ""
+RDEPENDS_${PN}-ptest += "${PN}"
 RDEPENDS_${PN}-ptest_class-native = ""
 RDEPENDS_${PN}-ptest_class-nativesdk = ""
 RRECOMMENDS_${PN}-ptest += "ptest-runner"
Signature · 7 lines
2.20.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core