Merge lp:~mardy/libsignon-glib/multi-arch into lp:libsignon-glib

Proposed by Alberto Mardegan
Status: Merged
Approved by: David Barth
Approved revision: 155
Merged at revision: 154
Proposed branch: lp:~mardy/libsignon-glib/multi-arch
Merge into: lp:libsignon-glib
Diff against target: 93 lines (+26/-14)
3 files modified
debian/control (+6/-1)
debian/rules (+7/-0)
tests/check_signon.c (+13/-13)
To merge this branch: bzr merge lp:~mardy/libsignon-glib/multi-arch
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
David Barth Pending
Alberto Mardegan Pending
Review via email: mp+256782@code.launchpad.net

This proposal supersedes a proposal from 2015-04-07.

Commit message

Multi arch support

Description of the change

Multi arch support

Also, show log file when build fails.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Alberto Mardegan (mardy) wrote : Posted in a previous version of this proposal

Thanks, looks good!

review: Approve
Revision history for this message
David Barth (dbarth) : Posted in a previous version of this proposal
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~mardy/libsignon-glib/multi-arch updated
155. By Alberto Mardegan

Do not count on mechanisms being ordered

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2013-06-16 14:12:07 +0000
+++ debian/control 2015-04-20 11:34:18 +0000
@@ -27,6 +27,9 @@
27Package: libsignon-glib-dev27Package: libsignon-glib-dev
28Section: libdevel28Section: libdevel
29Architecture: any29Architecture: any
30Multi-Arch: same
31Pre-Depends: multiarch-support,
32 ${misc:Pre-Depends},
30Depends: libsignon-glib1 (= ${binary:Version}),33Depends: libsignon-glib1 (= ${binary:Version}),
31 ${shlibs:Depends},34 ${shlibs:Depends},
32 ${misc:Depends},35 ${misc:Depends},
@@ -41,7 +44,9 @@
41Package: libsignon-glib144Package: libsignon-glib1
42Section: libs45Section: libs
43Architecture: any46Architecture: any
44Pre-Depends: ${misc:Pre-Depends}47Multi-Arch: same
48Pre-Depends: multiarch-support,
49 ${misc:Pre-Depends},
45Depends: ${shlibs:Depends},50Depends: ${shlibs:Depends},
46 ${misc:Depends}51 ${misc:Depends}
47Description: library for signond52Description: library for signond
4853
=== modified file 'debian/rules'
--- debian/rules 2013-06-05 11:47:45 +0000
+++ debian/rules 2015-04-20 11:34:18 +0000
@@ -8,6 +8,13 @@
8override_dh_auto_configure:8override_dh_auto_configure:
9 dh_auto_configure -- --enable-gtk-doc9 dh_auto_configure -- --enable-gtk-doc
1010
11override_dh_auto_test:
12 dh_auto_test || ( \
13 echo "Tests failed. Log:"; \
14 cat tests/test-suite.log; \
15 false \
16 )
17
11override_dh_install:18override_dh_install:
12 # install the python3 gir override file as well19 # install the python3 gir override file as well
13 PYTHON=python3 ./configure --prefix=/usr20 PYTHON=python3 ./configure --prefix=/usr
1421
=== modified file 'tests/check_signon.c'
--- tests/check_signon.c 2014-12-09 08:52:37 +0000
+++ tests/check_signon.c 2015-04-20 11:34:18 +0000
@@ -47,6 +47,18 @@
4747
48#define SIGNOND_IDLE_TIMEOUT (5 + 2)48#define SIGNOND_IDLE_TIMEOUT (5 + 2)
4949
50static gboolean _contains(gchar **list, gchar *item)
51{
52 gboolean present = FALSE;
53 gint i = 0;
54 while (list[i] != NULL)
55 {
56 if (g_strcmp0 (item, list[i]) == 0) present = TRUE;
57 i++;
58 }
59 return present;
60}
61
50static void62static void
51end_test ()63end_test ()
52{64{
@@ -239,7 +251,7 @@
239 while ( i > 0 )251 while ( i > 0 )
240 {252 {
241 gchar* pattern = patterns[--i];253 gchar* pattern = patterns[--i];
242 fail_unless(g_strcmp0(pattern, mechanisms[i]) == 0, "The obtained mechanism differs from predefined pattern: %s vs %s", mechanisms[i], pattern);254 fail_unless(_contains(mechanisms, pattern), "The obtained mechanism list does not contain %s", pattern);
243 }255 }
244256
245 g_strfreev(mechanisms);257 g_strfreev(mechanisms);
@@ -1002,18 +1014,6 @@
1002}1014}
1003END_TEST1015END_TEST
10041016
1005static gboolean _contains(gchar **mechs, gchar *mech)
1006{
1007 gboolean present = FALSE;
1008 gint i = 0;
1009 while (mechs[i] != NULL)
1010 {
1011 if (g_strcmp0 (mech, mechs[i]) == 0) present = TRUE;
1012 i++;
1013 }
1014 return present;
1015}
1016
1017static void identity_info_cb(SignonIdentity *self, const SignonIdentityInfo *info, const GError *error, gpointer user_data)1017static void identity_info_cb(SignonIdentity *self, const SignonIdentityInfo *info, const GError *error, gpointer user_data)
1018{1018{
1019 if (error)1019 if (error)

Subscribers

People subscribed via source and target branches

to all changes: