1 2006-08-19 Aaron Bockover <abockover@novell.com>
3 * test/test.c: Perform iterations at the test level, only output one
4 report for all iterations of tests in a group to produce more usable
5 output; add timing for the tests and group; added get_timestamp for
8 * test/test.h: Removed run_test as it should only be called from
9 run_group, added get_timestamp
11 * test/Makefile.am: Added -DDRIVER_NAME
13 * test/test-both: simple script to run both drivers with the same options
15 * test/driver.c: Iterations are now run at the test level, show a global
16 status (OK/FAIL) indicator
18 * test/README: Updated
20 * configure.ac: Renamed from configure.in as configure.in naming
21 convention is deprecated in favor of configure.ac
23 * autogen.sh: s/configure.in/configure.ac/
25 2006-08-19 Miguel de Icaza <miguel@novell.com>
27 * Makefile.am: Removed MAINTAINERCLEANFILES that was too
28 aggresive, it failed make distcheck and the resulting tarball was
31 * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
32 GSIZE_FORMAT macros, and move them into src/eglib-config.h
34 Moved also gssize and gsize to be arch specific. This should fix
35 the 32/64 problems that Jon Chambers reported.
37 * configure.in: test for pointer size, define the various values
38 depending on 32 vs 32/64 worlds, might need further porting in the
41 Change package name to eglib
43 * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
46 * test/string-util.c: fix leak for valgrind tests.
48 * test/tests.h: New size test, for testing datatypes.
50 * test/sizes.c: New tests.
52 2006-08-19 Aaron Bockover <abockover@novell.com>
54 * test/README: Added quick guide on adding new tests/groups to the
55 driver and some examples on how to perform various tests with the driver
57 2006-08-18 Aaron Bockover <abockover@novell.com>
59 * test/driver.c: Added getopt support and code timing, among other
60 nice features to make testing/profiling easier
62 * test/test.c: Add support for suppressing output (quiet) and
63 define RESULT, FAILED, and OK
66 * src/glist.c: Added g_list_nth_data implementation
73 * test/list.c: Use RESULT, FAILURE, and OK for tests
75 2006-08-18 Miguel de Icaza <miguel@novell.com>
77 * src/gstring.c (g_string_truncate): Implement truncate.
78 (g_string_prepend): implement.
80 Fix various bugs uncovered by new tests.
82 * src/glib.h: introduce gssize type, the signed one. Important.
84 * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
85 defines that we can use to check on the host OS.
87 2006-08-18 Aaron Bockover <abockover@novell.com>
90 * test/driver.c: Support pass/fail logging on tests to show group report
92 2006-08-18 Aaron Bockover <abockover@novell.com>
95 * test/test.h: Added result() to be used in place of g_strdup_printf(),
96 it's shorter to write and allows the duped string to be freed safely;
97 added license header to file
99 * test/driver.c: Added license header to file
101 * test/string-util.c:
104 * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
106 2006-08-18 Aaron Bockover <abockover@novell.com>
108 * src/gptrarray.c: Implemented g_ptr_array_sort
110 * test/ptrarray.c: Added sort test
112 * test/driver.c: Added --help; support running N iterations and allow
113 selecting which test groups to run; uses the test group table in tests.h
115 * test/tests.h: Added group table
118 * test/test.c: Using a Group structure and table, removed run_groups
119 as we only need run_group now
121 * test/slist.h: Removed, not needed, tests/groups defined in tests.h
123 2006-08-18 Miguel de Icaza <miguel@novell.com>
125 * src/unicode.c: New file, to host unicode code, it will throw as
126 this code is no longer used in the Mono runtime anyways.
128 * src/glib.h: Use stdint.h types, a lot of the good stuff is
131 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
133 * src/glist.c: Implemented. Missing remove,
134 remove_link and insert_before.
136 * test/list.c: Tests for GList.
138 2006-08-17 Aaron Bockover <abockover@novell.com>
140 * src/gptrarray.c: Implemented g_ptr_array_remove and
141 g_ptr_array_remove_index
143 * test/other: Removed, rewritten in Makefile.am
145 * test/Makefile.am: Build test-eglib against local eglib and
146 test-glib against GLib 2.0 (replaces 'other')
148 * test/ptrarray.c: Added tests for g_ptr_array_remove and
149 g_ptr_array_remove_index
151 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
153 * src/gslist.c: Added MIT license.
154 (g_slist_insert_sorted): Forgot the case where the data is
155 appended to the end of the list.
157 * test/slist.c (test_slist_insert_sorted): Fix the test.
159 2006-08-17 Aaron Bockover <abockover@novell.com>
161 * src/gptrarray.c: Added g_ptr_array_set_size implementation
163 * test/ptrarray.c: Added test for g_ptr_array_set_size
165 2006-08-17 Miguel de Icaza <miguel@novell.com>
167 * src/glib.h: A handful of extra macros
169 * configure.in, src/eglib-config.h.in: Set some system-specific
170 settings that are probed at configure time.
172 2006-08-17 Aaron Bockover <abockover@novell.com>
174 * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
176 * src/glib.h: Added GPtrArray signatures
178 * src/Makefile.am: Added gptrarray.c to build
183 * test/Makefile.am: Add ptrarray tests for available functionality
185 2006-08-17 Aaron Bockover <abockover@novell.com>
188 * test/test.c: Added group iterator/test driver functionality
190 * test/driver.c: Added groups to run using new test functionality
194 * test/string-util.h: Test group definitions for string util/hashtable
198 * test/hash.c: Added test definition table
200 * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
202 * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
204 * src/glib.h: Added missing function signatures
206 * src/Makefile.am: added -D_FORTIFY_SOURCE=2
208 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
210 * src/gslist.c (g_slist_remove_link): I misread the function
211 signature. Re-implemented.
212 (g_slist_delete_link): Implemented.
213 (g_slist_reverse): Implemented.
214 (g_slist_insert_sorted): Implemented.
216 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
218 * src/gslist.c (g_slist_find):
221 (g_slist_remove_link): Implemented.
223 * test/slist.c: Tests for GSList.
225 2006-08-17 Raja R Harinath <harinath@gmail.com>
227 * src/gslist.c (g_slist_free_1): New. Free a single list node.
228 (g_slist_free): Use it to free the list nodes. Don't free the
229 data, since the list doesn't own it.
230 (g_slist_append): Convert into a one-liner.
231 (g_slist_foreach): Remove redundant null check.
232 (g_slist_last): Actually return the last node.
233 (g_slist_copy): Simplify.
234 * src/gslist.h (g_slist_free_1): Add.
236 2006-08-16 Duncan Mak <duncan@a-chinaman.com>
240 * src/gslist.h: First attempt at implementing GSList, incomplete.
242 * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
243 * src/glib.h: Add GFunc definition. #include the new gslist.h.
245 2006-08-16 Miguel de Icaza <miguel@novell.com>
247 * src/Makefile.am: Added -Wall,-Werror, corrected lots of
250 * src/gstring.c: Gstring implementation.
252 * test/str.c (test_gstring): string tests.
254 2006-08-16 Aaron Bockover <abockover@novell.com>
256 * src/gstr.c: Added g_strsplit implementation
258 * test/driver.c: Run the split test
260 * test/str.c: Added a test for g_strsplit
264 * test/Makefile.am: Added MAINTAINERCLEANFILES
266 2006-08-16 Miguel de Icaza <miguel@novell.com>
268 * src/gouput.c: Implement some output routines, update missing
271 * test: Add test driver, and initial tests.
273 2006-08-15 Miguel de Icaza <miguel@novell.com>
275 * src/ghashtable.c: Implement most of this, it is completely
276 untested at this point.