diff options
author | Björn Stenberg <bjst@enea.com> | 2012-12-20 14:53:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-26 11:34:05 +0000 |
commit | 0c7da2f1467e01d87c20ca5d033d1d3838e10f79 (patch) | |
tree | a36df965e0e5f0d692040af1e75764f3d4955c2c /meta/recipes-core/dbus/dbus-ptest_1.6.4.bb | |
parent | ddce381e78c92e0881c73f21d97af0264b3d47e0 (diff) | |
download | poky-0c7da2f1467e01d87c20ca5d033d1d3838e10f79.tar.gz |
Add ptest for dbus.
This patch adds a new recipe dbus-test to build and package the dbus test
suite. The reason for a separate recipe is that the dbus test suite depends
on dbus-glib, so it cannot be compiled at the same time as dbus.
(From OE-Core rev: 280e79adea4536b264a526072406d605d0822e7d)
Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/dbus/dbus-ptest_1.6.4.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-ptest_1.6.4.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-ptest_1.6.4.bb b/meta/recipes-core/dbus/dbus-ptest_1.6.4.bb new file mode 100644 index 0000000000..2982439c9a --- /dev/null +++ b/meta/recipes-core/dbus/dbus-ptest_1.6.4.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "D-Bus test package, only used for D-bus functionality test." | ||
2 | HOMEPAGE = "http://dbus.freedesktop.org" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "AFL-2 | GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ | ||
6 | file://dbus/dbus.h;firstline=6;endline=20;md5=6eea2e0c7750dd8e620dcb1437312fa5" | ||
7 | |||
8 | DEPENDS = "python-pygobject dbus dbus-glib" | ||
9 | |||
10 | RDEPENDS = "make" | ||
11 | |||
12 | SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | ||
13 | file://tmpdir.patch \ | ||
14 | file://ptest.patch \ | ||
15 | file://dbus-1.init \ | ||
16 | file://run-ptest \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "5ec43dc4554cba638917317b2b4f7640" | ||
20 | SRC_URI[sha256sum] = "5fba6b7a415d761a843fb8e0aee72db61cf13057a9ef8cdc795e5d369dc74cf1" | ||
21 | |||
22 | S="${WORKDIR}/dbus-${PV}" | ||
23 | FILESPATH = "${FILE_DIRNAME}/dbus-${PV}" | ||
24 | |||
25 | inherit autotools pkgconfig gettext ptest | ||
26 | |||
27 | EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
28 | EXTRA_OECONF_X_virtclass-native = "--without-x" | ||
29 | |||
30 | EXTRA_OECONF = "--enable-tests \ | ||
31 | --enable-modular-tests \ | ||
32 | --enable-installed-tests \ | ||
33 | --enable-checks \ | ||
34 | --enable-asserts \ | ||
35 | --enable-verbose-mode \ | ||
36 | --disable-xml-docs \ | ||
37 | --disable-doxygen-docs \ | ||
38 | --disable-libaudit \ | ||
39 | --with-xml=expat \ | ||
40 | --with-systemdsystemunitdir=${systemd_unitdir}/system/ \ | ||
41 | ${EXTRA_OECONF_X}" | ||
42 | |||
43 | do_install() { | ||
44 | ptest_do_install | ||
45 | find ${D}${PTEST_PATH} -name Makefile | xargs sed -i 's/^Makefile:/_Makefile:/' | ||
46 | } | ||