Fossil SCM
Improve test suite README
Commit
17767590da8a7d7c263d77e09c662f7623af479434fcf9ec649c0f9473e05ac1
Parent
d781783074540e2…
1 file changed
+5
-1
+5
-1
| --- test/README.md | ||
| +++ test/README.md | ||
| @@ -1,7 +1,12 @@ | ||
| 1 | 1 | # Fossil test suite |
| 2 | 2 | |
| 3 | +This is an extensible test suite written in Tcl, where a runner executes all the test files it finds in the test/ directory. Some of the tests derive their | |
| 4 | +cases and expecations at runtime, including from the Fossil source code (when checking to see if the Fossil binary agrees with the source) and from | |
| 5 | +testing the behaviour of the filesystem the binary is running on (when checking unicode pathname case folding.) There is also some degree of checking for | |
| 6 | +platforms (eg is_windows) but that is kept to a minimum. | |
| 7 | + | |
| 3 | 8 | ## Running the tests |
| 4 | 9 | |
| 5 | 10 | From a build directory: |
| 6 | 11 | |
| 7 | 12 | ```sh |
| @@ -31,11 +36,10 @@ | ||
| 31 | 36 | A full run normally takes a few minutes. `tester.tcl` exits with status 0 when all tests pass, 1 when one or more tests fail. Failed tests are reported with |
| 32 | 37 | what it expected vs what it got. The summary lists skipped files with a reason, and all known bugs reported as `FAILED (knownBug)`. Skips and known bugs do not |
| 33 | 38 | change the exit status unless `-strict` is given. |
| 34 | 39 | |
| 35 | 40 | A new test should only require adding another `.test` file. |
| 36 | - | |
| 37 | 41 | |
| 38 | 42 | ## Requirements |
| 39 | 43 | |
| 40 | 44 | * Tcl 8.6 or later, we also test with Tcl 9.0 which is now common. `configure` finds `tclsh`, and `make test` fails if it finds none. |
| 41 | 45 | * A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot` |
| 42 | 46 |
| --- test/README.md | |
| +++ test/README.md | |
| @@ -1,7 +1,12 @@ | |
| 1 | # Fossil test suite |
| 2 | |
| 3 | ## Running the tests |
| 4 | |
| 5 | From a build directory: |
| 6 | |
| 7 | ```sh |
| @@ -31,11 +36,10 @@ | |
| 31 | A full run normally takes a few minutes. `tester.tcl` exits with status 0 when all tests pass, 1 when one or more tests fail. Failed tests are reported with |
| 32 | what it expected vs what it got. The summary lists skipped files with a reason, and all known bugs reported as `FAILED (knownBug)`. Skips and known bugs do not |
| 33 | change the exit status unless `-strict` is given. |
| 34 | |
| 35 | A new test should only require adding another `.test` file. |
| 36 | |
| 37 | |
| 38 | ## Requirements |
| 39 | |
| 40 | * Tcl 8.6 or later, we also test with Tcl 9.0 which is now common. `configure` finds `tclsh`, and `make test` fails if it finds none. |
| 41 | * A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot` |
| 42 |
| --- test/README.md | |
| +++ test/README.md | |
| @@ -1,7 +1,12 @@ | |
| 1 | # Fossil test suite |
| 2 | |
| 3 | This is an extensible test suite written in Tcl, where a runner executes all the test files it finds in the test/ directory. Some of the tests derive their |
| 4 | cases and expecations at runtime, including from the Fossil source code (when checking to see if the Fossil binary agrees with the source) and from |
| 5 | testing the behaviour of the filesystem the binary is running on (when checking unicode pathname case folding.) There is also some degree of checking for |
| 6 | platforms (eg is_windows) but that is kept to a minimum. |
| 7 | |
| 8 | ## Running the tests |
| 9 | |
| 10 | From a build directory: |
| 11 | |
| 12 | ```sh |
| @@ -31,11 +36,10 @@ | |
| 36 | A full run normally takes a few minutes. `tester.tcl` exits with status 0 when all tests pass, 1 when one or more tests fail. Failed tests are reported with |
| 37 | what it expected vs what it got. The summary lists skipped files with a reason, and all known bugs reported as `FAILED (knownBug)`. Skips and known bugs do not |
| 38 | change the exit status unless `-strict` is given. |
| 39 | |
| 40 | A new test should only require adding another `.test` file. |
| 41 | |
| 42 | ## Requirements |
| 43 | |
| 44 | * Tcl 8.6 or later, we also test with Tcl 9.0 which is now common. `configure` finds `tclsh`, and `make test` fails if it finds none. |
| 45 | * A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot` |
| 46 |