Commit Graph

13 Commits (master)

Author SHA1 Message Date
David Allsopp 6a4f9aef5f Report a diff for files differing by endings only 2020-07-25 10:36:24 +01:00
David Allsopp a651a82488 Fix handling of EOL-at-EOF in ocamltest 2020-07-25 10:04:31 +01:00
Nicolás Ojeda Bär 73aa6126a7 Use with_{input,output}_file 2020-05-27 19:19:22 +02:00
Nicolás Ojeda Bär b77b13d812 Use Sys.{win32,...} instead Sys.os_type 2020-05-27 19:19:22 +02:00
Nicolás Ojeda Bär 15b08d2fdf
Use Filename.quote_command (#9476) 2020-04-20 14:38:10 +02:00
Gabriel Scherer 4710eb2114 ocamltest: fix "promote" actions on reference files with skipped lines/bytes 2019-09-03 11:43:55 +02:00
Jérémie Dimino 9124ab82d1
Deprecate Pervasives (#1605)
- inline Pervasives in Stdlib and re-add Pervasives as a deprecated
module that aliases all elements of Stdlib except the stdlib modules.

- remove special case for Stdlib.Pervasives in printtyp.ml
2018-08-27 12:42:14 +01:00
Sébastien Hinderer d261389924 ocamltest: remove temporary files 2018-04-11 16:11:37 +02:00
octachron ece7e44d1a ocamltest: machinery for ocamldoc tests
* a new test ocamldoc
* three new modifiers: html, latex and man for each ocamldoc backend
* new variables:
   * plugins
   * skip_header_lines, skip_header_bytes
   * ocamldoc_{backend,exit_status,flags,output,reference}
* make it possible to skip lines in the result file in text mode
* check_output reads skip_header_{lines,bytes} when comparing
output and reference files
2018-03-06 11:58:10 +01:00
Sébastien Hinderer f0b9b8e9c4 ocamltest: refactoring and implementation of hooks 2017-11-23 17:04:46 +01:00
David Allsopp ffb5db9342 Compare binary files block by block 2017-10-26 10:19:09 +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 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