Skip to contentSkip to conversation

ptest-gnome: add ptest helper for GNOME packages

RFC PATCH New Ross Burton 1 participant 1 message Jun 24, 2014

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ptest-gnome: add ptest helper for GNOME packages

Many GNOME packages are using their InstalledTests pattern, where the test suite can be trivially installed. To avoid repeating the same logic over and over, add a class to encapsulate this.

---
 meta/classes/ptest-gnome.bbclass |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/classes/ptest-gnome.bbclass
meta/classes/ptest-gnome.bbclass new file +8 -0
new file mode 100644
index 0000000..b2949af
@@ -0,0 +1,8 @@
+inherit ptest
+
+EXTRA_OECONF_append_class-target = " ${@bb.utils.contains('PTEST_ENABLED', '1', '--enable-installed-tests', '--disable-installed-tests', d)}"
+
+FILES_${PN}-ptest += "${libexecdir}/installed-tests/ \
+                      ${datadir}/installed-tests/"
+
+RDEPENDS_${PN}-ptest += "gnome-desktop-testing"
Signature · 1 line
1.7.10.4