diff options
Diffstat (limited to 'meta/recipes-core/dbus/dbus-test_1.12.20.bb')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.12.20.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.12.20.bb b/meta/recipes-core/dbus/dbus-test_1.12.20.bb new file mode 100644 index 0000000000..755c841bad --- /dev/null +++ b/meta/recipes-core/dbus/dbus-test_1.12.20.bb | |||
@@ -0,0 +1,64 @@ | |||
1 | SUMMARY = "D-Bus test package (for D-bus functionality testing only)" | ||
2 | HOMEPAGE = "http://dbus.freedesktop.org" | ||
3 | SECTION = "base" | ||
4 | |||
5 | require dbus.inc | ||
6 | |||
7 | SRC_URI += "file://run-ptest \ | ||
8 | file://python-config.patch \ | ||
9 | " | ||
10 | |||
11 | DEPENDS = "dbus glib-2.0" | ||
12 | |||
13 | RDEPENDS_${PN}-dev = "" | ||
14 | |||
15 | S="${WORKDIR}/dbus-${PV}" | ||
16 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:" | ||
17 | |||
18 | inherit ptest | ||
19 | |||
20 | EXTRA_OECONF += "--enable-tests \ | ||
21 | --enable-modular-tests \ | ||
22 | --enable-installed-tests \ | ||
23 | --enable-checks \ | ||
24 | --enable-asserts \ | ||
25 | --with-dbus-test-dir=${PTEST_PATH} \ | ||
26 | --enable-embedded-tests \ | ||
27 | " | ||
28 | |||
29 | do_install() { | ||
30 | : | ||
31 | } | ||
32 | |||
33 | do_install_ptest() { | ||
34 | install -d ${D}${PTEST_PATH}/test | ||
35 | l="shell printf refs syslog marshal syntax corrupt dbus-daemon dbus-daemon-eavesdrop loopback relay \ | ||
36 | variant uid-permissions syntax spawn sd-activation names monitor message fdpass service shell-service" | ||
37 | for i in $l; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
38 | |||
39 | l="bus bus-system bus-launch-helper" | ||
40 | for i in $l; do install ${B}/bus/.libs/test-$i ${D}${PTEST_PATH}/test; done | ||
41 | |||
42 | install -d ${D}${PTEST_PATH}/bus | ||
43 | install ${B}/bus/.libs/dbus-daemon-launch-helper-test ${D}${PTEST_PATH}/bus | ||
44 | |||
45 | install ${B}/test/test-segfault ${D}${PTEST_PATH}/test | ||
46 | |||
47 | cp -r ${B}/test/data ${D}${PTEST_PATH}/test | ||
48 | install ${B}/dbus/.libs/test-dbus ${D}${PTEST_PATH}/test | ||
49 | |||
50 | install -d ${D}${PTEST_PATH}/test/.libs | ||
51 | cp -a ${B}/dbus/.libs/*.so* ${D}${PTEST_PATH}/test/.libs | ||
52 | |||
53 | # Remove build host references... | ||
54 | find "${D}${PTEST_PATH}/test/data" \( -name *.service -o -name *.conf -o -name "*.aaprofile" \) -type f -exec \ | ||
55 | sed -i \ | ||
56 | -e 's:${B}:${PTEST_PATH}:g' \ | ||
57 | {} + | ||
58 | sed -i -e 's;@PTEST_PATH@;${PTEST_PATH};g' ${D}${PTEST_PATH}/run-ptest | ||
59 | } | ||
60 | |||
61 | RDEPENDS_${PN}-ptest += "bash make dbus" | ||
62 | RDEPENDS_${PN}-ptest_remove = "${PN}" | ||
63 | |||
64 | PRIVATE_LIBS_${PN}-ptest = "libdbus-1.so.3" | ||