Test the interaction of GOOPS objects with `struct-{ref,set!}'.
[bpt/guile.git] / test-suite / README
CommitLineData
000ee07f
JB
1This directory contains some tests for Guile, and some generic test
2support code.
3
216aef15
JB
4To run these tests, you will need a version of Guile more recent than
515 Feb 1999 --- the tests use the (ice-9 and-let*) and (ice-9
6getopt-long) modules, which were added to Guile around then.
7
1ff7abbe
DH
8For information about how to run the test suite, read the usage
9instructions in the comments at the top of the guile-test script.
000ee07f
JB
10
11You can reference the file `lib.scm' from your own code as the module
12(test-suite lib); it also has comments at the top and before each
13function explaining what's going on.
14
15Please write more Guile tests, and send them to bug-guile@gnu.org.
cbea802b
NJ
16(Note that you must be subscribed to this list first, in order to
17successfully send a report to it.) We'll merge them into the
18distribution. All test suites must be licensed for our use under the
19GPL, but I don't think I'm going to collect assignment papers for
20them.
70b83fe2
JB
21
22
23
24Some test suite philosophy:
25
26GDB has an extensive test suite --- around 6300 tests. Every time the
27test suite catches a bug, it's great.
28
29GDB is so complicated that folks are often unable to get a solid
30understanding of the code before making a change --- we just don't
31have time. You'll see people say things like, "Here's a fix for X; it
32doesn't cause any regressions." The subtext is, I made a change that
33looks reasonable, and the test suite didn't complain, so it must be
34okay.
35
36I think this is terrible, because it suggests that the writer is using
37the test suite as a substitute for having a rock-solid explanation of
b159fc3c
JB
38why their changes are correct. The problem is that any test suite is
39woefully incomplete. Diligent reasoning about code can catch corner
40conditions or limitations that no test suite will ever find.
41
70b83fe2
JB
42
43
44Jim's rule for test suites:
45
46Every test suite failure should be a complete, mysterious surprise,
47never a possibility you were prepared for. Any other attitude
48indicates that you're using the test suite as a crutch, which you need
49only because your understanding is weak.