From: Ross Burton Date: Wed, 23 Jul 2014 22:07:22 +0000 (+0100) Subject: ptest-gnome: add ptest helper for GNOME packages X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~33011 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a66fadbd7d7675c61c342f9c338edbdedf8b92c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ross Burton Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/ptest-gnome.bbclass b/meta/classes/ptest-gnome.bbclass new file mode 100644 index 00000000000..b2949af9bb9 --- /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"