diff options
-rw-r--r-- | meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch | 58 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus-glib_0.114.bb | 11 |
2 files changed, 1 insertions, 68 deletions
diff --git a/meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch b/meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch deleted file mode 100644 index 0b1b712dd9..0000000000 --- a/meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | From 4dbb1a459c281eeb716b4f0ce2fc01e8034c3e20 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yao Zhao <yao.zhao@windriver.com> | ||
3 | Date: Tue, 17 Jul 2012 16:46:30 -0400 | ||
4 | Subject: [PATCH] Change Makefile.am to install regression tests for test | ||
5 | package purpose. | ||
6 | |||
7 | Upstream-Status: Inappropriate [test not install is for purpose from upstream] | ||
8 | |||
9 | Signed-off-by: Yao Zhao <yao.zhao@windriver.com> | ||
10 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
11 | --- | ||
12 | test/Makefile.am | 3 ++- | ||
13 | test/core/Makefile.am | 3 ++- | ||
14 | test/interfaces/Makefile.am | 3 ++- | ||
15 | 3 files changed, 6 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/test/Makefile.am b/test/Makefile.am | ||
18 | index 7393bed..1c25d5d 100644 | ||
19 | --- a/test/Makefile.am | ||
20 | +++ b/test/Makefile.am | ||
21 | @@ -48,7 +48,8 @@ TESTS = \ | ||
22 | $(test_scripts) \ | ||
23 | $(NULL) | ||
24 | |||
25 | -noinst_PROGRAMS = \ | ||
26 | +testdir = $(datadir)/@PACKAGE@/tests | ||
27 | +test_PROGRAMS = \ | ||
28 | $(test_programs) \ | ||
29 | $(test_related_programs) \ | ||
30 | $(NULL) | ||
31 | diff --git a/test/core/Makefile.am b/test/core/Makefile.am | ||
32 | index 35defa9..295202f 100644 | ||
33 | --- a/test/core/Makefile.am | ||
34 | +++ b/test/core/Makefile.am | ||
35 | @@ -57,7 +57,8 @@ if DBUS_BUILD_TESTS | ||
36 | |||
37 | ## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we | ||
38 | ## build even when not doing "make check" | ||
39 | -noinst_PROGRAMS = \ | ||
40 | +testdir = $(datadir)/@PACKAGE@/tests/core | ||
41 | +test_PROGRAMS = \ | ||
42 | test-dbus-glib \ | ||
43 | test-error-mapping \ | ||
44 | test-service-glib \ | ||
45 | diff --git a/test/interfaces/Makefile.am b/test/interfaces/Makefile.am | ||
46 | index f3f62e4..f034b95 100644 | ||
47 | --- a/test/interfaces/Makefile.am | ||
48 | +++ b/test/interfaces/Makefile.am | ||
49 | @@ -57,7 +57,8 @@ if DBUS_BUILD_TESTS | ||
50 | |||
51 | ## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we | ||
52 | ## build even when not doing "make check" | ||
53 | -noinst_PROGRAMS = test-service test-client | ||
54 | +testdir = $(datadir)/@PACKAGE@/tests/interfaces | ||
55 | +test_PROGRAMS = test-service test-client | ||
56 | |||
57 | test_service_SOURCES = \ | ||
58 | test-interfaces.c \ | ||
diff --git a/meta/recipes-core/dbus/dbus-glib_0.114.bb b/meta/recipes-core/dbus/dbus-glib_0.114.bb index ff3d282ac6..4a827b1cbf 100644 --- a/meta/recipes-core/dbus/dbus-glib_0.114.bb +++ b/meta/recipes-core/dbus/dbus-glib_0.114.bb | |||
@@ -17,21 +17,15 @@ DEPENDS:class-native = "glib-2.0-native dbus-native" | |||
17 | 17 | ||
18 | SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ | 18 | SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ |
19 | file://no-examples.patch \ | 19 | file://no-examples.patch \ |
20 | file://test-install-makefile.patch \ | ||
21 | " | 20 | " |
22 | SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c" | 21 | SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c" |
23 | 22 | ||
24 | inherit autotools pkgconfig gettext bash-completion gtk-doc | 23 | inherit autotools pkgconfig gettext bash-completion gtk-doc |
25 | 24 | ||
26 | #default disable regression tests, some unit test code in non testing code | ||
27 | #PACKAGECONFIG:pn-${PN} = "tests" enable regression tests local.conf | ||
28 | PACKAGECONFIG ??= "" | ||
29 | PACKAGECONFIG[tests] = "--enable-tests,,," | ||
30 | |||
31 | EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" | 25 | EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" |
32 | EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" | 26 | EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" |
33 | 27 | ||
34 | PACKAGES += "${PN}-tests ${PN}-tools" | 28 | PACKAGES += "${PN}-tools" |
35 | 29 | ||
36 | FILES:${PN} = "${libdir}/lib*${SOLIBS}" | 30 | FILES:${PN} = "${libdir}/lib*${SOLIBS}" |
37 | FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper" | 31 | FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper" |
@@ -39,9 +33,6 @@ LICENSE:${PN}-bash-completion = "GPL-2.0-or-later" | |||
39 | 33 | ||
40 | RDEPENDS:${PN}-dev += "${PN}-tools" | 34 | RDEPENDS:${PN}-dev += "${PN}-tools" |
41 | 35 | ||
42 | RDEPENDS:${PN}-tests = "${PN}" | ||
43 | FILES:${PN}-tests = "${datadir}/${BPN}/tests" | ||
44 | |||
45 | FILES:${PN}-tools = "${bindir}" | 36 | FILES:${PN}-tools = "${bindir}" |
46 | 37 | ||
47 | BBCLASSEXTEND = "native nativesdk" | 38 | BBCLASSEXTEND = "native nativesdk" |