Patchwork [RFC,1/2] ptest-gnome: add ptest helper for GNOME packages

login
register
mail settings
Submitter Ross Burton
Date July 23, 2014, 10:07 p.m.
Message ID <1406153243-12346-1-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/76505/
State Accepted
Commit 403aa976ed3dd8865336b3e37c96bf145c1e6995
Headers show

Comments

Ross Burton - July 23, 2014, 10:07 p.m.
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/ptest-gnome.bbclass |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta/classes/ptest-gnome.bbclass

Patch

diff --git a/meta/classes/ptest-gnome.bbclass b/meta/classes/ptest-gnome.bbclass
new file mode 100644
index 0000000..b2949af
--- /dev/null
+++ b/meta/classes/ptest-gnome.bbclass
@@ -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"