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