Previously, ocamltest attempted to normalise the output of commands on
Windows to be Unix files. This fails on a Windows git checkout with the
normal core.autocrlf set to true.
The implementation has been revised not to use cmp and to strip \r from
the end of text files if every line ends in one.
Now that actions can occur directly in test blocks, it is no longer
necessary to wrap each action in a test. This commit thus removes
all the single-action tests.
It also renames a few actions to give them simpler names.
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.