1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
|
2006-07-13 Simon Janes <simon.janes@gmail.com>
* Removed guile-unit and tested c-unit on Ubuntu. Updates with newer
Autoconf tools.
2002-04-23 Simon Janes <simon@rabbitdevelopment.com>
* guile-unit from JLM added to package.
2002-04-15 James LewisMoss <dres@lewismoss.org>
* c-unit/autounit.h (au_return_on_fail): Add #define no return
from a func for a failing au_assert.
2002-04-10 James LewisMoss <dres@lewismoss.org>
* autounit.m4.in: fix bugs.
* c-unit/autounit.h (au_assertrel_uint64): renamed from ulong
(au_asserteq_uint64): renamed from ulong
(au_asserteq_int): renamed from long. Just have one "int" (rather
than long, int, uint). Keep the uint64 since that is a special
case.
(au_assertrel_int): rename from long
Remove au_asserteq_uint defs.
* c-unit/TEST/test-test.c (test_au_default_status_called): add
tests for assert_fail and asseert_succeed
* c-unit/autounit.h (au_assert_succeed): Add defs
(au_assert_fail): add defs
2002-04-04 James LewisMoss <dres@lewismoss.org>
* doc/au-c-unit.texi (C-Unit): change testcase -> suite
(C-Unit): add comment about au_test_ref
* c-unit/TEST/test-suite.c (test_au_add_test): delete_suite when
done
(test_au_remove_test): don't delete test. It's already been freed
(test_au_remove_ref_test): new func to check ref counting
* c-unit/test.c (au_test_set_fork_mode): set parts to 0 after free.
* c-unit/suite.c (au_delete_suite): do test unref.
(au_add_test): add test_ref
(au_remove_test): add test_unref
* c-unit/test.c (au_run_test_fork): fix memory leak. Free
temporary test object.
(au_test_unref): new func
(au_test_ref): new func
(au_test_get_for_mode): new func
(au_new_test): initialize test_data and ref_count
* c-unit/autounit.h (au_assert_not_null): add fallbacks for
systems that don't support var args in defined macros
2002-04-02 James LewisMoss <dres@lewismoss.org>
* c-unit/TEST/test-suite.c convert to using adhoc test strategy
from test-test.c
* c-unit/suite.c (au_test_failed_check): decrement total_tests
(au_add_test): increment total_tests
(au_suite_ok_report): add output of failed/total of assertions and
tests
(au_suite_ok_report): add total tests
* c-unit/autounit.h (gchar*): add total_tests and failed_tests to
suite struct. Upping binary number.
* c-unit/suite.c (au_suite_gather_totals): rename from
au_suite_elapsed_time. Non backwards compatible binary change,
but old method not published for use.
(au_suite_reset_totals): rename from au_suite_reset_elapsed_time.
same binary problem as above.
* c-unit/test.c (au_run_test_fork): Surround WCOREDUMP usage with
#ifdef WCOREDUMP/#endif as indicated in man page.
(au_run_test_fork): rename the waidpid status variable to
childstatus to avoid same name as a parameter.
2002-03-29 James LewisMoss <dres@lewismoss.org>
* c-unit/assert.c (au_asserteq_guint64_int_v): new func.
(au_asserteq_str_int_v): new func
(au_asserteq_str_int): move logic to _v version
(au_asserteq_guint64_int): move logic to _v version
(au_asserteq_gint64_int_v): new func.
(au_asserteq_gint64_int): move logic to _v version
(au_asserteq_char_int_v): new func
(au_asserteq_char_int): move logic to _v version
(au_asserteq_obj_int_v): new func
(au_asserteq_obj_int): move logic yada yada
2002-03-28 James LewisMoss <dres@lewismoss.org>
* c-unit/TEST/test-test.c (test_au_str_assert_complex): update
test to relect change that for strings NULL != NULL
* c-unit/assert.c (au_asserteq_str_int): Forgot to set other two
au_assert_true's to au_assert_true_v
(au_asserteq_obj_int): same as above
convert all assert funcs to return gboolean.
(au_asserteq_obj_int): if both null they are not equal.
(au_asserteq_str_int): same. For assertion purposes Bill Gribble
pointed out it made more sense for them to fail and I agree.
2002-03-26 James LewisMoss <dres@lewismoss.org>
* c-unit/suite.c (au_suite_fail_report): remove \n before FAIL.
(au_suite_ok_report): remove \n before OK
* c-unit/assert.c (au_asserteq_obj_int): check for null
compare_func and if it is just compare the pointers for equality.
* c-unit/autounit.h (au_assert_not_null): add assert_null and
assert_not_null.
* c-unit/suite.c (au_suite_fail_report): add space after test name.
* c-unit/assert.c (au_assert_true): add \n at end of string. oops
2002-03-25 James LewisMoss <dres@lewismoss.org>
* c-unit/assert.c (au_asserteq_str_int): new func
(au_asserteq_guint64_int): new func
(au_asserteq_gint64_int): new func.
(au_asserteq_obj_int): new func
(au_asserteq_obj_int): add string_func functions to turn the
objects into strings
(au_asserteq_gint64_int): complexify message to include tested numbers.
(au_asserteq_guint64_int): same
(au_asserteq_str_int): same, but with strings
(au_asserteq_str_int): add quotes around strings
(au_asserteq_guint64_int): same
(au_asserteq_gint64_int): same
(au_asserteq_char_int): new func since chars don't print as ints
(au_asserteq_obj_int): add quotes around strings
* c-unit/test.c (au_new_test): set status function pointers.
(au_default_fail_method): new method called at failure
(au_default_succeed_method): new method called at success.
2002-03-24 James LewisMoss <dres@lewismoss.org>
* c-unit/test.c (au_new_test): Set suite struct member to NULL.
2002-03-22 James LewisMoss <dres@lewismoss.org>
* configure.in: change unique file to autounit.h
* c-unit/test.c (au_add_test_group): new func from the
c-unit-suite code
* c-unit/c-unit-suite.c (cus_setup_testcase): move creation of
stuff to each test
(cus_teardown_testcase): move deletion of stuff to each test
* c-unit/test.c (au_delete_testcase): add removal and free of
test_t's.
2002-03-21 James LewisMoss <dres@lewismoss.org>
* c-unit/au-netstring.c: little reording so everything is
consistent.
(au_read_netstring): rearrange and add looping read to make sure
we get everything.
* configure.in: up version to match upstream
2002-03-20 Simon Janes <simon@rabbitdevelopment.com>
* Incorporated James' patch and bumped revision to 0.11.0 because
a different header is now used.
2002-03-20 James LewisMoss <dres@lewismoss.org>
* autounit.m4.in (AUTOUNIT_CFLAGS): fix def to actually work.
* doc/au-c-unit.texi (C-Unit): Add instructions for using the
autoconf macros.
2002-03-07 James LewisMoss <dres@lewismoss.org>
* c-unit/au-netstring.c: remove strndup implementation.
* c-unit/c-unit-suite.c: remove strndup test.
remove strndup entry from table.
* c-unit/autounit.h (au_pop_netstring): remove strndup check.
using g_strndup
* debian/libautounit-dev/usr/include/autounit/autounit.h
(au_pop_netstring): remove strndup check. using g_strndup.
Mon Sep 17 12:09:19 2001 Simon Janes <spj@recursism.com>
* AUTHORS: Added names/addresses of new contributors (however small.)
Jon Schulz contributed a fork-mode patch and Wesley Hosking information
about making a Debian package which I haven't digested yet. :)
Mon Sep 17 11:32:08 2001 Simon Janes <spj@recursism.com>
* c-unit/c-unit-suite.c: Unit tests for builtin-strndup and
au_set_fork_mode.
* configure.in: Check for strndup existance.
Tue Aug 21 10:54:23 2001 Simon Janes <spj@recursism.com>
* c-unit/test.h: Removed use of GNU CPP extention __STRING which
caused greif on Solaris compiles.
* c-unit/au-netstring.c: Removed some references to some GNU
extentions that were causing some chokes on Solaris. (strndup)
Sat May 5 22:17:16 2001 Simon Janes <spj@recursism.com>
* c-unit/au-netstring.c: The mysterious corruption was caused by au_read_netstring not properly terminating the string it was building and returning a bogus GString. That is now fixed.
* c-unit/test.c: Tested "core" reporting. I think a nice todo would be to copy the core file somewhere, depending on how large it is maybe.
* doc/au-c-unit.texi (C-Unit): Added some simple documentation for the most commonly used functions used "publicly" by developers.
Mon Apr 30 19:19:39 2001 Simon Janes <spj@recursism.com>
* c-unit/test.c: Added some child-core/signal checks, haven't
tested them, my mind's on other things.
Sun Apr 29 18:37:52 2001 Simon Janes <spj@recursism.com>
* c-unit/test.c: Long hiatus while I was moving. Test harness now
forks, but needs to do some housekeeping.
Fri Mar 30 00:16:43 2001 Simon Janes <spj@recursism.com>
* c-unit/test.c: Worked on cleaning up memory leaks and discovered what I think might be a GLib bug with g_timer_destroy. :(
* c-unit/c-unit-suite.c: New tests for various netstring conversion functions. unserialize test works.
Tue Mar 13 21:59:50 2001 Simon Janes <spj@recursism.com>
* c-unit/test.c: au_new_test no longer automatically adds the test to the testcase.
* c-unit/c-unit-suite.c: Changed assumptions of au_new_test() to *NOT* add the test to the testcase.
Sat Mar 10 14:34:18 2001 Simon Janes <spj@recursism.com>
* c-unit/c-unit-suite.c: Removed large amount of hand coded test setup boilerplate and replaced with static initialization. This found a bug. :)
* c-unit/test.c: Migrated netstring functions into their own source file. Fixed a bug in au_new_test().
Thu Mar 1 23:41:58 2001 Simon Janes <spj@recursism.com>
* test/Makefile.am: Removed c-unit-suite.
* doc/Makefile.am (info_TEXINFOS): Renamed c-unit.texi into more generalized autounit.texi and made new document outline.
* c-unit/Makefile.am (check_PROGRAMS): Moved c-unit-suite closer to where c-unit code is defined.
Wed Feb 28 00:04:22 2001 Simon Janes <spj@recursism.com>
* doc/Makefile.am: c-unit.html regenerated w/e c-unit.info is changed.
c-unit.info regenerated w/e it's included components change.
Tue Feb 27 23:25:28 2001 Simon Janes <spj@recursism.com>
* Makefile.am (html): Petter Reinholdsten <pere@hungry.com>
suggested a patch for installing documentation.
Fri Feb 23 00:13:28 2001 Simon Janes <spj@recursism.com>
* doc/c-unit.texi: tiny little manual, woefully incomplete.
* test/c-unit-suite.c: setup/teardown functions and removal of
common setup/teardown logic from existing tests.
* c-unit/test.c: setup/teardown invocations for each test.
Mon Feb 19 11:02:08 2001 Simon Janes <spj@recursism.com>
* c-unit/test.c: end-of-test cleanups (remove/delete tests)
reformatted reports to a little more intuitive.
Sun Feb 18 15:23:32 2001 Simon Janes <spj@recursism.com>
* configure.in: added check for 'glib-config' program.
* README: Description of what this is and some future goals.
|