1 |
commit: 871b34ba2c69100bc6dd590f4eb5cf113dace65b |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 22:04:01 2016 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 22:04:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=871b34ba |
7 |
|
8 |
app-admin/packagekit-base: enable unittests |
9 |
|
10 |
Restrict to those that currently work, maybe we can improve things from here. |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
app-admin/packagekit-base/packagekit-base-1.1.1.ebuild | 18 +++++++++++++++--- |
15 |
1 file changed, 15 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild b/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild |
18 |
index 054d4e7..e350cd3 100644 |
19 |
--- a/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild |
20 |
+++ b/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild |
21 |
@@ -59,12 +59,24 @@ RDEPEND="${CDEPEND} |
22 |
|
23 |
S="${WORKDIR}/${MY_P}" |
24 |
|
25 |
-RESTRICT="test" |
26 |
- |
27 |
src_prepare() { |
28 |
# Fixes QA Notices: https://github.com/gentoo/gentoo/pull/1760 and https://github.com/hughsie/PackageKit/issues/143 |
29 |
eapply "${FILESDIR}/${P}-cache-qafix.patch" |
30 |
|
31 |
+ # Disable unittests not working with portage backend |
32 |
+ # console: requires terminal input |
33 |
+ sed -e 's:^\(.*/packagekit-glib2/control\)://\1:' \ |
34 |
+ -e 's:^\(.*/packagekit-glib2/transaction-list\)://\1:' \ |
35 |
+ -e 's:^\(.*/packagekit-glib2/client"\)://\1:' \ |
36 |
+ -e 's:^\(.*/packagekit-glib2/package-sack\)://\1:' \ |
37 |
+ -e 's:^\(.*/packagekit-glib2/task\)://\1:' \ |
38 |
+ -e 's:^\(.*/packagekit-glib2/console\)://\1:' \ |
39 |
+ -i lib/packagekit-glib2/pk-test-daemon.c || die |
40 |
+ sed -e 's:^\(.*/packagekit/spawn\)://\1:' \ |
41 |
+ -e 's:^\(.*/packagekit/transaction-db\)://\1:' \ |
42 |
+ -e 's:^\(.*/packagekit/backend\)://\1:' \ |
43 |
+ -i src/pk-self-test.c || die |
44 |
+ |
45 |
eapply_user |
46 |
use vala && vala_src_prepare |
47 |
} |
48 |
@@ -89,9 +101,9 @@ src_configure() { |
49 |
$(use_enable networkmanager) \ |
50 |
$(use_enable systemd) \ |
51 |
$(use_enable test daemon-tests) \ |
52 |
+ $(use_enable test local) \ |
53 |
$(use_enable vala) \ |
54 |
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)" |
55 |
- #$(use_enable test local) |
56 |
} |
57 |
|
58 |
src_install() { |