initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional
[platform/upstream/glib.git] / ChangeLog
1 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
2
3         * Makefile.decl: initialize automake variables EXTRA_DIST and
4         TEST_PROGS for unconditional appending via += in other makefiles.
5         define recursive test targets: test, test-report, perf-report,
6         full-report, as described here:
7       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
8
9         * Makefile.am:
10         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
11         * build/win32/Makefile.am, build/Makefile.am:
12         * docs/Makefile.am, docs/reference/Makefile.am:
13         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
14         * gmodule/Makefile.am, tests/Makefile.am:
15         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
16         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
17         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
18         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
19         * gthread/Makefile.am, glib/Makefile.am:
20         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
21
22         * glib/tests/Makefile.am: removed example testing rules.
23
24         * glib/tests/testing.c: conditionalized performance and slow tests.
25
26         * glib/gtestutils.h:
27         * glib/gtestutils.c: work around g_test_config_vars not changing its
28         exported value after value assignments, aparently due to symbol aliases.
29
30         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
31
32         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
33
34 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
35
36         Renamed gtestframework to gtestutils.
37
38         * glib/glib.h:
39         * glib/Makefile.am: added gtestutils.h to public includes.
40
41         * glib/gtestutils.c: include gtestutils.h.
42
43         * glib/gtestutils.h:
44         * glib/glib.symbols:
45         * glib/tests/testing.c: renamed gtestframework to gtestutils.
46
47         * glib/gtestframework.h: renamed to gtestutils.h.
48
49         * glib/gtestframework.c: renamed to gtestutils.c.
50
51 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
52
53         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
54
55 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
56
57         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
58
59 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
60
61         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
62
63 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
64
65         Added g_test_bug() and related API.
66
67         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
68
69         * gtestframework.h, gtestframework.c: added test message API and convenience
70         API to send test messages about bug URLs.
71
72 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
73
74         Added API to access test framework configuration.
75
76         * gtestframework.h, gtestframework.c: export testing configuration to test
77         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
78
79 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
80
81         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
82
83         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
84         restart test binaries when tests fail, resuming after the last processed test.
85         support --gtester-selftest to run gtester itself as test program.
86         support --test-arg=<arg> to pass args along to test programs. added
87         main_selftest() which does a simplistic fixture test. fail if exit
88         code of test programs is not 0.
89
90         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
91
92         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
93
94         * tests/Makefile.am: added test-report: for demonstration purposes.
95         added gtester-xmllint-check: and hooked it up into check:, this rule calls
96         gtester as test program, running it's selftest, and then uses xmllint to
97         validate the generate XML test log file.
98
99 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
100
101         gtester: implemented XML logging.
102
103         * glib/gtester.c: log test messages to XML output file. beautified normal test
104         result output.
105
106         * glib/gtestframework.c: fixed GTimer leak.
107
108         * glib/tests/Makefile.am: start gtester with --verbose.
109
110 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
111
112         tests/Makefile.am: execute test programs with gtester, add test: to check:
113
114 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
115
116         Fixed PLT symbol exports for gtestframework.h.
117
118         * glib/glib.symbols: added all exported gtestframework.h symbols.
119
120         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
121
122 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
123
124         glib/gtester.c: fixed debugging flag.
125
126 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
127
128         fixed bogus unistd.h include.
129
130 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
131
132         Implemented test log IPC.
133
134         * gtester.c: read and decode log messages from test binary child processes.
135         fixed GIOChannel and child watch handling to process all messages and avoid
136         hangs. pass --verbose and --quiet on to children, default to --quiet.
137
138         * gtestframework.h: export g_test_log_type_name().
139
140         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
141         bogus -o-option.
142
143 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
144
145         gtester.c: support test case listing through gtester.
146
147 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
148
149         gtestframework.c: fixed testpath matches for automatic root suite.
150
151 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
152
153         gtester.c: adapted to become a rudimentary test binary launcher.
154
155         * gtester.c: increased read buffer size to match common unix pipe buffer size.
156         added argument parsing and usage. changed io handling to capture and replicate
157         stdout. fixed io handlers to be cleaned up when the child process exits (catch
158         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
159         structure, to keep running until the child process exits and all io has been
160         processed. launch the test binaries given on the command line. don't quit when
161         a child couldn't be launched but --keep-going was specified.
162
163 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
164
165         Integrated gtester program into build process.
166
167         * Makefile.am: build and install gtester binary.
168
169         * gtester.c: fixed up coding style and removed hard wired test coded.
170
171 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
172
173         glib/gtester.c:Small -Wall fix
174
175 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
176
177         glib/gtester.c:Implemented nonblocking reading properly now
178
179 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
180
181         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
182
183 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
184
185         glib/gtester.c:Read the output of the child process
186
187 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
188
189         glib/gtester.c:Use g_spawn_async_with_pipes()
190
191 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
192
193         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
194
195 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
196
197         glib/gtester.c:Added a first revision of gtester
198
199 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
200
201         Implemented test log serialization.
202
203         * glib/gtestframework.h: added g_test_log*() API.
204
205         * glib/gtestframework.c: implement test log serialization.
206
207 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
208
209         Implemented test logging basics.
210
211         * glib/gtestframework.c: added --debug-log and --verbose, implemented
212         test information logging.
213
214         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
215
216 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
217
218         Implemented g_test_timer*().
219
220         * gtestframework.c: implemented g_test_timer*().
221
222         * tests/testing.c: added a g_test_timer*() test.
223
224 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
225
226         Implemented support for testpaths.
227
228         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
229
230         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
231
232 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
233
234         testing.c: added tests for the g_test_rand*() API.
235
236 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
237
238         Implemented g_test_rand*().
239
240         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
241         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
242         doubles and ranges.
243
244         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
245
246 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
247
248         testing.c: added tests for g_assert_cmphex() and forked test traps.
249
250 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
251
252         Implemented g_test_trap_fork() API.
253
254         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
255
256         * gtestframework.c: implemented g_test_trap_fork() API.
257
258 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
259
260         * glib/gtestframework.c:
261
262         that match a given test path.
263         (g_test_run_suite): run suite only if it matches the existing test paths.
264
265         * glib/tests/testing.c: minor rename.
266
267 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
268
269         GTest framework started.
270
271         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
272         includes elaborate assertions, performance report functions, test traps,
273         test timer, test random numbers, teardoiwn garbage collection functions
274         and general test case / test suite management APIs.
275
276         * glib/gtestframework.c: first test framework implementation. already covers
277         some test suite management APIs and assertion message implementations.
278
279         * glib/tests/testing.c: test program for the testing framework.
280
281         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
282         make test:.
283
284 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
285
286         glib/Makefile.am: build tests/ subdir after building libglib.
287
288 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
289
290         Fixed up internal 'g_test*' names.
291
292         * refcount/signals.c:
293         * refcount/objects.c:
294         * refcount/objects2.c:
295         * refcount/closures.c:
296         * refcount/properties.c:
297         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
298         to not clash with newly introduced g_test* API in glib.
299
300 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
301
302         Added gtestframework.[hc] and glib/tests/.
303
304 2007-11-20  Sven Neumann  <sven@gimp.org>
305
306         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
307         g_strjoin() to concatenate two strings.
308
309 2007-11-19  Marco Barisione  <marco@barisione.org>
310
311         * glib/gregex.c: When the compilation of a pattern fails in the error
312         message use the character offset and not the byte offset.
313
314         * glib/gregex.c: Pass an unsigned long instead of an int to
315         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
316         Sutou)
317
318 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
319
320         * configure.in: updated version number to 2.15.0 for development.
321
322 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
323
324         * glib/gbase64.c: Documentation improvements.  (#496518,
325         Stefan Schulze Frielinghaus)
326
327 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
328
329         * configure.in: Check whether assembler supports numerical local
330         labels.  
331
332         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
333         platforms where the assembler doesn't support numerical local
334         labels.  (#445362)
335
336 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
337
338         * docs/reference/glib/tmpl/markup.sgml:
339         * glib/gmarkup.h:
340         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
341         parser to prepend location information (ie: "Error on line %d, char
342         %d:") to errors generated by the GMarkupParser callbacks.
343
344         Closes #496046.
345
346 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
347
348         * docs/reference/glib/glib-sections.txt:
349         * glib/glib.symbols:
350         * glib/gerror.h:
351         * glib/gerror.c: new functions g_prefix_error and
352         g_propagate_prefixed_error.
353
354 2007-11-13  Cody Russell  <bratsche@gnome.org>
355
356         * docs/reference/gobject/gobject-docs.sgml:
357         * docs/reference/gobject/tut_gsignal.xml:
358         * docs/reference/gobject/tut_gtype.xml:
359         * docs/reference/gobject/tut_intro.xml:
360         * docs/reference/gobject/tut_tools.xml:
361         * docs/reference/gobject/tut_howto.xml:
362         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
363         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
364         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
365         superclass initializers don't run when an object is 
366         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
367         edits. (#490637, Adam Dingle)
368
369 2007-11-09  Matthias Clasen <mclasen@redhat.com>
370
371         * glib/gkeyfile.c: Coding style cleanups and doc 
372         improvements.  (#491979, #491982, Areg Beketovski)
373
374 2007-11-09  Matthias Clasen <mclasen@redhat.com>
375
376         * glib/giochannel.c: Coding style cleanups and doc 
377         improvements.  (#491975, Areg Beketovski)
378
379 2007-11-09  Matthias Clasen <mclasen@redhat.com>
380
381         * glib/gmain.c (g_main_context_iteration): Improve the
382         docs.  (#491974, Areg Beketovski)
383
384 2007-11-09  Matthias Clasen <mclasen@redhat.com>
385
386         * glib/gdate.c: Coding style fixes.
387
388 2007-11-09  Matthias Clasen <mclasen@redhat.com>
389
390         * configure.in: Add AM_PROG_CC_C_O.
391
392         * Makefile.am: Remove the install-exec-local hook and use
393         configexecincludedir_DATA instead, in an attempt to avoid
394         automake 1.9 <> 1.10 incompatibilities.
395
396         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
397         automake 1.10 complains.
398
399 2007-11-09  Matthias Clasen <mclasen@redhat.com>
400
401         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
402         Areg Beketovski)
403
404 2007-11-08  Matthias Clasen <mclasen@redhat.com>
405
406         * glib/gmain.c (g_main_context_release): 
407         (g_main_context_acquire):
408         (g_main_context_new): Fix the doc wording.  (#491957, 
409         #491965, #491966, Areg Beketovski)
410
411 2007-11-08  Matthias Clasen <mclasen@redhat.com>
412
413         * glib/gutils.c (g_set_application_name): Add a missing
414         since tag.  (#464259, Mark Doliner)
415
416 2007-11-08  Matthias Clasen <mclasen@redhat.com>
417
418         * glib/goption.c (g_option_context_new): Improve the docs.
419         (#436293, Vincent Untz)
420
421 2007-11-08  Matthias Clasen <mclasen@redhat.com>
422
423         * glib/gmain.c (g_main_loop_quit): Expand the docs 
424         a bit.  (#317775, Søren Sandmann)
425
426 2007-11-08  Matthias Clasen <mclasen@redhat.com>
427         
428         * autogen.sh: Accept automake 1.10, too
429
430         * mkinstalldirs: Temporarily add this script, to fix building
431         from svn.
432
433         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
434         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
435
436 2007-11-08  Matthias Clasen <mclasen@redhat.com>
437
438         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
439
440 2007-11-08  Matthias Clasen <mclasen@redhat.com>
441
442         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
443         shift state with AIX iconv().  (#467537)
444
445 2007-11-08  Matthias Clasen <mclasen@redhat.com>
446
447         * configure.in:
448         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
449         and in AM_PATH_GLIB_2_0 to be consistent with the use of
450         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
451         Loïc Minier)
452
453 2007-11-08  Matthias Clasen <mclasen@redhat.com>
454
455         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
456         out parameters uninitialized.  (#490061, Benjamin Otte)
457
458 2007-11-07  Matthias Clasen <mclasen@redhat.com>
459
460         * glib/gmain.c (g_main_context_unref): Don't leak the
461         condvar.  (#479724, Areg Beketovski)
462
463 2007-11-07  Matthias Clasen <mclasen@redhat.com>
464
465         * glib/glib.symbols:
466         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
467         New function, to get the stack of open elements.  (#452887,
468         Ryan Lortie)
469
470 2007-11-07  Matthias Clasen <mclasen@redhat.com>
471
472         * glib/gkeyfile.[hc]: Make some functions that take
473         a GError return boolean instead of void.  (#375651, Matt Barnes)
474
475 2007-11-07  Matthias Clasen <mclasen@redhat.com>
476         
477         * autogen.sh: Use automake 1.9
478
479         * acinclude.m4:
480         * configure.in: Move some inter-*.m4 includes from
481         configure.in to acinclude.m4 to avoid warnings when
482         using automake 1.9.  (#449937)
483
484 2007-11-07  Matthias Clasen <mclasen@redhat.com>
485
486         === Branch for 2.14 ===