Fossil SCM

Add README for test suite

danshearer 2026-11-11 10:41 UTC test-suite-new
Commit 557743d09a83fb9dd5686fe9be862c3dc1ceb77bacea7d7d764ead6bc4479040
1 file changed +49
--- a/test/README.md
+++ b/test/README.md
@@ -0,0 +1,49 @@
1
+# Fossil test suite
2
+
3
+## Running the tests
4
+
5
+From a build directory:
6
+
7
+```sh
8
+make test
9
+```
10
+
11
+or with any `fossil` executable:
12
+
13
+```sh
14
+tclsh /path/to/fossil/test/tester.tcl /path/to/fossil
15
+tclsh /path/to/fossil/test/tester.tcl /path/to/fossil merge1 update
16
+```
17
+
18
+The names after the executable select test files, eg `update` runs `test/update.test`.
19
+
20
+Options are:
21
+
22
+* `-quiet` prints only failures, skipped files and the summary.
23
+* `-verbose` prints the output of every `fossil` command.
24
+* `-strict` counts the failure of a known bug as a failure.
25
+* `-halt` stops at the first failure.
26
+* `-keep` leaves the temporary repositories in place.
27
+* `-prot` also writes the output to the file `prot`.
28
+
29
+ `make test TESTFLAGS="-quiet update"` passes oMerges and 1 when one or more tests f are reported with what it expect a fault that isn't fixed yet, marked `knownBug` in its test file; its failure is reported as `FAILED (knownBug)` and does not change the exit status unless `-strict` is given.
30
+
31
+## Requirements
32
+
33
+* Tcl 8.6 or later. `configure` finds `tclsh`, and `make test` fails if it finds none.
34
+* A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot`
35
+ which writes a session log to wherever it was started from.
36
+* `src/` which must be next to `test/`, just as it is in the source tree. Otherwise `settings.test` and `settings-repo.test` can't read the settings from the source.
37
+
38
+The following tests are skipped when their requirements are missing:
39
+
40
+| Needs | Test files |
41
+| --- | --- |
42
+| a TCP connection over the loopback interface | `unversioned` |
43
+| the `sha1` package from tcllib | `set-manifestnge the exit status u`configure --json` | `json` |
44
+| `configure --with-th1-docs` | `th1-docs` |
45
+| `configure --with-th1-hooks` | `th1-hooks` |
46
+| `configure --with-tcl` | `th1-tcl` |
47
+
48
+None of the tests need network access (but that doesn't mean all network-related tests will work, some isolated environments don't even have loopback and the test
49
+suite ac
--- a/test/README.md
+++ b/test/README.md
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
--- a/test/README.md
+++ b/test/README.md
@@ -0,0 +1,49 @@
1 # Fossil test suite
2
3 ## Running the tests
4
5 From a build directory:
6
7 ```sh
8 make test
9 ```
10
11 or with any `fossil` executable:
12
13 ```sh
14 tclsh /path/to/fossil/test/tester.tcl /path/to/fossil
15 tclsh /path/to/fossil/test/tester.tcl /path/to/fossil merge1 update
16 ```
17
18 The names after the executable select test files, eg `update` runs `test/update.test`.
19
20 Options are:
21
22 * `-quiet` prints only failures, skipped files and the summary.
23 * `-verbose` prints the output of every `fossil` command.
24 * `-strict` counts the failure of a known bug as a failure.
25 * `-halt` stops at the first failure.
26 * `-keep` leaves the temporary repositories in place.
27 * `-prot` also writes the output to the file `prot`.
28
29 `make test TESTFLAGS="-quiet update"` passes oMerges and 1 when one or more tests f are reported with what it expect a fault that isn't fixed yet, marked `knownBug` in its test file; its failure is reported as `FAILED (knownBug)` and does not change the exit status unless `-strict` is given.
30
31 ## Requirements
32
33 * Tcl 8.6 or later. `configure` finds `tclsh`, and `make test` fails if it finds none.
34 * A writable temporary directory, from `TMPDIR`, `TEMP` or `TMP`, falling back to `/tmp`. All writes are made to the temporary directory, except with `-prot`
35 which writes a session log to wherever it was started from.
36 * `src/` which must be next to `test/`, just as it is in the source tree. Otherwise `settings.test` and `settings-repo.test` can't read the settings from the source.
37
38 The following tests are skipped when their requirements are missing:
39
40 | Needs | Test files |
41 | --- | --- |
42 | a TCP connection over the loopback interface | `unversioned` |
43 | the `sha1` package from tcllib | `set-manifestnge the exit status u`configure --json` | `json` |
44 | `configure --with-th1-docs` | `th1-docs` |
45 | `configure --with-th1-hooks` | `th1-hooks` |
46 | `configure --with-tcl` | `th1-tcl` |
47
48 None of the tests need network access (but that doesn't mean all network-related tests will work, some isolated environments don't even have loopback and the test
49 suite ac

Keyboard Shortcuts

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