9a0037ff78cf1751fd9a91b36cc9efc657b77a60
[bpt/guile.git] / test-suite / ChangeLog
1 2001-03-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
2
3 * lib.scm (run-test-exception): Preserve the original error's
4 stack for re-throwing.
5
6 2001-03-04 Marius Vollmer <mvo@zagadka.ping.de>
7
8 * tests/syntax.test ("let,duplicate bindings", "let*,duplicate
9 bindings", "letrec,duplicate bindings"): Expect to pass, bug has
10 been fixed.
11
12 2001-03-03 Marius Vollmer <mvo@zagadka.ping.de>
13
14 * tests/syntax.test ("duplicate formals"): New category, move
15 appropriate tests here. Expect them to pass.
16 ("empty parentheses"): Expect to pass, bug has been fixed.
17
18 * tests/alist.test: Use "'()" instead of "()" in all places
19 where the empty list is meant.
20
21 2001-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
22
23 * lib.scm (exception:unbound-var, exception:wrong-num-args): New
24 exported constants.
25
26 * tests/r4rs.test: Make sure that no bindings for x and y exist
27 after the file is loaded.
28
29 * tests/syntax.test: New file.
30
31 * tests/exceptions.test, tests/syntax.test, tests/eval.test:
32 Moved the test cases that are related to guile's syntactic forms
33 from tests/exceptions.test to tests/syntax.test. Moved tests
34 related to evaluation and application to tests/eval.test.
35
36 * tests/exceptions.test: Added some test cases that check guile's
37 exception handling.
38
39 2001-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
40
41 * tests/exceptions.test, tests/numbers.test: Moved the number
42 related test cases from tests/exceptions.test to
43 tests/numbers.test.
44
45 * tests/numbers.test: Added a test case.
46
47 2001-03-01 Dirk Herrmann <D.Herrmann@tu-bs.de>
48
49 * tests/symbols.test: New file.
50
51 (exception:immutable-string): New constant. Currently, this is a
52 dummy since guile does not have immutable strings.
53
54 * tests/exceptions.test, tests/strings.test, tests/symbols.test:
55 Moved the string related test cases from tests/exceptions.test to
56 tests/strings.test and the symbol related test cases to
57 tests/symbols.test.
58
59 * tests/strings.test: Copyright notice updated. Added a couple
60 of test cases.
61
62 (exception:immutable-string): New constant. Currently, this is a
63 dummy since guile does not have immutable strings.
64
65 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
66
67 * tests/exceptions.test: Use expect-fail-exception to indicate
68 test cases where exceptions should occur, but don't.
69
70 (exception:bad-bindings, exception:bad-formals, exception:bad-var,
71 exception:missing/extra-expr): New constants.
72
73 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
74
75 * tests/reader.test, tests/exceptions.test: Moved the reader
76 related test cases from tests/exceptions.test to
77 tests/reader.test.
78
79 * tests/reader.test (exception:eof, exception:unexpected-rparen):
80 New constants.
81
82 * tests/exceptions.test (read-string, x:eof, x:unexpected-rparen):
83 Removed.
84
85 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
86
87 * lib.scm (signals-error?, signals-error?*): Removed.
88
89 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
90
91 * lib.scm: Added comment about new convenience functions/macros
92 to test for exceptions.
93
94 (exception:out-of-range, exception:wrong-type-arg): New exported
95 constants.
96
97 (run-test-exception): New function.
98
99 (pass-if-exception, expect-fail-exception): New exported macros.
100
101 * tests/environments.test: Fixed tests that were checking for
102 exceptions when set!ing an unbound symbol.
103
104 (exception:unbound-symbol): New constant.
105
106 * tests/hooks.test (catch-error-returning-true, pass-if-not,
107 catch-error-returning-false), tests/weaks.test
108 (catch-error-returning-true, pass-if-not,
109 catch-error-returning-false): Removed. The macro pass-if-not was
110 not used. The macro catch-error-returning-false is unnecessary
111 since exceptions are caught by the test-suite anyway. The
112 functionality of catch-error-returning-true is provided by the new
113 convenience macro pass-if-exception.
114
115 * tests/hooks.test (exception:wrong-num-hook-args): New constant.
116 Maybe a standard wrong-num-arg exception should be thrown instead
117 of a misc-error?
118
119 * tests/reader.test (try-to-read): Replaced by read-string.
120
121 (read-string): New function.
122
123 * tests/alist.test, tests/environments.test, tests/eval.test,
124 tests/hooks.test, tests/list.test, tests/ports.test,
125 tests/reader.test, tests/strings.test, tests/weaks.test: Replace
126 tests for exceptions with the new convenience macros.
127
128 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
129
130 * tests/alist.test: Remove redundant test name prefix.
131
132 2001-02-28 Dirk Herrmann <D.Herrmann@tu-bs.de>
133
134 * lib.scm (pass-if): Tests shall return a boolean value.
135
136 * tests/bit-operations.test (documented?), tests/common-list.test
137 (documented?), tests/environments.test (documented?),
138 tests/eval.test (documented?), tests/gc.test (documented?),
139 tests/numbers.test (documented?), tests/guardians.test,
140 tests/hooks.test, tests/interp.test, tests/weaks.test: Make sure
141 that tests return a boolean value.
142
143 * tests/list.test (documented?): New function, replace all checks
144 for documentation with calls to this function.
145
146 2001-02-27 Dirk Herrmann <D.Herrmann@tu-bs.de>
147
148 * lib.scm (data-file): Remove from export list.
149
150 2001-02-22 Thien-Thi Nguyen <ttn@revel.glug.org>
151
152 * tests/exceptions.test (syntax lambda): Renamed from (lambda).
153 (syntax lambda cond-arrow-proc): Renamed from (lambda cond-arrow-proc).
154 (syntax reading): New section.
155 (syntax let*): New section.
156 (syntax letrec): New section.
157 (syntax set!): New section.
158 (syntax misc): New section.
159 (bindings unbound): New section.
160 (bindings immutable-modification): New section.
161 (bindings let): New section.
162 (bindings let*): New section.
163 (bindings letrec): New section.
164
165 * tests/exceptions.test: New file.
166
167 2001-02-08 Marius Vollmer <marius.vollmer@uni-dortmund.de>
168
169 * guile-test: Use (ice-9 and-let-star) instead of (ice-9
170 and-let*).
171
172 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
173
174 This patch fixes things that I have broken with the last one :-(
175
176 * guile-test (test-suite): New variable.
177
178 (data-file-name): New function. Has the same purpose as the
179 former function data-file from lib.scm. Moved here in order to
180 have all file name handling at the same place. In contrast to the
181 former 'data-file function, it is not checked whether a file
182 exists. This allows to use this function also for file names of
183 files that are still to be created.
184
185 (test-file-name): Use the global 'test-suite variable.
186
187 (main): Initialize 'test-suite instead of a local variable.
188
189 * lib.scm: Don't import paths any more.
190
191 (data-file): Removed. Resurrected with a sligtly different
192 functionality as 'data-file-name' in guile-test.
193
194 * r4rs.scm: For all references to temporary file, make use of
195 data-file-name.
196
197 2001-01-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
198
199 The following patch was sent by Thien-Thi Nguyen and a little bit
200 modified by me.
201
202 * guile-test: Usage and installation comments improved. Added
203 support for --test-suite and --debug command line options.
204
205 (default-test-suite): Added to allow for simplified
206 configurability. No need to load the paths file any more.
207
208 (enable-debug-mode): New function. Will be called when the
209 --debug command line option is given.
210
211 (test-root): Removed. The test directory has to be fully given.
212 This allows for arbitrarily named test directories.
213
214 (test-file-name, enumerate-tets): Take the test directory as a
215 paramter instead of using the global variable 'test-root'.
216
217 (main): Handle the new command line options. Return an exit code
218 depending on whether all tests came out as expected.
219
220 * README: Updated.
221
222 * paths.scm: Removed.
223
224 2001-01-24 Gary Houston <ghouston@arglist.com>
225
226 * tests/ports.test: include (ice-9 rdelim) module.
227
228 2001-01-18 Dirk Herrmann <D.Herrmann@tu-bs.de>
229
230 * tests/numbers.test: Converted to do real boundary testing.
231
232 2001-01-17 Dirk Herrmann <D.Herrmann@tu-bs.de>
233
234 * tests/bit-operations.test: Added.
235
236 2000-11-03 Dirk Herrmann <D.Herrmann@tu-bs.de>
237
238 * tests/gc.test: Added.
239
240 2000-10-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
241
242 * tests/strings.test: string=? is fixed.
243
244 2000-10-13 Dirk Herrmann <D.Herrmann@tu-bs.de>
245
246 * tests/list.test: Removed references to sloppy-mem(q|v|ber)
247
248 2000-09-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
249
250 * tests/strings.test: Added a test to help remember that string=?
251 and friends need fixing.
252
253 2000-09-12 Dirk Herrmann <D.Herrmann@tu-bs.de>
254
255 * tests/environments.test: For tests that rely on garbage
256 collection, conservative scanning can be a problem. Add a comment
257 for these tests and make them turn out unresolved if things don't
258 work as expected.
259
260 2000-09-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
261
262 * tests/environments.test: Finished and cleaned up the tests for
263 the leaf environments. Added a complete set of testcases for the
264 leaf environment based eval environments. Started with the tests
265 for the import environments.
266
267 2000-08-25 Dirk Herrmann <D.Herrmann@tu-bs.de>
268
269 * tests/environments.test: Added.
270
271 2000-08-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
272
273 * lib.scm (pass-if, expect-fail): Generalized to allow a sequence
274 of expressions.
275
276 * tests/eval.test: Fix documentation test.
277
278 2000-06-30 Dirk Herrmann <D.Herrmann@tu-bs.de>
279
280 * tests/list.test: Added tests for list-ref, list-set! and
281 list-cdr-set!
282
283 2000-06-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
284
285 * tests/common-list.test: Added.
286
287 2000-06-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
288
289 * tests/eval.test: Added.
290
291 2000-06-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
292
293 * tests/list.test: Use cons* instead of list*.
294
295 2000-06-13 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
296
297 * tests/numbers.test, tests/list.test: Updated for new
298 documentation module.
299
300 2000-05-26 Dirk Herrmann <D.Herrmann@tu-bs.de>
301
302 * tests/hooks.test: make-hook-with-name is deprecated.
303
304 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
305
306 * tests/list.test, tests/numbers.test: Added.
307
308 2000-05-08 Dirk Herrmann <D.Herrmann@tu-bs.de>
309
310 * guile-test: Eliminate use of catch-test-errors.
311
312 * lib.scm: Adopted a couple of nice ideas from Greg.
313
314 (pass, fail, expect-failure, expect-failure-if,
315 expect-failure-if*, catch-test-errors, catch-test-errors*,
316 expected-failure-fluid, pessimist?): Removed.
317
318 (run-test, expect-fail, result-tags, important-result-tags):
319 Added.
320
321 (report, make-count-reporter, print-counts, make-log-reporter,
322 full-reporter, user-reporter): Reporters take two mandatory
323 arguments and make use of the tag descriptions in result-tags and
324 important-result-tags.
325
326 * tests/alist.test, tests/hooks.test, tests/ports.test,
327 tests/weaks.test: Don't use catch-test-errors and
328 expect-failure-if.
329
330 2000-05-05 Dirk Herrmann <D.Herrmann@tu-bs.de>
331
332 * mambo.test: Removed dummy file.
333
334 2000-03-31 Gary Houston <ghouston@arglist.com>
335
336 * tests/ports.test (non-blocking-I/O): a couple more details:
337 a) combine the O_NONBLOCK flag with the default flags instead
338 of replacing them. b) check EWOULDBLOCK as well as EAGAIN.
339
340 2000-03-22 Jim Blandy <jimb@savonarola.red-bean.com>
341
342 * lib.scm: Doc fixes.
343
344 Sun Jan 16 14:01:51 2000 Greg J. Badros <gjb@cs.washington.edu>
345
346 * paths.scm: Assume that ~/guile-core/test-suite is the location
347 of the test suite now.
348
349 * tests/version.test: Added -- version.c had 0% coverage before,
350 now at 100%.
351
352 * tests/chars.test: Added -- needed test of char-is-both?.
353
354 1999-12-22 Greg Harvey <Greg.Harvey@thezone.net>
355
356 * tests/weaks.test, tests/hooks.test: Added.
357
358 1999-12-18 Greg Harvey <Greg.Harvey@thezone.net>
359
360 * tests/alist.test: Added.
361
362 Fri Dec 17 12:14:10 1999 Greg J. Badros <gjb@cs.washington.edu>
363
364 * tests/c-api.test: Refine the list of files that are checked in
365 the seek-offset-test. Was just using files that end in "c", but
366 that caught the new ".doc" files, too, so make sure that files end
367 in ".c" before requiring that they include unistd.h if they
368 reference SEEK_(SET|CUR|END).
369
370 1999-10-24 Gary Houston <ghouston@freewire.co.uk>
371
372 * tests/ports.test ("string ports"): test seeking/unreading from
373 an input string and seeking an output string.
374
375 1999-10-20 Gary Houston <ghouston@freewire.co.uk>
376
377 * tests/ports.test: in seek/tell test on input port, also test
378 that ftell doesn't discard unread chars.
379
380 1999-10-18 Gary Houston <ghouston@freewire.co.uk>
381
382 * tests/ports.test: add seek/tell tests for unidirectional ports.
383
384 1999-09-25 Jim Blandy <jimb@savonarola.red-bean.com>
385
386 * tests/reader.test: Check that number->string checks its radix
387 properly.
388
389 1999-09-20 Jim Blandy <jimb@savonarola.red-bean.com>
390
391 * tests/ports.test: Check that our input functions cope when
392 current-input-port is closed.
393
394 * tests/regexp.test: Check regexp-substitute/global when there are
395 no matches. (Duh.)
396
397 1999-09-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
398
399 * tests/c-api.test: New file. Add test to check that all source
400 files which use SEEK_SET, SEEK_CUR, and SEEK_END include unistd.h.
401
402 1999-09-14 Gary Houston <ghouston@freewire.co.uk>
403
404 * tests/ports.test: test non-blocking I/O.
405
406 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
407
408 * tests/strings.test: Add test for substring-move! argument checking.
409
410 * lib.scm (signals-error?, signals-error?*): New macro and function.
411 * tests/reader.test: Use them.
412
413 * tests/interp.test: Add copyright notice.
414
415 * tests/reader.test: New test file.
416
417 * tests/regexp.test: New test file.
418
419 1999-09-06 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
420
421 * tests/interp.test: Added tests for evaluation of closure bodies.
422
423 1999-09-03 James Blandy <jimb@mule.m17n.org>
424
425 * tests/multilingual.nottest: New file, which we will turn into a
426 test file once we actually have multilingual support to test.
427
428 * tests/load.test: New test file.
429
430 1999-08-30 James Blandy <jimb@mule.m17n.org>
431
432 * tests/strings.test: New test file.
433
434 1999-08-29 Gary Houston <ghouston@easynet.co.uk>
435
436 * tests/ports.test: test unread-char and unread-string.
437
438 1999-08-19 Gary Houston <ghouston@easynet.co.uk>
439
440 * tests/ports.test: test line-buffering of fports.
441
442 1999-08-18 Gary Houston <ghouston@easynet.co.uk>
443
444 * tests/ports.test: tests for NUL and non-ASCII chars to fports.
445
446 1999-08-12 Gary Houston <ghouston@easynet.co.uk>
447
448 * tests/ports.test: lseek -> seek.
449
450 1999-08-04 Gary Houston <ghouston@easynet.co.uk>
451
452 * tests/ports.test: tests for buffered and unbuffered input/output
453 fports with seeking.
454
455 1999-08-01 Jim Blandy <jimb@savonarola.red-bean.com>
456
457 * tests/r4rs.test (SECTION 3 4): Each element of type-matrix
458 corresponds to an example object, not a predicate. Aubrey
459 probably never noticed this because SCM doesn't check the lengths
460 of the arguments to for-each and map...
461
462 * tests/ports.test: Add some regression tests for char-ready?.
463
464 1999-07-19 Jim Blandy <jimb@savonarola.red-bean.com>
465
466 * tests/ports.test: Fix copyright years.
467
468 * tests/guardians.test: New test file.
469
470 * tests/ports.test ("read-delimited!"): New tests.
471
472 1999-06-19 Jim Blandy <jimb@savonarola.red-bean.com>
473
474 * tests/interp.test: New file.
475
476 1999-06-15 Jim Blandy <jimb@savonarola.red-bean.com>
477
478 * tests/time.test: New test file.
479
480 * tests/r4rs.test: New set of tests, taken from Guile's test
481 script, taken from SCM.
482
483 * tests/ports.test: Group the string port tests under a new
484 test name prefix.
485
486 * tests/ports.test ("line counter"): Check the final column, too.
487
488 * lib.scm: Import (test-suite paths).
489 (data-file): New exported function.
490
491 1999-06-12 Jim Blandy <jimb@savonarola.red-bean.com>
492
493 * tests/ports.test ("line counter"): Add test for correct column
494 at EOF.
495
496 1999-06-09 Jim Blandy <jimb@savonarola.red-bean.com>
497
498 * tests/ports.test ("line counter"): Verify that we do eventually
499 get EOF on the port --- don't just read forever.
500
501 * lib.scm (full-reporter): The test name is the cadr of the
502 result, not the cdr. I'm not macho enough to handle run-time
503 typechecking.
504
505 * lib.scm (print-counts): XFAILS are "expected failures", not
506 "unexpected failures."
507
508 * lib.scm, guile-test, paths.scm: Log begins.
509