Commit Graph

7 Commits (c6f3a00b3105a5496783ac89d9213a5d866d5063)

Author SHA1 Message Date
Sébastien Hinderer d73671f9b4 Let ocamltest use other runtime variants 2017-11-11 09:23:06 +01:00
David Allsopp b1058dd4f8 Eliminate use of cmp in ocamltest
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.
2017-10-26 10:17:25 +01:00
Sébastien Hinderer 1fcba7ea7a ocamltest: simplify tests and actions a bit
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.
2017-10-09 17:09:53 +02:00
Sébastien Hinderer cee23d79a9 ocamltest: add actions to test whether tests are run on Unix or Windows 2017-10-09 17:09:53 +02:00
Sébastien Hinderer 6bf807936a ocamltest: add builtin actions to always pass, skip or fail.
These actions are useful e.g. to debug the tool itself.
2017-10-09 17:09:53 +02:00
Nicolas Ojeda Bar 69b721c0c3 ocamltest: disable comparison of native programs under Windows 2017-09-25 13:54:19 +02:00
Sébastien Hinderer 635b5edcc1 ocamltest: the test driver for the OCaml compiler
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.
2017-09-18 17:40:14 +02:00