diff options
author | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2018-06-01 11:50:38 +0200 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2018-06-04 16:00:07 +0200 |
commit | bca1c03fb2fb6f531eee000f24d1bbfed0f5fb66 (patch) | |
tree | b1bc29c5327c345eb1218905bb0ef92478cf8fe5 /test-suite/README.md | |
parent | ac0bb15616550d00f5e6e7d6239e3b7ff2632975 (diff) |
test suite: make target to regenerate failing output tests
Diffstat (limited to 'test-suite/README.md')
-rw-r--r-- | test-suite/README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/README.md b/test-suite/README.md index 4572c98cf..ef2e574ec 100644 --- a/test-suite/README.md +++ b/test-suite/README.md @@ -76,3 +76,17 @@ There are also output tests in `test-suite/output` which consist of a `.v` file There are unit tests of OCaml code in `test-suite/unit-tests`. These tests are contained in `.ml` files, and rely on the `OUnit` unit-test framework, as described at http://ounit.forge.ocamlcore.org/. Use `make unit-tests' in the unit-tests directory to run them. + +## Fixing output tests + +When an output test `output/foo.v` fails, the output is stored in +`output/foo.out.real`. Move that file to the reference file +`output/foo.out` to update the test, approving the new output. Target +`approve-output` will do this for all failing output tests +automatically. + +Don't forget to check the updated `.out` files into git! + +Note that `output/MExtraction.out` is special: it is copied from +`micromega/micromega.ml` in the plugin source directory. Automatic +approval will incorrectly update the copy. |