| 1 |
|
| 2 |
Stupidly Simple Test Suite for neon |
| 3 |
----------------------------------- |
| 4 |
|
| 5 |
The aim of the test suite is two-fold: |
| 6 |
|
| 7 |
1. ensure compliance to the relevant RFCs in network behaviour. |
| 8 |
|
| 9 |
2. ensure that the promises made by the public API are met |
| 10 |
by the current implementation. |
| 11 |
|
| 12 |
The file `STATUS' makes an attempt at listing RFC requirements and how |
| 13 |
the test suite tests whether neon meets them or not (it's not finished |
| 14 |
yet). |
| 15 |
|
| 16 |
The test suite is licensed under the GPL. |
| 17 |
|
| 18 |
Important Note About Test Failures |
| 19 |
---------------------------------- |
| 20 |
|
| 21 |
Note that a test failure either means a bug in the test or a bug in |
| 22 |
the code itself. On platforms without pipe(), there is a race |
| 23 |
condition in the code which forks a server process: if you get random |
| 24 |
failures on a slow or loaded box, increase the sleep time in |
| 25 |
common/child.c:minisleep(). |
| 26 |
|
| 27 |
Extra Stuff |
| 28 |
----------- |
| 29 |
|
| 30 |
server-tests requires that you have a running HTTP server on localhost |
| 31 |
port 80, and you have copied htdocs/* to server-htdocs-root/test/* |
| 32 |
|
| 33 |
Credits |
| 34 |
------- |
| 35 |
|
| 36 |
This test suite is inspired by the Subversion project, discussion on |
| 37 |
the subversion mailing list, and seeing chromatic's talks on XP. The |
| 38 |
presentation is inspired by the standard Perl test suite. Imitation |
| 39 |
is the greatest form of flattery, right? |