| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
New test script language, all tests translated automatically (see `tools/translate-all-tests`).
|
|
|
|
| |
Dumps the wall-clock time for each test _file_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This option sets a timeout (in seconds) that is applied to every external
command run from ocamltest.
It is useful to catch test that don't terminate and report them as
failing.
This is implemented by an ocamltest variable called "timeout"
whose initial value is that given by the -timeout option,
or 0 (no timeout) otherwise.
Co-authored-by: Gabriel Scherer <gabriel.scherer@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When -promote is set, running the test automatically overwrites each
reference output file with the actual output of the test. This option,
which mirrors the "make promote" target of old-style testsuite tests,
is very useful when a minor change in compiler/toplevel output affects
a lot of reference files in innocuous ways.
This is the only option of ocamltest that overwrites file in the
source directory, so it should be used with care -- under strict
version-control supervision.
The 'make promote' target is not yet supported for new-style testsuite
tests, as this feature depends on the not-yet-merged GPR#1574
https://github.com/ocaml/ocaml/pull/1574
For a previous discussions of this feature, see GPR#1519
https://github.com/ocaml/ocaml/pull/1519
|
| |
|
|
This commit contains:
- The initial version of the tool itself, in the ocamltest directory
- The required additions to the main .gitignore and .merlin files.
The integration of ocamltest in OCaml's main build system and its use
in the testsuite are not part of this commit.
Credits go to David Allsopp for
- Extending the computation of ocamlsrcdir to the Windows case
- Making ocamltest compile when flexlink
is being bootstrapped.
|