summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/dbus/dbus-glib/test-install-makefile.patch58
-rw-r--r--meta/recipes-core/dbus/dbus-glib_0.114.bb11
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 @@
1From 4dbb1a459c281eeb716b4f0ce2fc01e8034c3e20 Mon Sep 17 00:00:00 2001
2From: Yao Zhao <yao.zhao@windriver.com>
3Date: Tue, 17 Jul 2012 16:46:30 -0400
4Subject: [PATCH] Change Makefile.am to install regression tests for test
5 package purpose.
6
7Upstream-Status: Inappropriate [test not install is for purpose from upstream]
8
9Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
10Signed-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
17diff --git a/test/Makefile.am b/test/Makefile.am
18index 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)
31diff --git a/test/core/Makefile.am b/test/core/Makefile.am
32index 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 \
45diff --git a/test/interfaces/Makefile.am b/test/interfaces/Makefile.am
46index 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
18SRC_URI = "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \ 18SRC_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"
22SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c" 21SRC_URI[sha256sum] = "c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c"
23 22
24inherit autotools pkgconfig gettext bash-completion gtk-doc 23inherit 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
28PACKAGECONFIG ??= ""
29PACKAGECONFIG[tests] = "--enable-tests,,,"
30
31EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" 25EXTRA_OECONF:class-target = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
32EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool" 26EXTRA_OECONF:class-nativesdk = "--with-dbus-binding-tool=${STAGING_BINDIR_NATIVE}/dbus-binding-tool"
33 27
34PACKAGES += "${PN}-tests ${PN}-tools" 28PACKAGES += "${PN}-tools"
35 29
36FILES:${PN} = "${libdir}/lib*${SOLIBS}" 30FILES:${PN} = "${libdir}/lib*${SOLIBS}"
37FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper" 31FILES:${PN}-bash-completion += "${libexecdir}/dbus-bash-completion-helper"
@@ -39,9 +33,6 @@ LICENSE:${PN}-bash-completion = "GPL-2.0-or-later"
39 33
40RDEPENDS:${PN}-dev += "${PN}-tools" 34RDEPENDS:${PN}-dev += "${PN}-tools"
41 35
42RDEPENDS:${PN}-tests = "${PN}"
43FILES:${PN}-tests = "${datadir}/${BPN}/tests"
44
45FILES:${PN}-tools = "${bindir}" 36FILES:${PN}-tools = "${bindir}"
46 37
47BBCLASSEXTEND = "native nativesdk" 38BBCLASSEXTEND = "native nativesdk"