aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/README.md
blob: 159697a7e160468540b51ac29e58c0a6e3acc26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Coq Test Suite

The test suite can be run from the root directory by `make test-suite`.

From this directory, `make aaa/bbb/ccc.v.log` runs one test (if not already run), storing the output in the named `.log` file.
`make -B` can be used to rerun the test (`-B` meaning always remake).
See [`test-suite/Makefile`](/test-suite/Makefile) for more information.

## Adding a test

Regression tests for closed bugs should be added to `test-suite/bugs/closed`, as `1234.v` where `1234` is the bug number.
Files in this directory are tested for successful compilation.
When you fix a bug, you should usually add a regression test here as well.

The error "(bug seems to be opened, please check)" when running `make test-suite` means that a test in `bugs/closed` failed to compile.

There are also output tests in `test-suite/output` which consist of a `.v` file and a `.out` file with the expected output.