Merge lp:~online-accounts/libsignon-glib/packaging into lp:libsignon-glib
- packaging
- Merge into trunk
Proposed by
Alberto Mardegan
Status: | Merged |
---|---|
Approved by: | David Barth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 159 |
Proposed branch: | lp:~online-accounts/libsignon-glib/packaging |
Merge into: | lp:libsignon-glib |
Diff against target: |
1063 lines (+407/-122) 23 files modified
.gitlab-ci.yml (+47/-0) Makefile.am (+2/-0) Makefile.am.coverage (+38/-0) NEWS (+21/-0) README (+0/-23) README.md (+29/-0) configure.ac (+10/-8) debian/changelog (+13/-0) libsignon-glib/Makefile.am (+9/-6) libsignon-glib/signon-auth-service.c (+1/-0) libsignon-glib/signon-auth-session.c (+20/-51) libsignon-glib/signon-dbus-queue.c (+2/-2) libsignon-glib/signon-dbus-queue.h (+1/-1) libsignon-glib/signon-errors.h (+1/-1) libsignon-glib/signon-identity-info.c (+1/-0) libsignon-glib/signon-identity.c (+1/-22) libsignon-glib/signon-utils.c (+2/-1) libsignon-glib/sso-auth-service.c (+9/-1) m4/gcov.m4 (+92/-0) tests/Makefile.am (+4/-0) tests/check_signon.c (+92/-4) tests/signon-glib-test-wrapper.sh (+3/-0) tests/signon-glib-test.sh (+9/-2) |
To merge this branch: | bzr merge lp:~online-accounts/libsignon-glib/packaging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Online Accounts | Pending | ||
Review via email: mp+294012@code.launchpad.net |
Commit message
Description of the change
Migrate to GTask
To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : | # |
review:
Approve
(continuous-integration)
- 159. By Alberto Mardegan
-
Migrate to GTask
Approved by: PS Jenkins bot
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.gitlab-ci.yml' | |||
2 | --- .gitlab-ci.yml 1970-01-01 00:00:00 +0000 | |||
3 | +++ .gitlab-ci.yml 2016-05-19 15:30:34 +0000 | |||
4 | @@ -0,0 +1,47 @@ | |||
5 | 1 | image: ubuntu:xenial | ||
6 | 2 | |||
7 | 3 | cache: | ||
8 | 4 | key: apt-cache | ||
9 | 5 | paths: | ||
10 | 6 | - apt-cache/ | ||
11 | 7 | |||
12 | 8 | before_script: | ||
13 | 9 | - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR | ||
14 | 10 | - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -yq autotools-dev gobject-introspection gtk-doc-tools libgirepository1.0-dev libglib2.0-dev libtool python3 python3-gi python-gi-dev signond-dev | ||
15 | 11 | - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -yq signon-plugin-ssotest check dbus-test-runner lcov gcovr | ||
16 | 12 | |||
17 | 13 | build_amd64: | ||
18 | 14 | stage: build | ||
19 | 15 | script: | ||
20 | 16 | - export PYTHON=python3 | ||
21 | 17 | - mkdir build | ||
22 | 18 | - cd build | ||
23 | 19 | - ../autogen.sh --enable-gtk-doc --enable-gcov --enable-debug --enable-python --prefix=/usr | ||
24 | 20 | - make -j 4 | ||
25 | 21 | artifacts: | ||
26 | 22 | paths: | ||
27 | 23 | - ./ | ||
28 | 24 | |||
29 | 25 | test_amd64: | ||
30 | 26 | stage: test | ||
31 | 27 | script: | ||
32 | 28 | - cd build | ||
33 | 29 | - make check || (cat tests/test-suite.log && /bin/false) | ||
34 | 30 | - make coverage-html | ||
35 | 31 | dependencies: | ||
36 | 32 | - build_amd64 | ||
37 | 33 | artifacts: | ||
38 | 34 | paths: | ||
39 | 35 | - ./ | ||
40 | 36 | |||
41 | 37 | pages: | ||
42 | 38 | stage: deploy | ||
43 | 39 | script: | ||
44 | 40 | - mkdir public | ||
45 | 41 | - cp -a build/coveragereport public/coverage | ||
46 | 42 | - cp -a build/docs/reference/html/* public/ | ||
47 | 43 | dependencies: | ||
48 | 44 | - test_amd64 | ||
49 | 45 | artifacts: | ||
50 | 46 | paths: | ||
51 | 47 | - public | ||
52 | 0 | 48 | ||
53 | === modified file 'Makefile.am' | |||
54 | --- Makefile.am 2012-10-30 09:28:39 +0000 | |||
55 | +++ Makefile.am 2016-05-19 15:30:34 +0000 | |||
56 | @@ -12,6 +12,8 @@ | |||
57 | 12 | SUBDIRS += tests | 12 | SUBDIRS += tests |
58 | 13 | endif | 13 | endif |
59 | 14 | 14 | ||
60 | 15 | include $(top_srcdir)/Makefile.am.coverage | ||
61 | 16 | |||
62 | 15 | pkgconfigdir = $(libdir)/pkgconfig | 17 | pkgconfigdir = $(libdir)/pkgconfig |
63 | 16 | pkgconfig_in_files = libsignon-glib.pc.in | 18 | pkgconfig_in_files = libsignon-glib.pc.in |
64 | 17 | pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc) | 19 | pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc) |
65 | 18 | 20 | ||
66 | === added file 'Makefile.am.coverage' | |||
67 | --- Makefile.am.coverage 1970-01-01 00:00:00 +0000 | |||
68 | +++ Makefile.am.coverage 2016-05-19 15:30:34 +0000 | |||
69 | @@ -0,0 +1,38 @@ | |||
70 | 1 | |||
71 | 2 | # Coverage targets | ||
72 | 3 | |||
73 | 4 | .PHONY: clean-gcda | ||
74 | 5 | clean-gcda: | ||
75 | 6 | @echo Removing old coverage results | ||
76 | 7 | -$(AM_V_at)find -name '*.gcda' -print | xargs -r rm | ||
77 | 8 | |||
78 | 9 | .PHONY: coverage-html generate-coverage-html clean-coverage-html | ||
79 | 10 | coverage-html: clean-gcda | ||
80 | 11 | -$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check | ||
81 | 12 | $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) generate-coverage-html | ||
82 | 13 | |||
83 | 14 | if HAVE_GCOV | ||
84 | 15 | |||
85 | 16 | generate-coverage-html: | ||
86 | 17 | @echo Collecting coverage data | ||
87 | 18 | $(AM_V_at)$(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool | ||
88 | 19 | $(AM_V_at)$(LCOV) --remove coverage.info signon-enum-types.c signon-errors-enum.c signon-marshal.c "sso-*-gen.*" -o coverage.info # autogenerated files | ||
89 | 20 | $(AM_V_at)LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info | ||
90 | 21 | |||
91 | 22 | clean-coverage-html: clean-gcda | ||
92 | 23 | -$(AM_V_at)$(LCOV) --directory $(top_builddir) -z | ||
93 | 24 | -$(AM_V_at)rm -rf coverage.info coveragereport | ||
94 | 25 | |||
95 | 26 | clean-local: clean-coverage-html | ||
96 | 27 | |||
97 | 28 | else | ||
98 | 29 | |||
99 | 30 | generate-coverage-html: | ||
100 | 31 | $(AM_V_at)echo "Code coverage reporting not available" | ||
101 | 32 | |||
102 | 33 | clean-coverage-html: clean-gcda | ||
103 | 34 | -$(AM_V_at)rm -rf coverage.info coveragereport | ||
104 | 35 | |||
105 | 36 | clean-local: clean-coverage-html | ||
106 | 37 | |||
107 | 38 | endif # HAVE_GCOV | ||
108 | 0 | 39 | ||
109 | === modified file 'NEWS' | |||
110 | --- NEWS 2014-12-09 08:52:37 +0000 | |||
111 | +++ NEWS 2016-05-19 15:30:34 +0000 | |||
112 | @@ -1,5 +1,26 @@ | |||
113 | 1 | libsignon-glib NEWS | 1 | libsignon-glib NEWS |
114 | 2 | 2 | ||
115 | 3 | Version 1.14 | ||
116 | 4 | ------------ | ||
117 | 5 | |||
118 | 6 | * Migrate to GTask | ||
119 | 7 | * Fix memory leaks reported by valgrind | ||
120 | 8 | * Enable CI in gitlab.com | ||
121 | 9 | * Build: add test coverage reporting | ||
122 | 10 | * Build: fix parallel builds and out-of-tree builds | ||
123 | 11 | * Tests: add a test for signon_auth_session_process_async() | ||
124 | 12 | * Tests: allow running tests with valgrind | ||
125 | 13 | |||
126 | 14 | Version 1.13 | ||
127 | 15 | ------------ | ||
128 | 16 | |||
129 | 17 | * Build: don't emit a build error on deprecations | ||
130 | 18 | * Build: ignore deprecations of GSimpleAsyncResult | ||
131 | 19 | * pkg-config: remove unused variable | ||
132 | 20 | Fixes: https://gitlab.com/accounts-sso/libsignon-glib/issues/1 | ||
133 | 21 | * Tests: do not count on mechanisms being ordered | ||
134 | 22 | * Introspection: mark ACL and realms as string lists, update Vala bindings | ||
135 | 23 | |||
136 | 3 | Version 1.12 | 24 | Version 1.12 |
137 | 4 | ------------ | 25 | ------------ |
138 | 5 | 26 | ||
139 | 6 | 27 | ||
140 | === removed file 'README' | |||
141 | --- README 2015-11-27 02:48:53 +0000 | |||
142 | +++ README 1970-01-01 00:00:00 +0000 | |||
143 | @@ -1,23 +0,0 @@ | |||
144 | 1 | Single signon authentication library for GLib applications | ||
145 | 2 | ---------------------------------------------------------- | ||
146 | 3 | |||
147 | 4 | This project is a library for managing single signon credentilas which can be | ||
148 | 5 | used from GLib applications. It is effectively a GLib binding for the D-Bus API | ||
149 | 6 | provided by signond. It is part of the accounts-sso project: | ||
150 | 7 | |||
151 | 8 | https://gitlab.com/groups/accounts-sso | ||
152 | 9 | |||
153 | 10 | Dependencies | ||
154 | 11 | ------------ | ||
155 | 12 | |||
156 | 13 | The project depends on GLib (including GIO and GObject), signond and check. | ||
157 | 14 | |||
158 | 15 | Licence | ||
159 | 16 | ------- | ||
160 | 17 | |||
161 | 18 | The library is licensed under the GNU LGPL version 2.1. | ||
162 | 19 | |||
163 | 20 | Resources | ||
164 | 21 | --------- | ||
165 | 22 | |||
166 | 23 | https://gitlab.com/accounts-sso/libsignon-glib | ||
167 | 24 | 0 | ||
168 | === added file 'README.md' | |||
169 | --- README.md 1970-01-01 00:00:00 +0000 | |||
170 | +++ README.md 2016-05-19 15:30:34 +0000 | |||
171 | @@ -0,0 +1,29 @@ | |||
172 | 1 | Single signon authentication library for GLib applications | ||
173 | 2 | ========================================================== | ||
174 | 3 | |||
175 | 4 | This project is a library for managing single signon credentilas which can be | ||
176 | 5 | used from GLib applications. It is effectively a GLib binding for the D-Bus API | ||
177 | 6 | provided by [signond][]. | ||
178 | 7 | It is part of the accounts-sso project: | ||
179 | 8 | |||
180 | 9 | https://gitlab.com/groups/accounts-sso | ||
181 | 10 | |||
182 | 11 | Dependencies | ||
183 | 12 | ------------ | ||
184 | 13 | |||
185 | 14 | The project depends on GLib (including GIO and GObject), [signond][] and [check][]. | ||
186 | 15 | |||
187 | 16 | Licence | ||
188 | 17 | ------- | ||
189 | 18 | |||
190 | 19 | The library is licensed under the GNU LGPL version 2.1. | ||
191 | 20 | |||
192 | 21 | Resources | ||
193 | 22 | --------- | ||
194 | 23 | |||
195 | 24 | [API reference documentation](http://accounts-sso.gitlab.io/libsignon-glib/) | ||
196 | 25 | |||
197 | 26 | [Official source code repository](https://gitlab.com/accounts-sso/libsignon-glib) | ||
198 | 27 | |||
199 | 28 | [signond]: https://gitlab.com/accounts-sso/signond | ||
200 | 29 | [check]: https://github.com/libcheck/check | ||
201 | 0 | 30 | ||
202 | === modified file 'configure.ac' | |||
203 | --- configure.ac 2015-12-09 07:59:54 +0000 | |||
204 | +++ configure.ac 2016-05-19 15:30:34 +0000 | |||
205 | @@ -1,7 +1,7 @@ | |||
206 | 1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
207 | 2 | AC_PREREQ([2.64]) | 2 | AC_PREREQ([2.64]) |
208 | 3 | AC_INIT([libsignon-glib], | 3 | AC_INIT([libsignon-glib], |
210 | 4 | [1.13], | 4 | [1.14], |
211 | 5 | [https://gitlab.com/accounts-sso/libsignon-glib/issues], | 5 | [https://gitlab.com/accounts-sso/libsignon-glib/issues], |
212 | 6 | [libsignon-glib], | 6 | [libsignon-glib], |
213 | 7 | [https://gitlab.com/accounts-sso/libsignon-glib]) | 7 | [https://gitlab.com/accounts-sso/libsignon-glib]) |
214 | @@ -11,7 +11,7 @@ | |||
215 | 11 | AC_CONFIG_SRCDIR([libsignon-glib.pc.in]) | 11 | AC_CONFIG_SRCDIR([libsignon-glib.pc.in]) |
216 | 12 | AC_CONFIG_MACRO_DIR([m4]) | 12 | AC_CONFIG_MACRO_DIR([m4]) |
217 | 13 | 13 | ||
219 | 14 | AM_INIT_AUTOMAKE([1.11 -Wall check-news nostdinc silent-rules subdir-objects]) | 14 | AM_INIT_AUTOMAKE([1.11 -Wall check-news nostdinc silent-rules subdir-objects foreign]) |
220 | 15 | 15 | ||
221 | 16 | AC_PROG_CC | 16 | AC_PROG_CC |
222 | 17 | AC_PROG_CC_STDC | 17 | AC_PROG_CC_STDC |
223 | @@ -25,7 +25,7 @@ | |||
224 | 25 | 25 | ||
225 | 26 | PKG_CHECK_MODULES( | 26 | PKG_CHECK_MODULES( |
226 | 27 | [DEPS], | 27 | [DEPS], |
228 | 28 | [gio-2.0 >= 2.30 | 28 | [gio-2.0 >= 2.36 |
229 | 29 | gio-unix-2.0 | 29 | gio-unix-2.0 |
230 | 30 | glib-2.0 >= 2.32 | 30 | glib-2.0 >= 2.32 |
231 | 31 | gobject-2.0 >= 2.35.1 | 31 | gobject-2.0 >= 2.35.1 |
232 | @@ -51,6 +51,13 @@ | |||
233 | 51 | [AS_IF([test "x$enable_tests" = "xyes"], | 51 | [AS_IF([test "x$enable_tests" = "xyes"], |
234 | 52 | [AC_MSG_ERROR([tests enabled but required dependencies were not found])])]) | 52 | [AC_MSG_ERROR([tests enabled but required dependencies were not found])])]) |
235 | 53 | 53 | ||
236 | 54 | # gcov coverage reporting | ||
237 | 55 | m4_include([m4/gcov.m4]) | ||
238 | 56 | AC_TDD_GCOV | ||
239 | 57 | AC_SUBST(COVERAGE_CFLAGS) | ||
240 | 58 | AC_SUBST(COVERAGE_CXXFLAGS) | ||
241 | 59 | AC_SUBST(COVERAGE_LDFLAGS) | ||
242 | 60 | |||
243 | 54 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$have_check" = "xyes"]) | 61 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$have_check" = "xyes"]) |
244 | 55 | 62 | ||
245 | 56 | GTK_DOC_CHECK([1.14], [--flavour no-tmpl]) | 63 | GTK_DOC_CHECK([1.14], [--flavour no-tmpl]) |
246 | @@ -75,11 +82,6 @@ | |||
247 | 75 | AS_IF([test "x$enable_debug" = "xyes"], | 82 | AS_IF([test "x$enable_debug" = "xyes"], |
248 | 76 | [CFLAGS="$CFLAGS -DENABLE_DEBUG"]) | 83 | [CFLAGS="$CFLAGS -DENABLE_DEBUG"]) |
249 | 77 | 84 | ||
250 | 78 | AC_ARG_ENABLE([coverage], | ||
251 | 79 | [AS_HELP_STRING([--enable-coverage], [compile with coverage info])]) | ||
252 | 80 | AS_IF([test "x$enable_coverage" = "xyes"], | ||
253 | 81 | [CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage"]) | ||
254 | 82 | |||
255 | 83 | # Python support. | 85 | # Python support. |
256 | 84 | PYGOBJECT_REQUIRED=2.90 | 86 | PYGOBJECT_REQUIRED=2.90 |
257 | 85 | 87 | ||
258 | 86 | 88 | ||
259 | === modified file 'debian/changelog' | |||
260 | --- debian/changelog 2015-12-09 10:24:53 +0000 | |||
261 | +++ debian/changelog 2016-05-19 15:30:34 +0000 | |||
262 | @@ -1,3 +1,16 @@ | |||
263 | 1 | libsignon-glib (1.14-0ubuntu1) UNRELEASED; urgency=medium | ||
264 | 2 | |||
265 | 3 | * New upstream release. | ||
266 | 4 | - Migrate to GTask (LP: #1577373) | ||
267 | 5 | - Fix memory leaks reported by valgrind | ||
268 | 6 | - Enable CI in gitlab.com | ||
269 | 7 | - Build: add test coverage reporting | ||
270 | 8 | - Build: fix parallel builds and out-of-tree builds | ||
271 | 9 | - Tests: add a test for signon_auth_session_process_async() | ||
272 | 10 | - Tests: allow running tests with valgrind | ||
273 | 11 | |||
274 | 12 | -- Alberto Mardegan <alberto.mardegan@canonical.com> Thu, 19 May 2016 18:28:23 +0300 | ||
275 | 13 | |||
276 | 1 | libsignon-glib (1.13+16.04.20151209.1-0ubuntu1) xenial; urgency=medium | 14 | libsignon-glib (1.13+16.04.20151209.1-0ubuntu1) xenial; urgency=medium |
277 | 2 | 15 | ||
278 | 3 | [ Alberto Mardegan ] | 16 | [ Alberto Mardegan ] |
279 | 4 | 17 | ||
280 | === modified file 'libsignon-glib/Makefile.am' | |||
281 | --- libsignon-glib/Makefile.am 2015-12-02 08:57:16 +0000 | |||
282 | +++ libsignon-glib/Makefile.am 2016-05-19 15:30:34 +0000 | |||
283 | @@ -5,11 +5,14 @@ | |||
284 | 5 | -I$(top_srcdir) \ | 5 | -I$(top_srcdir) \ |
285 | 6 | -I$(srcdir) \ | 6 | -I$(srcdir) \ |
286 | 7 | -I$(top_builddir) \ | 7 | -I$(top_builddir) \ |
288 | 8 | -I$(builddir) \ | 8 | -I$(builddir) |
289 | 9 | libsignon_glib_la_CFLAGS = \ | ||
290 | 9 | $(DEPS_CFLAGS) \ | 10 | $(DEPS_CFLAGS) \ |
291 | 11 | $(COVERAGE_CFLAGS) \ | ||
292 | 10 | -Wall -Werror -Wno-error=deprecated-declarations | 12 | -Wall -Werror -Wno-error=deprecated-declarations |
293 | 11 | libsignon_glib_la_LIBADD = $(DEPS_LIBS) | 13 | libsignon_glib_la_LIBADD = $(DEPS_LIBS) |
294 | 12 | libsignon_glib_la_LDFLAGS = \ | 14 | libsignon_glib_la_LDFLAGS = \ |
295 | 15 | $(COVERAGE_LDFLAGS) \ | ||
296 | 13 | -version-info 1:0:0 \ | 16 | -version-info 1:0:0 \ |
297 | 14 | -export-symbols-regex '^signon_' | 17 | -export-symbols-regex '^signon_' |
298 | 15 | 18 | ||
299 | @@ -75,8 +78,7 @@ | |||
300 | 75 | signon-auth-session.h \ | 78 | signon-auth-session.h \ |
301 | 76 | signon-identity-info.h | 79 | signon-identity-info.h |
302 | 77 | 80 | ||
305 | 78 | # This should come from `pkg-config --variable=interfaces_dir dbus-1` | 81 | DBUS_INTERFACES_DIR = $(datadir)/dbus-1/interfaces |
304 | 79 | DBUS_INTERFACES_DIR = /usr/share/dbus-1/interfaces | ||
306 | 80 | 82 | ||
307 | 81 | sso-auth-service-gen.h sso-auth-service-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml | 83 | sso-auth-service-gen.h sso-auth-service-gen.c: $(DBUS_INTERFACES_DIR)/com.google.code.AccountsSSO.SingleSignOn.AuthService.xml |
308 | 82 | $(AM_V_GEN)gdbus-codegen \ | 84 | $(AM_V_GEN)gdbus-codegen \ |
309 | @@ -145,9 +147,9 @@ | |||
310 | 145 | --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \ | 147 | --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \ |
311 | 146 | signon-errors.h ) | \ | 148 | signon-errors.h ) | \ |
312 | 147 | $(SED) -e 's/SEDSIGNON_ERROR_\([^,]*\)/SIGNOND_\1_ERR_NAME/' \ | 149 | $(SED) -e 's/SEDSIGNON_ERROR_\([^,]*\)/SIGNOND_\1_ERR_NAME/' \ |
316 | 148 | > xgen-getc \ | 150 | > xgen-getc-enum \ |
317 | 149 | && cp xgen-getc signon-errors-enum.c \ | 151 | && cp xgen-getc-enum signon-errors-enum.c \ |
318 | 150 | && rm -f xgen-getc | 152 | && rm -f xgen-getc-enum |
319 | 151 | 153 | ||
320 | 152 | signon-errors-map.c: Makefile signon-errors.h | 154 | signon-errors-map.c: Makefile signon-errors.h |
321 | 153 | $(AM_V_GEN)( cd $(srcdir) && \ | 155 | $(AM_V_GEN)( cd $(srcdir) && \ |
322 | @@ -189,6 +191,7 @@ | |||
323 | 189 | --warn-all | 191 | --warn-all |
324 | 190 | Signon_1_0_gir_CFLAGS = \ | 192 | Signon_1_0_gir_CFLAGS = \ |
325 | 191 | -I$(top_srcdir) \ | 193 | -I$(top_srcdir) \ |
326 | 194 | -I$(top_builddir) \ | ||
327 | 192 | $(DEPS_CFLAGS) | 195 | $(DEPS_CFLAGS) |
328 | 193 | Signon_1_0_gir_LIBS = libsignon-glib.la | 196 | Signon_1_0_gir_LIBS = libsignon-glib.la |
329 | 194 | Signon_1_0_gir_FILES = $(introspection_sources) | 197 | Signon_1_0_gir_FILES = $(introspection_sources) |
330 | 195 | 198 | ||
331 | === modified file 'libsignon-glib/signon-auth-service.c' | |||
332 | --- libsignon-glib/signon-auth-service.c 2014-12-05 07:15:03 +0000 | |||
333 | +++ libsignon-glib/signon-auth-service.c 2016-05-19 15:30:34 +0000 | |||
334 | @@ -86,6 +86,7 @@ | |||
335 | 86 | if (priv->cancellable) | 86 | if (priv->cancellable) |
336 | 87 | { | 87 | { |
337 | 88 | g_cancellable_cancel (priv->cancellable); | 88 | g_cancellable_cancel (priv->cancellable); |
338 | 89 | g_object_unref (priv->cancellable); | ||
339 | 89 | priv->cancellable = NULL; | 90 | priv->cancellable = NULL; |
340 | 90 | } | 91 | } |
341 | 91 | 92 | ||
342 | 92 | 93 | ||
343 | === modified file 'libsignon-glib/signon-auth-session.c' | |||
344 | --- libsignon-glib/signon-auth-session.c 2015-12-02 08:40:47 +0000 | |||
345 | +++ libsignon-glib/signon-auth-session.c 2016-05-19 15:30:34 +0000 | |||
346 | @@ -93,7 +93,6 @@ | |||
347 | 93 | { | 93 | { |
348 | 94 | GVariant *session_data; | 94 | GVariant *session_data; |
349 | 95 | gchar *mechanism; | 95 | gchar *mechanism; |
350 | 96 | GCancellable *cancellable; | ||
351 | 97 | } AuthSessionProcessData; | 96 | } AuthSessionProcessData; |
352 | 98 | 97 | ||
353 | 99 | typedef struct _AuthSessionQueryAvailableMechanismsCbData | 98 | typedef struct _AuthSessionQueryAvailableMechanismsCbData |
354 | @@ -138,7 +137,7 @@ | |||
355 | 138 | { | 137 | { |
356 | 139 | SignonAuthSession *self; | 138 | SignonAuthSession *self; |
357 | 140 | SsoAuthSession *proxy = SSO_AUTH_SESSION (object); | 139 | SsoAuthSession *proxy = SSO_AUTH_SESSION (object); |
359 | 141 | GSimpleAsyncResult *res_process = (GSimpleAsyncResult *)userdata; | 140 | GTask *res_process = userdata; |
360 | 142 | GVariant *reply; | 141 | GVariant *reply; |
361 | 143 | GError *error = NULL; | 142 | GError *error = NULL; |
362 | 144 | 143 | ||
363 | @@ -146,29 +145,20 @@ | |||
364 | 146 | 145 | ||
365 | 147 | sso_auth_session_call_process_finish (proxy, &reply, res, &error); | 146 | sso_auth_session_call_process_finish (proxy, &reply, res, &error); |
366 | 148 | 147 | ||
370 | 149 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS | 148 | self = SIGNON_AUTH_SESSION (g_task_get_source_object (res_process)); |
368 | 150 | self = SIGNON_AUTH_SESSION (g_async_result_get_source_object ( | ||
369 | 151 | (GAsyncResult *)res_process)); | ||
371 | 152 | self->priv->busy = FALSE; | 149 | self->priv->busy = FALSE; |
372 | 153 | 150 | ||
373 | 154 | if (G_LIKELY (error == NULL)) | 151 | if (G_LIKELY (error == NULL)) |
374 | 155 | { | 152 | { |
378 | 156 | g_simple_async_result_set_op_res_gpointer (res_process, reply, | 153 | g_task_return_pointer (res_process, reply, |
379 | 157 | (GDestroyNotify) | 154 | (GDestroyNotify) g_variant_unref); |
377 | 158 | g_variant_unref); | ||
380 | 159 | } | 155 | } |
381 | 160 | else | 156 | else |
382 | 161 | { | 157 | { |
384 | 162 | g_simple_async_result_take_error (res_process, error); | 158 | g_task_return_error (res_process, error); |
385 | 163 | } | 159 | } |
386 | 164 | 160 | ||
394 | 165 | /* We use the idle variant in order to avoid the following critical | 161 | g_object_unref (res_process); |
388 | 166 | * message: | ||
389 | 167 | * g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed | ||
390 | 168 | */ | ||
391 | 169 | g_simple_async_result_complete_in_idle (res_process); | ||
392 | 170 | G_GNUC_END_IGNORE_DEPRECATIONS | ||
393 | 171 | g_object_unref (self); | ||
395 | 172 | } | 162 | } |
396 | 173 | 163 | ||
397 | 174 | static void | 164 | static void |
398 | @@ -176,18 +166,17 @@ | |||
399 | 176 | { | 166 | { |
400 | 177 | SignonAuthSession *self = SIGNON_AUTH_SESSION (object); | 167 | SignonAuthSession *self = SIGNON_AUTH_SESSION (object); |
401 | 178 | SignonAuthSessionPrivate *priv; | 168 | SignonAuthSessionPrivate *priv; |
403 | 179 | GSimpleAsyncResult *res = G_SIMPLE_ASYNC_RESULT (user_data); | 169 | GTask *res = G_TASK (user_data); |
404 | 180 | AuthSessionProcessData *process_data; | 170 | AuthSessionProcessData *process_data; |
405 | 181 | 171 | ||
406 | 182 | g_return_if_fail (self != NULL); | 172 | g_return_if_fail (self != NULL); |
407 | 183 | priv = self->priv; | 173 | priv = self->priv; |
408 | 184 | 174 | ||
409 | 185 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS | ||
410 | 186 | if (error != NULL) | 175 | if (error != NULL) |
411 | 187 | { | 176 | { |
412 | 188 | DEBUG ("AuthSessionError: %s", error->message); | 177 | DEBUG ("AuthSessionError: %s", error->message); |
415 | 189 | g_simple_async_result_set_from_error (res, error); | 178 | g_task_return_error (res, g_error_copy (error)); |
416 | 190 | g_simple_async_result_complete (res); | 179 | g_object_unref (res); |
417 | 191 | return; | 180 | return; |
418 | 192 | } | 181 | } |
419 | 193 | 182 | ||
420 | @@ -195,14 +184,13 @@ | |||
421 | 195 | { | 184 | { |
422 | 196 | priv->busy = FALSE; | 185 | priv->busy = FALSE; |
423 | 197 | priv->canceled = FALSE; | 186 | priv->canceled = FALSE; |
429 | 198 | g_simple_async_result_set_error (res, | 187 | g_task_return_new_error (res, |
430 | 199 | signon_error_quark (), | 188 | signon_error_quark (), |
431 | 200 | SIGNON_ERROR_SESSION_CANCELED, | 189 | SIGNON_ERROR_SESSION_CANCELED, |
432 | 201 | "Authentication session was canceled"); | 190 | "Authentication session was canceled"); |
433 | 202 | g_simple_async_result_complete (res); | 191 | g_object_unref (res); |
434 | 203 | return; | 192 | return; |
435 | 204 | } | 193 | } |
436 | 205 | G_GNUC_END_IGNORE_DEPRECATIONS | ||
437 | 206 | 194 | ||
438 | 207 | process_data = g_object_get_data ((GObject *)res, data_key_process); | 195 | process_data = g_object_get_data ((GObject *)res, data_key_process); |
439 | 208 | g_return_if_fail (process_data != NULL); | 196 | g_return_if_fail (process_data != NULL); |
440 | @@ -210,7 +198,7 @@ | |||
441 | 210 | sso_auth_session_call_process (priv->proxy, | 198 | sso_auth_session_call_process (priv->proxy, |
442 | 211 | process_data->session_data, | 199 | process_data->session_data, |
443 | 212 | process_data->mechanism, | 200 | process_data->mechanism, |
445 | 213 | process_data->cancellable, | 201 | g_task_get_cancellable (res), |
446 | 214 | auth_session_process_reply, | 202 | auth_session_process_reply, |
447 | 215 | res); | 203 | res); |
448 | 216 | 204 | ||
449 | @@ -254,7 +242,6 @@ | |||
450 | 254 | 242 | ||
451 | 255 | g_slice_free (AuthSessionProcessCbData, cb_data); | 243 | g_slice_free (AuthSessionProcessCbData, cb_data); |
452 | 256 | g_clear_error (&error); | 244 | g_clear_error (&error); |
453 | 257 | g_object_unref (res); | ||
454 | 258 | } | 245 | } |
455 | 259 | 246 | ||
456 | 260 | static void | 247 | static void |
457 | @@ -432,8 +419,6 @@ | |||
458 | 432 | { | 419 | { |
459 | 433 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); | 420 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); |
460 | 434 | 421 | ||
461 | 435 | SignonAuthSessionPrivate *priv = self->priv; | ||
462 | 436 | g_return_if_fail (priv != NULL); | ||
463 | 437 | g_return_if_fail (id >= 0); | 422 | g_return_if_fail (id >= 0); |
464 | 438 | 423 | ||
465 | 439 | auth_session_check_remote_object(self); | 424 | auth_session_check_remote_object(self); |
466 | @@ -490,9 +475,6 @@ | |||
467 | 490 | gpointer user_data) | 475 | gpointer user_data) |
468 | 491 | { | 476 | { |
469 | 492 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); | 477 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); |
470 | 493 | SignonAuthSessionPrivate* priv = self->priv; | ||
471 | 494 | |||
472 | 495 | g_return_if_fail (priv != NULL); | ||
473 | 496 | 478 | ||
474 | 497 | AuthSessionQueryAvailableMechanismsCbData *cb_data = g_slice_new0 (AuthSessionQueryAvailableMechanismsCbData); | 479 | AuthSessionQueryAvailableMechanismsCbData *cb_data = g_slice_new0 (AuthSessionQueryAvailableMechanismsCbData); |
475 | 498 | cb_data->self = self; | 480 | cb_data->self = self; |
476 | @@ -589,23 +571,18 @@ | |||
477 | 589 | { | 571 | { |
478 | 590 | SignonAuthSessionPrivate *priv; | 572 | SignonAuthSessionPrivate *priv; |
479 | 591 | AuthSessionProcessData *process_data; | 573 | AuthSessionProcessData *process_data; |
481 | 592 | GSimpleAsyncResult *res; | 574 | GTask *res; |
482 | 593 | 575 | ||
483 | 594 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); | 576 | g_return_if_fail (SIGNON_IS_AUTH_SESSION (self)); |
484 | 595 | priv = self->priv; | 577 | priv = self->priv; |
485 | 596 | 578 | ||
486 | 597 | g_return_if_fail (session_data != NULL); | 579 | g_return_if_fail (session_data != NULL); |
487 | 598 | 580 | ||
493 | 599 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS | 581 | res = g_task_new (self, cancellable, callback, user_data); |
489 | 600 | res = g_simple_async_result_new ((GObject *)self, callback, user_data, | ||
490 | 601 | signon_auth_session_process_async); | ||
491 | 602 | g_simple_async_result_set_check_cancellable (res, cancellable); | ||
492 | 603 | G_GNUC_END_IGNORE_DEPRECATIONS | ||
494 | 604 | 582 | ||
495 | 605 | process_data = g_slice_new0 (AuthSessionProcessData); | 583 | process_data = g_slice_new0 (AuthSessionProcessData); |
496 | 606 | process_data->session_data = g_variant_ref_sink (session_data); | 584 | process_data->session_data = g_variant_ref_sink (session_data); |
497 | 607 | process_data->mechanism = g_strdup (mechanism); | 585 | process_data->mechanism = g_strdup (mechanism); |
498 | 608 | process_data->cancellable = cancellable; | ||
499 | 609 | g_object_set_data_full ((GObject *)res, data_key_process, process_data, | 586 | g_object_set_data_full ((GObject *)res, data_key_process, process_data, |
500 | 610 | (GDestroyNotify)auth_session_process_data_free); | 587 | (GDestroyNotify)auth_session_process_data_free); |
501 | 611 | 588 | ||
502 | @@ -636,19 +613,12 @@ | |||
503 | 636 | signon_auth_session_process_finish (SignonAuthSession *self, GAsyncResult *res, | 613 | signon_auth_session_process_finish (SignonAuthSession *self, GAsyncResult *res, |
504 | 637 | GError **error) | 614 | GError **error) |
505 | 638 | { | 615 | { |
508 | 639 | GSimpleAsyncResult *async_result; | 616 | GTask *task; |
507 | 640 | GVariant *reply; | ||
509 | 641 | 617 | ||
510 | 642 | g_return_val_if_fail (SIGNON_IS_AUTH_SESSION (self), NULL); | 618 | g_return_val_if_fail (SIGNON_IS_AUTH_SESSION (self), NULL); |
511 | 643 | 619 | ||
520 | 644 | async_result = (GSimpleAsyncResult *)res; | 620 | task = G_TASK (res); |
521 | 645 | G_GNUC_BEGIN_IGNORE_DEPRECATIONS | 621 | return g_task_propagate_pointer (task, error); |
514 | 646 | if (g_simple_async_result_propagate_error (async_result, error)) | ||
515 | 647 | return NULL; | ||
516 | 648 | |||
517 | 649 | reply = g_simple_async_result_get_op_res_gpointer (async_result); | ||
518 | 650 | G_GNUC_END_IGNORE_DEPRECATIONS | ||
519 | 651 | return g_variant_ref (reply); | ||
522 | 652 | } | 622 | } |
523 | 653 | 623 | ||
524 | 654 | /** | 624 | /** |
525 | @@ -748,7 +718,6 @@ | |||
526 | 748 | DEBUG ("Object path received: %s", object_path); | 718 | DEBUG ("Object path received: %s", object_path); |
527 | 749 | g_free (object_path); | 719 | g_free (object_path); |
528 | 750 | _signon_object_ready (self, auth_session_object_quark (), error); | 720 | _signon_object_ready (self, auth_session_object_quark (), error); |
529 | 751 | g_clear_error (&error); | ||
530 | 752 | } | 721 | } |
531 | 753 | 722 | ||
532 | 754 | static void | 723 | static void |
533 | 755 | 724 | ||
534 | === modified file 'libsignon-glib/signon-dbus-queue.c' | |||
535 | --- libsignon-glib/signon-dbus-queue.c 2010-06-29 07:25:04 +0000 | |||
536 | +++ libsignon-glib/signon-dbus-queue.c 2016-05-19 15:30:34 +0000 | |||
537 | @@ -121,7 +121,7 @@ | |||
538 | 121 | } | 121 | } |
539 | 122 | 122 | ||
540 | 123 | void | 123 | void |
542 | 124 | _signon_object_ready (gpointer object, GQuark quark, const GError *error) | 124 | _signon_object_ready (gpointer object, GQuark quark, GError *error) |
543 | 125 | { | 125 | { |
544 | 126 | SignonReadyData *rd; | 126 | SignonReadyData *rd; |
545 | 127 | 127 | ||
546 | @@ -129,7 +129,7 @@ | |||
547 | 129 | 129 | ||
548 | 130 | if(error) | 130 | if(error) |
549 | 131 | g_object_set_qdata_full ((GObject *)object, _signon_object_error_quark(), | 131 | g_object_set_qdata_full ((GObject *)object, _signon_object_error_quark(), |
551 | 132 | g_error_copy(error), | 132 | error, |
552 | 133 | (GDestroyNotify)g_error_free); | 133 | (GDestroyNotify)g_error_free); |
553 | 134 | 134 | ||
554 | 135 | /* steal the qdata so the callbacks won't be invoked again, even if the | 135 | /* steal the qdata so the callbacks won't be invoked again, even if the |
555 | 136 | 136 | ||
556 | === modified file 'libsignon-glib/signon-dbus-queue.h' | |||
557 | --- libsignon-glib/signon-dbus-queue.h 2010-06-28 11:59:12 +0000 | |||
558 | +++ libsignon-glib/signon-dbus-queue.h 2016-05-19 15:30:34 +0000 | |||
559 | @@ -36,7 +36,7 @@ | |||
560 | 36 | void _signon_object_call_when_ready (gpointer object, GQuark quark, | 36 | void _signon_object_call_when_ready (gpointer object, GQuark quark, |
561 | 37 | SignonReadyCb callback, gpointer user_data); | 37 | SignonReadyCb callback, gpointer user_data); |
562 | 38 | 38 | ||
564 | 39 | void _signon_object_ready (gpointer object, GQuark quark, const GError *error); | 39 | void _signon_object_ready (gpointer object, GQuark quark, GError *error); |
565 | 40 | void _signon_object_not_ready (gpointer object); | 40 | void _signon_object_not_ready (gpointer object); |
566 | 41 | 41 | ||
567 | 42 | const GError *_signon_object_last_error (gpointer object); | 42 | const GError *_signon_object_last_error (gpointer object); |
568 | 43 | 43 | ||
569 | === modified file 'libsignon-glib/signon-errors.h' | |||
570 | --- libsignon-glib/signon-errors.h 2012-01-27 10:24:27 +0000 | |||
571 | +++ libsignon-glib/signon-errors.h 2016-05-19 15:30:34 +0000 | |||
572 | @@ -27,7 +27,7 @@ | |||
573 | 27 | 27 | ||
574 | 28 | #include <glib.h> | 28 | #include <glib.h> |
575 | 29 | #include <glib-object.h> | 29 | #include <glib-object.h> |
577 | 30 | #include "signon-enum-types.h" | 30 | #include <libsignon-glib/signon-enum-types.h> |
578 | 31 | 31 | ||
579 | 32 | #define SIGNON_ERROR (signon_error_quark()) | 32 | #define SIGNON_ERROR (signon_error_quark()) |
580 | 33 | 33 | ||
581 | 34 | 34 | ||
582 | === modified file 'libsignon-glib/signon-identity-info.c' | |||
583 | --- libsignon-glib/signon-identity-info.c 2015-04-02 13:23:18 +0000 | |||
584 | +++ libsignon-glib/signon-identity-info.c 2016-05-19 15:30:34 +0000 | |||
585 | @@ -144,6 +144,7 @@ | |||
586 | 144 | { | 144 | { |
587 | 145 | g_hash_table_insert (info->methods, method, mechanisms); | 145 | g_hash_table_insert (info->methods, method, mechanisms); |
588 | 146 | } | 146 | } |
589 | 147 | g_variant_unref (method_map); | ||
590 | 147 | } | 148 | } |
591 | 148 | 149 | ||
592 | 149 | g_variant_lookup (variant, | 150 | g_variant_lookup (variant, |
593 | 150 | 151 | ||
594 | === modified file 'libsignon-glib/signon-identity.c' | |||
595 | --- libsignon-glib/signon-identity.c 2015-04-02 13:23:18 +0000 | |||
596 | +++ libsignon-glib/signon-identity.c 2016-05-19 15:30:34 +0000 | |||
597 | @@ -949,9 +949,6 @@ | |||
598 | 949 | { | 949 | { |
599 | 950 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 950 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
600 | 951 | 951 | ||
601 | 952 | SignonIdentityPrivate *priv = self->priv; | ||
602 | 953 | g_return_if_fail (priv != NULL); | ||
603 | 954 | |||
604 | 955 | DEBUG ("%s %d", G_STRFUNC, __LINE__); | 952 | DEBUG ("%s %d", G_STRFUNC, __LINE__); |
605 | 956 | 953 | ||
606 | 957 | IdentityVerifyCbData *cb_data = g_slice_new0 (IdentityVerifyCbData); | 954 | IdentityVerifyCbData *cb_data = g_slice_new0 (IdentityVerifyCbData); |
607 | @@ -1202,7 +1199,7 @@ | |||
608 | 1202 | } | 1199 | } |
609 | 1203 | } | 1200 | } |
610 | 1204 | 1201 | ||
612 | 1205 | if (priv->updated == TRUE) | 1202 | if (priv->updated || priv->removed) |
613 | 1206 | g_slice_free (IdentityInfoCbData, cb_data); | 1203 | g_slice_free (IdentityInfoCbData, cb_data); |
614 | 1207 | 1204 | ||
615 | 1208 | g_slice_free (IdentityVoidData, operation_data); | 1205 | g_slice_free (IdentityVoidData, operation_data); |
616 | @@ -1308,9 +1305,6 @@ | |||
617 | 1308 | { | 1305 | { |
618 | 1309 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1306 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
619 | 1310 | 1307 | ||
620 | 1311 | SignonIdentityPrivate *priv = self->priv; | ||
621 | 1312 | g_return_if_fail (priv != NULL); | ||
622 | 1313 | |||
623 | 1314 | DEBUG ("%s %d", G_STRFUNC, __LINE__); | 1308 | DEBUG ("%s %d", G_STRFUNC, __LINE__); |
624 | 1315 | 1309 | ||
625 | 1316 | IdentityVoidData *operation_data = g_slice_new0 (IdentityVoidData); | 1310 | IdentityVoidData *operation_data = g_slice_new0 (IdentityVoidData); |
626 | @@ -1335,9 +1329,6 @@ | |||
627 | 1335 | { | 1329 | { |
628 | 1336 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1330 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
629 | 1337 | 1331 | ||
630 | 1338 | SignonIdentityPrivate *priv = self->priv; | ||
631 | 1339 | g_return_if_fail (priv != NULL); | ||
632 | 1340 | |||
633 | 1341 | IdentityVoidCbData *cb_data = g_slice_new0 (IdentityVoidCbData); | 1332 | IdentityVoidCbData *cb_data = g_slice_new0 (IdentityVoidCbData); |
634 | 1342 | cb_data->self = self; | 1333 | cb_data->self = self; |
635 | 1343 | cb_data->cb = (SignonIdentityVoidCb)cb; | 1334 | cb_data->cb = (SignonIdentityVoidCb)cb; |
636 | @@ -1368,9 +1359,6 @@ | |||
637 | 1368 | { | 1359 | { |
638 | 1369 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1360 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
639 | 1370 | 1361 | ||
640 | 1371 | SignonIdentityPrivate *priv = self->priv; | ||
641 | 1372 | g_return_if_fail (priv != NULL); | ||
642 | 1373 | |||
643 | 1374 | IdentityVoidCbData *cb_data = g_slice_new0 (IdentityVoidCbData); | 1362 | IdentityVoidCbData *cb_data = g_slice_new0 (IdentityVoidCbData); |
644 | 1375 | cb_data->self = self; | 1363 | cb_data->self = self; |
645 | 1376 | cb_data->cb = (SignonIdentityVoidCb)cb; | 1364 | cb_data->cb = (SignonIdentityVoidCb)cb; |
646 | @@ -1399,9 +1387,6 @@ | |||
647 | 1399 | { | 1387 | { |
648 | 1400 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1388 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
649 | 1401 | 1389 | ||
650 | 1402 | SignonIdentityPrivate *priv = self->priv; | ||
651 | 1403 | g_return_if_fail (priv != NULL); | ||
652 | 1404 | |||
653 | 1405 | //TODO implement | 1390 | //TODO implement |
654 | 1406 | 1391 | ||
655 | 1407 | if (cb) | 1392 | if (cb) |
656 | @@ -1424,9 +1409,6 @@ | |||
657 | 1424 | { | 1409 | { |
658 | 1425 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1410 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
659 | 1426 | 1411 | ||
660 | 1427 | SignonIdentityPrivate *priv = self->priv; | ||
661 | 1428 | g_return_if_fail (priv != NULL); | ||
662 | 1429 | |||
663 | 1430 | //TODO implement | 1412 | //TODO implement |
664 | 1431 | 1413 | ||
665 | 1432 | if (cb) | 1414 | if (cb) |
666 | @@ -1448,9 +1430,6 @@ | |||
667 | 1448 | { | 1430 | { |
668 | 1449 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); | 1431 | g_return_if_fail (SIGNON_IS_IDENTITY (self)); |
669 | 1450 | 1432 | ||
670 | 1451 | SignonIdentityPrivate *priv = self->priv; | ||
671 | 1452 | g_return_if_fail (priv != NULL); | ||
672 | 1453 | |||
673 | 1454 | IdentityInfoCbData *cb_data = g_slice_new0 (IdentityInfoCbData); | 1433 | IdentityInfoCbData *cb_data = g_slice_new0 (IdentityInfoCbData); |
674 | 1455 | cb_data->self = self; | 1434 | cb_data->self = self; |
675 | 1456 | cb_data->cb = cb; | 1435 | cb_data->cb = cb; |
676 | 1457 | 1436 | ||
677 | === modified file 'libsignon-glib/signon-utils.c' | |||
678 | --- libsignon-glib/signon-utils.c 2012-10-17 07:06:24 +0000 | |||
679 | +++ libsignon-glib/signon-utils.c 2016-05-19 15:30:34 +0000 | |||
680 | @@ -106,7 +106,7 @@ | |||
681 | 106 | 106 | ||
682 | 107 | if (G_VALUE_TYPE (value) == G_TYPE_VARIANT) | 107 | if (G_VALUE_TYPE (value) == G_TYPE_VARIANT) |
683 | 108 | { | 108 | { |
685 | 109 | val = g_value_get_variant (value); | 109 | val = g_value_dup_variant (value); |
686 | 110 | } | 110 | } |
687 | 111 | else | 111 | else |
688 | 112 | { | 112 | { |
689 | @@ -115,6 +115,7 @@ | |||
690 | 115 | val = g_dbus_gvalue_to_gvariant (value, type); | 115 | val = g_dbus_gvalue_to_gvariant (value, type); |
691 | 116 | } | 116 | } |
692 | 117 | g_variant_builder_add (&builder, "{sv}", key, val); | 117 | g_variant_builder_add (&builder, "{sv}", key, val); |
693 | 118 | g_variant_unref (val); | ||
694 | 118 | } | 119 | } |
695 | 119 | return g_variant_builder_end (&builder); | 120 | return g_variant_builder_end (&builder); |
696 | 120 | } | 121 | } |
697 | 121 | 122 | ||
698 | === modified file 'libsignon-glib/sso-auth-service.c' | |||
699 | --- libsignon-glib/sso-auth-service.c 2012-08-02 10:25:45 +0000 | |||
700 | +++ libsignon-glib/sso-auth-service.c 2016-05-19 15:30:34 +0000 | |||
701 | @@ -51,6 +51,13 @@ | |||
702 | 51 | } | 51 | } |
703 | 52 | 52 | ||
704 | 53 | static void | 53 | static void |
705 | 54 | weak_ref_free(GWeakRef *ref) | ||
706 | 55 | { | ||
707 | 56 | g_weak_ref_clear (ref); | ||
708 | 57 | g_slice_free (GWeakRef, ref); | ||
709 | 58 | } | ||
710 | 59 | |||
711 | 60 | static void | ||
712 | 54 | set_singleton (SsoAuthService *object) | 61 | set_singleton (SsoAuthService *object) |
713 | 55 | { | 62 | { |
714 | 56 | g_return_if_fail (IS_SSO_AUTH_SERVICE (object)); | 63 | g_return_if_fail (IS_SSO_AUTH_SERVICE (object)); |
715 | @@ -59,7 +66,8 @@ | |||
716 | 59 | 66 | ||
717 | 60 | if (thread_objects == NULL) | 67 | if (thread_objects == NULL) |
718 | 61 | { | 68 | { |
720 | 62 | thread_objects = g_hash_table_new (g_direct_hash, g_direct_equal); | 69 | thread_objects = g_hash_table_new_full (g_direct_hash, g_direct_equal, |
721 | 70 | NULL, (GDestroyNotify) weak_ref_free); | ||
722 | 63 | } | 71 | } |
723 | 64 | 72 | ||
724 | 65 | if (object != NULL) | 73 | if (object != NULL) |
725 | 66 | 74 | ||
726 | === added file 'm4/gcov.m4' | |||
727 | --- m4/gcov.m4 1970-01-01 00:00:00 +0000 | |||
728 | +++ m4/gcov.m4 2016-05-19 15:30:34 +0000 | |||
729 | @@ -0,0 +1,92 @@ | |||
730 | 1 | # Copyright 2012-2016 Canonical Ltd. | ||
731 | 2 | # | ||
732 | 3 | # This program is free software: you can redistribute it and/or modify it | ||
733 | 4 | # under the terms of the GNU General Public License version 3, as published | ||
734 | 5 | # by the Free Software Foundation. | ||
735 | 6 | # | ||
736 | 7 | # This program is distributed in the hope that it will be useful, but | ||
737 | 8 | # WITHOUT ANY WARRANTY; without even the implied warranties of | ||
738 | 9 | # MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR | ||
739 | 10 | # PURPOSE. See the GNU General Public License for more details. | ||
740 | 11 | # | ||
741 | 12 | # You should have received a copy of the GNU General Public License along | ||
742 | 13 | # with this program. If not, see <http://www.gnu.org/licenses/>. | ||
743 | 14 | |||
744 | 15 | # Checks for existence of coverage tools: | ||
745 | 16 | # * gcov | ||
746 | 17 | # * lcov | ||
747 | 18 | # * genhtml | ||
748 | 19 | # * gcovr | ||
749 | 20 | # | ||
750 | 21 | # Sets ac_cv_check_gcov to yes if tooling is present | ||
751 | 22 | # and reports the executables to the variables LCOV, GCOVR and GENHTML. | ||
752 | 23 | AC_DEFUN([AC_TDD_GCOV], | ||
753 | 24 | [ | ||
754 | 25 | AC_ARG_ENABLE(gcov, | ||
755 | 26 | AS_HELP_STRING([--enable-gcov], | ||
756 | 27 | [enable coverage testing with gcov])) | ||
757 | 28 | |||
758 | 29 | AM_CONDITIONAL(HAVE_GCOV, test "x$enable_gcov" = "xyes") | ||
759 | 30 | |||
760 | 31 | if test "x$enable_gcov" = "xyes"; then | ||
761 | 32 | # we need gcc: | ||
762 | 33 | if test "$GCC" != "yes"; then | ||
763 | 34 | AC_MSG_ERROR([GCC is required for --enable-gcov]) | ||
764 | 35 | fi | ||
765 | 36 | |||
766 | 37 | # Check if ccache is being used | ||
767 | 38 | AC_CHECK_PROG(SHTOOL, shtool, shtool) | ||
768 | 39 | if test "$SHTOOL"; then | ||
769 | 40 | AS_CASE([`$SHTOOL path $CC`], | ||
770 | 41 | [*ccache*], [gcc_ccache=yes], | ||
771 | 42 | [gcc_ccache=no]) | ||
772 | 43 | fi | ||
773 | 44 | |||
774 | 45 | if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then | ||
775 | 46 | AC_MSG_ERROR([ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1.]) | ||
776 | 47 | fi | ||
777 | 48 | |||
778 | 49 | lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12" | ||
779 | 50 | AC_CHECK_PROG(LCOV, lcov, lcov) | ||
780 | 51 | AC_CHECK_PROG(GENHTML, genhtml, genhtml) | ||
781 | 52 | |||
782 | 53 | if test "$LCOV"; then | ||
783 | 54 | AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [ | ||
784 | 55 | glib_cv_lcov_version=invalid | ||
785 | 56 | lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'` | ||
786 | 57 | for lcov_check_version in $lcov_version_list; do | ||
787 | 58 | if test "$lcov_version" = "$lcov_check_version"; then | ||
788 | 59 | glib_cv_lcov_version="$lcov_check_version (ok)" | ||
789 | 60 | fi | ||
790 | 61 | done | ||
791 | 62 | ]) | ||
792 | 63 | else | ||
793 | 64 | lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list" | ||
794 | 65 | AC_MSG_ERROR([$lcov_msg]) | ||
795 | 66 | fi | ||
796 | 67 | |||
797 | 68 | case $glib_cv_lcov_version in | ||
798 | 69 | ""|invalid[)] | ||
799 | 70 | lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)." | ||
800 | 71 | AC_MSG_ERROR([$lcov_msg]) | ||
801 | 72 | LCOV="exit 0;" | ||
802 | 73 | ;; | ||
803 | 74 | esac | ||
804 | 75 | |||
805 | 76 | if test -z "$GENHTML"; then | ||
806 | 77 | AC_MSG_ERROR([Could not find genhtml from the lcov package]) | ||
807 | 78 | fi | ||
808 | 79 | |||
809 | 80 | # Remove all optimization flags from CFLAGS | ||
810 | 81 | changequote({,}) | ||
811 | 82 | CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` | ||
812 | 83 | changequote([,]) | ||
813 | 84 | |||
814 | 85 | # Add the special gcc flags | ||
815 | 86 | COVERAGE_CFLAGS="--coverage -DG_DISABLE_ASSERTS -DG_DISABLE_CHECKS" | ||
816 | 87 | COVERAGE_CXXFLAGS="--coverage" | ||
817 | 88 | COVERAGE_LDFLAGS="-lgcov" | ||
818 | 89 | |||
819 | 90 | fi | ||
820 | 91 | ]) # AC_TDD_GCOV | ||
821 | 92 | |||
822 | 0 | 93 | ||
823 | === modified file 'tests/Makefile.am' | |||
824 | --- tests/Makefile.am 2014-12-09 09:20:01 +0000 | |||
825 | +++ tests/Makefile.am 2016-05-19 15:30:34 +0000 | |||
826 | @@ -5,6 +5,7 @@ | |||
827 | 5 | 5 | ||
828 | 6 | signon_glib_testsuite_SOURCES = check_signon.c | 6 | signon_glib_testsuite_SOURCES = check_signon.c |
829 | 7 | signon_glib_testsuite_CPPFLAGS = \ | 7 | signon_glib_testsuite_CPPFLAGS = \ |
830 | 8 | -I$(top_builddir) \ | ||
831 | 8 | -I$(top_srcdir) \ | 9 | -I$(top_srcdir) \ |
832 | 9 | $(DEPS_CFLAGS) \ | 10 | $(DEPS_CFLAGS) \ |
833 | 10 | $(CHECK_FLAGS) | 11 | $(CHECK_FLAGS) |
834 | @@ -14,4 +15,7 @@ | |||
835 | 14 | $(DEPS_LIBS) \ | 15 | $(DEPS_LIBS) \ |
836 | 15 | -lpthread | 16 | -lpthread |
837 | 16 | 17 | ||
838 | 18 | TESTS_ENVIRONMENT = \ | ||
839 | 19 | TESTDIR=$(top_srcdir)/tests/; export TESTDIR; | ||
840 | 20 | |||
841 | 17 | TESTS = signon-glib-test.sh | 21 | TESTS = signon-glib-test.sh |
842 | 18 | 22 | ||
843 | === modified file 'tests/check_signon.c' | |||
844 | --- tests/check_signon.c 2015-04-20 11:32:46 +0000 | |||
845 | +++ tests/check_signon.c 2016-05-19 15:30:34 +0000 | |||
846 | @@ -309,6 +309,7 @@ | |||
847 | 309 | g_main_loop_run (main_loop); | 309 | g_main_loop_run (main_loop); |
848 | 310 | 310 | ||
849 | 311 | g_free(patterns[0]); | 311 | g_free(patterns[0]); |
850 | 312 | g_object_unref(auth_session); | ||
851 | 312 | g_object_unref(idty); | 313 | g_object_unref(idty); |
852 | 313 | 314 | ||
853 | 314 | end_test (); | 315 | end_test (); |
854 | @@ -366,6 +367,7 @@ | |||
855 | 366 | g_free(patterns[0]); | 367 | g_free(patterns[0]); |
856 | 367 | g_free(patterns[1]); | 368 | g_free(patterns[1]); |
857 | 368 | g_free(patterns[2]); | 369 | g_free(patterns[2]); |
858 | 370 | g_object_unref(auth_session); | ||
859 | 369 | g_object_unref(idty); | 371 | g_object_unref(idty); |
860 | 370 | 372 | ||
861 | 371 | end_test (); | 373 | end_test (); |
862 | @@ -406,8 +408,6 @@ | |||
863 | 406 | fail_unless(g_strcmp0(g_value_get_string(usernameVa), "test_username") == 0, "Wrong value of username"); | 408 | fail_unless(g_strcmp0(g_value_get_string(usernameVa), "test_username") == 0, "Wrong value of username"); |
864 | 407 | fail_unless(g_strcmp0(g_value_get_string(realmVa), "testRealm_after_test") == 0, "Wrong value of realm"); | 409 | fail_unless(g_strcmp0(g_value_get_string(realmVa), "testRealm_after_test") == 0, "Wrong value of realm"); |
865 | 408 | 410 | ||
866 | 409 | g_hash_table_destroy(sessionData); | ||
867 | 410 | |||
868 | 411 | g_free(usernameKey); | 411 | g_free(usernameKey); |
869 | 412 | g_free(realmKey); | 412 | g_free(realmKey); |
870 | 413 | 413 | ||
871 | @@ -528,6 +528,88 @@ | |||
872 | 528 | g_free(passwordVa); | 528 | g_free(passwordVa); |
873 | 529 | g_free(passwordKey); | 529 | g_free(passwordKey); |
874 | 530 | 530 | ||
875 | 531 | g_hash_table_unref (sessionData); | ||
876 | 532 | |||
877 | 533 | end_test (); | ||
878 | 534 | } | ||
879 | 535 | END_TEST | ||
880 | 536 | |||
881 | 537 | static void | ||
882 | 538 | test_auth_session_process_async_cb (GObject *source_object, | ||
883 | 539 | GAsyncResult *res, | ||
884 | 540 | gpointer user_data) | ||
885 | 541 | { | ||
886 | 542 | SignonAuthSession *auth_session = SIGNON_AUTH_SESSION (source_object); | ||
887 | 543 | GVariant **v_reply = user_data; | ||
888 | 544 | GError *error = NULL; | ||
889 | 545 | |||
890 | 546 | fail_unless (SIGNON_IS_AUTH_SESSION (source_object)); | ||
891 | 547 | |||
892 | 548 | *v_reply = signon_auth_session_process_finish (auth_session, res, &error); | ||
893 | 549 | fail_unless (error == NULL); | ||
894 | 550 | |||
895 | 551 | g_main_loop_quit (main_loop); | ||
896 | 552 | } | ||
897 | 553 | |||
898 | 554 | START_TEST(test_auth_session_process_async) | ||
899 | 555 | { | ||
900 | 556 | gint state_counter = 0; | ||
901 | 557 | GError *err = NULL; | ||
902 | 558 | GVariantBuilder builder; | ||
903 | 559 | GVariant *session_data, *reply; | ||
904 | 560 | gchar *username, *realm; | ||
905 | 561 | gboolean ok; | ||
906 | 562 | |||
907 | 563 | g_debug("%s", G_STRFUNC); | ||
908 | 564 | SignonIdentity *idty = signon_identity_new(NULL, NULL); | ||
909 | 565 | fail_unless (idty != NULL, "Cannot create Iddentity object"); | ||
910 | 566 | |||
911 | 567 | SignonAuthSession *auth_session = signon_identity_create_session(idty, | ||
912 | 568 | "ssotest", | ||
913 | 569 | &err); | ||
914 | 570 | |||
915 | 571 | fail_unless (auth_session != NULL, "Cannot create AuthSession object"); | ||
916 | 572 | |||
917 | 573 | g_clear_error(&err); | ||
918 | 574 | |||
919 | 575 | g_signal_connect(auth_session, "state-changed", | ||
920 | 576 | G_CALLBACK(test_auth_session_states_cb), &state_counter); | ||
921 | 577 | |||
922 | 578 | g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT); | ||
923 | 579 | g_variant_builder_add (&builder, "{sv}", | ||
924 | 580 | SIGNON_SESSION_DATA_USERNAME, | ||
925 | 581 | g_variant_new_string ("test_username")); | ||
926 | 582 | g_variant_builder_add (&builder, "{sv}", | ||
927 | 583 | SIGNON_SESSION_DATA_SECRET, | ||
928 | 584 | g_variant_new_string ("test_pw")); | ||
929 | 585 | |||
930 | 586 | session_data = g_variant_builder_end (&builder); | ||
931 | 587 | |||
932 | 588 | signon_auth_session_process_async (auth_session, | ||
933 | 589 | session_data, | ||
934 | 590 | "mech1", | ||
935 | 591 | NULL, | ||
936 | 592 | test_auth_session_process_async_cb, | ||
937 | 593 | &reply); | ||
938 | 594 | main_loop = g_main_loop_new (NULL, FALSE); | ||
939 | 595 | g_main_loop_run (main_loop); | ||
940 | 596 | fail_unless (state_counter == 12, "Wrong numer of state change signals: %d", state_counter); | ||
941 | 597 | |||
942 | 598 | fail_unless (reply != NULL); | ||
943 | 599 | session_data = NULL; | ||
944 | 600 | |||
945 | 601 | ok = g_variant_lookup (reply, SIGNON_SESSION_DATA_USERNAME, "&s", &username); | ||
946 | 602 | ck_assert (ok); | ||
947 | 603 | ck_assert_str_eq (username, "test_username"); | ||
948 | 604 | ok = g_variant_lookup (reply, SIGNON_SESSION_DATA_REALM, "&s", &realm); | ||
949 | 605 | ck_assert (ok); | ||
950 | 606 | ck_assert_str_eq (realm, "testRealm_after_test"); | ||
951 | 607 | |||
952 | 608 | g_variant_unref (reply); | ||
953 | 609 | |||
954 | 610 | g_object_unref (auth_session); | ||
955 | 611 | g_object_unref (idty); | ||
956 | 612 | |||
957 | 531 | end_test (); | 613 | end_test (); |
958 | 532 | } | 614 | } |
959 | 533 | END_TEST | 615 | END_TEST |
960 | @@ -581,6 +663,7 @@ | |||
961 | 581 | fail_unless (error->domain == SIGNON_ERROR); | 663 | fail_unless (error->domain == SIGNON_ERROR); |
962 | 582 | fail_unless (error->code == SIGNON_ERROR_METHOD_NOT_KNOWN); | 664 | fail_unless (error->code == SIGNON_ERROR_METHOD_NOT_KNOWN); |
963 | 583 | 665 | ||
964 | 666 | g_error_free (error); | ||
965 | 584 | g_object_unref (auth_session); | 667 | g_object_unref (auth_session); |
966 | 585 | 668 | ||
967 | 586 | end_test (); | 669 | end_test (); |
968 | @@ -610,7 +693,6 @@ | |||
969 | 610 | fail_unless (g_strcmp0 (g_value_get_string (v_username), "Nice user") == 0, | 693 | fail_unless (g_strcmp0 (g_value_get_string (v_username), "Nice user") == 0, |
970 | 611 | "Wrong value of username"); | 694 | "Wrong value of username"); |
971 | 612 | 695 | ||
972 | 613 | g_hash_table_unref (reply); | ||
973 | 614 | g_object_unref (self); | 696 | g_object_unref (self); |
974 | 615 | 697 | ||
975 | 616 | g_main_loop_quit (main_loop); | 698 | g_main_loop_quit (main_loop); |
976 | @@ -654,6 +736,7 @@ | |||
977 | 654 | "mech1", | 736 | "mech1", |
978 | 655 | test_auth_session_process_after_store_cb, | 737 | test_auth_session_process_after_store_cb, |
979 | 656 | NULL); | 738 | NULL); |
980 | 739 | g_hash_table_unref (session_data); | ||
981 | 657 | } | 740 | } |
982 | 658 | 741 | ||
983 | 659 | START_TEST(test_auth_session_process_after_store) | 742 | START_TEST(test_auth_session_process_after_store) |
984 | @@ -681,6 +764,7 @@ | |||
985 | 681 | g_main_loop_run (main_loop); | 764 | g_main_loop_run (main_loop); |
986 | 682 | 765 | ||
987 | 683 | g_object_unref (identity); | 766 | g_object_unref (identity); |
988 | 767 | signon_identity_info_free (info); | ||
989 | 684 | 768 | ||
990 | 685 | end_test (); | 769 | end_test (); |
991 | 686 | } | 770 | } |
992 | @@ -722,6 +806,7 @@ | |||
993 | 722 | 806 | ||
994 | 723 | *new_id = id; | 807 | *new_id = id; |
995 | 724 | 808 | ||
996 | 809 | g_object_unref (self); | ||
997 | 725 | g_main_loop_quit (main_loop); | 810 | g_main_loop_quit (main_loop); |
998 | 726 | } | 811 | } |
999 | 727 | 812 | ||
1000 | @@ -1064,7 +1149,7 @@ | |||
1001 | 1064 | fail_unless (_contains(mechs3, "mechanism3")); | 1149 | fail_unless (_contains(mechs3, "mechanism3")); |
1002 | 1065 | } | 1150 | } |
1003 | 1066 | 1151 | ||
1005 | 1067 | if (info) | 1152 | if (info && pattern_ptr) |
1006 | 1068 | { | 1153 | { |
1007 | 1069 | signon_identity_info_free (pattern); | 1154 | signon_identity_info_free (pattern); |
1008 | 1070 | *pattern_ptr = signon_identity_info_copy (info); | 1155 | *pattern_ptr = signon_identity_info_copy (info); |
1009 | @@ -1309,6 +1394,7 @@ | |||
1010 | 1309 | signon_identity_query_info (idty, identity_info_cb, &info); | 1394 | signon_identity_query_info (idty, identity_info_cb, &info); |
1011 | 1310 | g_main_loop_run (main_loop); | 1395 | g_main_loop_run (main_loop); |
1012 | 1311 | 1396 | ||
1013 | 1397 | signon_identity_info_free (info); | ||
1014 | 1312 | g_object_unref (idty); | 1398 | g_object_unref (idty); |
1015 | 1313 | g_object_unref (idty2); | 1399 | g_object_unref (idty2); |
1016 | 1314 | 1400 | ||
1017 | @@ -1425,6 +1511,7 @@ | |||
1018 | 1425 | "mech1", | 1511 | "mech1", |
1019 | 1426 | test_regression_unref_process_cb, | 1512 | test_regression_unref_process_cb, |
1020 | 1427 | "Hi there!"); | 1513 | "Hi there!"); |
1021 | 1514 | g_hash_table_unref (session_data); | ||
1022 | 1428 | g_main_loop_run (main_loop); | 1515 | g_main_loop_run (main_loop); |
1023 | 1429 | 1516 | ||
1024 | 1430 | end_test (); | 1517 | end_test (); |
1025 | @@ -1453,6 +1540,7 @@ | |||
1026 | 1453 | tcase_add_test (tc_core, test_auth_session_query_mechanisms); | 1540 | tcase_add_test (tc_core, test_auth_session_query_mechanisms); |
1027 | 1454 | tcase_add_test (tc_core, test_auth_session_query_mechanisms_nonexisting); | 1541 | tcase_add_test (tc_core, test_auth_session_query_mechanisms_nonexisting); |
1028 | 1455 | tcase_add_test (tc_core, test_auth_session_process); | 1542 | tcase_add_test (tc_core, test_auth_session_process); |
1029 | 1543 | tcase_add_test (tc_core, test_auth_session_process_async); | ||
1030 | 1456 | tcase_add_test (tc_core, test_auth_session_process_failure); | 1544 | tcase_add_test (tc_core, test_auth_session_process_failure); |
1031 | 1457 | tcase_add_test (tc_core, test_auth_session_process_after_store); | 1545 | tcase_add_test (tc_core, test_auth_session_process_after_store); |
1032 | 1458 | tcase_add_test (tc_core, test_store_credentials_identity); | 1546 | tcase_add_test (tc_core, test_store_credentials_identity); |
1033 | 1459 | 1547 | ||
1034 | === added file 'tests/signon-glib-test-wrapper.sh' | |||
1035 | --- tests/signon-glib-test-wrapper.sh 1970-01-01 00:00:00 +0000 | |||
1036 | +++ tests/signon-glib-test-wrapper.sh 2016-05-19 15:30:34 +0000 | |||
1037 | @@ -0,0 +1,3 @@ | |||
1038 | 1 | #!/bin/sh | ||
1039 | 2 | |||
1040 | 3 | exec "$(pwd)/../libtool" --mode=execute $WRAPPER ./signon-glib-testsuite | ||
1041 | 0 | 4 | ||
1042 | === modified file 'tests/signon-glib-test.sh' | |||
1043 | --- tests/signon-glib-test.sh 2015-04-10 07:27:34 +0000 | |||
1044 | +++ tests/signon-glib-test.sh 2016-05-19 15:30:34 +0000 | |||
1045 | @@ -10,9 +10,16 @@ | |||
1046 | 10 | 10 | ||
1047 | 11 | #Environment variables for the test application | 11 | #Environment variables for the test application |
1048 | 12 | export G_MESSAGES_DEBUG=all | 12 | export G_MESSAGES_DEBUG=all |
1050 | 13 | export G_SLICE=debug-blocks | 13 | # If running the test executable under a wrapper, setup the tests so that the |
1051 | 14 | # wrapper can debug them more easily. | ||
1052 | 15 | if [ -n "$WRAPPER" ]; then | ||
1053 | 16 | export G_SLICE=always-malloc | ||
1054 | 17 | export CK_FORK="no" | ||
1055 | 18 | else | ||
1056 | 19 | export G_SLICE=debug-blocks | ||
1057 | 20 | fi | ||
1058 | 14 | 21 | ||
1060 | 15 | TEST_APP=./signon-glib-testsuite | 22 | TEST_APP="$TESTDIR/signon-glib-test-wrapper.sh" |
1061 | 16 | 23 | ||
1062 | 17 | # If dbus-test-runner exists, use it to run the tests in a separate D-Bus | 24 | # If dbus-test-runner exists, use it to run the tests in a separate D-Bus |
1063 | 18 | # session | 25 | # session |
PASSED: Continuous integration, rev:159 jenkins. qa.ubuntu. com/job/ libsignon- glib-ci/ 17/ jenkins. qa.ubuntu. com/job/ libsignon- glib-wily- amd64-ci/ 4 jenkins. qa.ubuntu. com/job/ libsignon- glib-wily- armhf-ci/ 4 jenkins. qa.ubuntu. com/job/ libsignon- glib-wily- armhf-ci/ 4/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ libsignon- glib-wily- i386-ci/ 4
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/libsignon- glib-ci/ 17/rebuild
http://