next|prev|index
13. Other ocamltest features
External commands are run by a dedicated C library.
- Two implementations: Unix and Windows
- Allows fine-grained management of redirections, timeouts, processes, system resources...
The way to compare output and reference files can be parameterized. By default it works as follows for text files:
- Reference files are expected to be stored with Unix-style line terminators
- Under Windows, output files are converted to Unix-style end-of-lines.
- Output is compared to reference using cmp
- If they differ, they are compared again with diff and the output is part of the test log.