Fossil SCM

Improve test suite README

danshearer 2026-11-19 09:00 UTC test-suite-new
Commit 17767590da8a7d7c263d77e09c662f7623af479434fcf9ec649c0f9473e05ac1
1 file changed +5 -1
+5 -1
--- test/README.md
+++ test/README.md
@@ -1,7 +1,12 @@
11
# Fossil test suite
22
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
+
38
## Running the tests
49
510
From a build directory:
611
712
```sh
@@ -31,11 +36,10 @@
3136
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
3237
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
3338
change the exit status unless `-strict` is given.
3439
3540
A new test should only require adding another `.test` file.
36
-
3741
3842
## Requirements
3943
4044
* 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.
4145
* A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot`
4246
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button