Commit Graph

12767 Commits (57620a7afd0e9416c76120017bdcbece0500481b)

Author SHA1 Message Date
Pierre Chambart cdd75a23e6 Flambda produces the same stack traces as closure 2016-01-28 17:33:15 +01:00
Pierre Chambart fd8cdc9d20 Propagate debuginfo as an environment 2016-01-28 16:38:10 +01:00
Leo White b9bdfa8248 Mark opt arg wrappers of recursive functions as stubs 2016-01-28 16:01:56 +01:00
Pierre Chambart 869dc5b26a travis build ocamlnat 2016-01-28 15:58:19 +01:00
Pierre Chambart 7b2268810f Travis also test flambda 2016-01-28 15:46:50 +01:00
Pierre Chambart 73013a4626 Merge pull request #440 from chambart/test_static_allocation
Add tests for static data allocation
2016-01-28 15:41:36 +01:00
Pierre Chambart 485ae3049b Merge pull request #415 from chambart/flambda_merge
Enable flambda
2016-01-28 15:05:45 +01:00
Pierre Chambart b0b0f6609c Enable flambda 2016-01-28 15:04:47 +01:00
Alain Frisch 3f5818f33c Merge pull request #444 from nojebar/ast_iter+ast_invariants
Add Ast_iterator module
2016-01-27 23:28:03 +01:00
alainfrisch 5ac0c42baf Fix testsuite for Windows. 2016-01-27 23:24:18 +01:00
Nicolas Ojeda Bar e343dd0ba6 Adapt emit_external_warnings and error_if_has_deep_native_repr_attributes 2016-01-27 23:05:28 +01:00
Nicolas Ojeda Bar 92d679f791 Use Ast_iterator for Ast_invariants 2016-01-27 23:02:23 +01:00
Nicolas Ojeda Bar ff1ecd8fcd Add Ast_iterator 2016-01-27 23:02:23 +01:00
alainfrisch 3878b84d8b Fix for Windows following merge of GPR#22. 2016-01-27 22:47:31 +01:00
Alain Frisch 3f9442604c Merge pull request #392 from diml/ast-invariants
Ast invariants
2016-01-27 22:34:02 +01:00
Jeremie Dimino f9ebe43e75 update Changes 2016-01-27 18:41:12 +00:00
Jeremie Dimino 43111b38cd Replace uses of [Syntaxerr.ill_formed_ast] by asserts
All invariants are already checked by [Ast_invariants]
2016-01-27 18:41:12 +00:00
Jeremie Dimino 4ee998dbb4 Add tests for Ast_invariants 2016-01-27 18:41:12 +00:00
Jeremie Dimino d8704f6ba8 Add module Ast_invariants
This module checks all the AST invariants. This is to ensure that all
invariants are written down in one place and are consistently checked
between the various clients of the AST (typer, pprintast, ...).

The invariants are checked in Pparsee, after applying the ppx
rewriters.
2016-01-27 18:41:12 +00:00
Jeremie Dimino 9e8facef9c typo 2016-01-27 18:40:54 +00:00
Damien Doligez 192ccd0902 Merge pull request #236
PR#6263: Add size_in_bytes and kind_size_in_bytes to Bigarray
2016-01-27 16:00:44 +01:00
Runhang Li 2ef65ed2aa Fix test
Several tests will fail on 32-bit machine.
2016-01-27 15:59:47 +01:00
Runhang Li 0544aac0af Add Shinwell as reviewer 2016-01-27 15:59:47 +01:00
Runhang Li a62ab0e163 Update Changelog 2016-01-27 15:58:06 +01:00
Runhang Li 829dea35a4 Change function names, improve documentation.
Change ``byte_size'' to ``size_in_bytes``, change ``kind_byte_size``
to ``kind_size_in_bytes``.

Add detailed comment indicating size functions do not consider header
of OCaml value.
2016-01-27 15:58:06 +01:00
Runhang Li aacf9f6c46 Update changelog 2016-01-27 15:58:06 +01:00
Runhang Li a41b820d26 Add byte_size and kind_byte_size to Bigarray 2016-01-27 15:57:19 +01:00
Damien Doligez 012cb8bd7b Merge pull request #335 from hhugo/missing_cmi
GPR#335: Typing: unification error - warn about missing cmi
2016-01-27 15:35:49 +01:00
Damien Doligez 6e6cabfe1b Merge pull request #370 from dra27/normalise-warnings
PR#7106: Warnings emitted by the compiler may contain \r\r\n on Windows
2016-01-27 15:28:20 +01:00
Mark Shinwell d708e2e7c7 Merge pull request #22 from bobot/feature/ephemerons
GPR#22: Add Ephemerons to OCaml
2016-01-27 09:37:59 +00:00
Mark Shinwell b1d549c3e0 Merge pull request #401 from dra27/testsuite-retries
GPR#401: Allow automatic re-running of failed tests
2016-01-26 17:25:26 +00:00
Alain Frisch 63fe7d97f8 Merge pull request #441 from trefis/constraints-loc
Better type error location in presence of constraints
2016-01-26 17:53:14 +01:00
Rafaël Bocquet 3c2f747f0b GPR#112: octal escape sequences for char and string literals
merged by Damien Doligez
2016-01-26 17:32:31 +01:00
David Allsopp 771d1bd06a Display list of directories which ran no tests
Testsuite directories should now display " => skipped" for each test,
rather than simply displaying nothing.
2016-01-26 14:47:49 +00:00
David Allsopp 6b8ce81f18 Display plurals correctly in testsuite summary
David R Allsopp -- pedantically eschewing lazy plural(s) since 1994.
2016-01-26 14:47:49 +00:00
David Allsopp 790d9c9885 Display details of all skipped tests
Some Makefile's displayed "=> skipped" lines; some Makefile's displayed
a summary line including the word skipped; most Makefile's are simply
silent if tests are skipped.

Silent obviously doesn't discern between "skipped" and "broken"!

Patch alters all existing to display an explicit "=> skipped" for any
test which is skipped (including ocamlopt tests if
`BYTECODE_ONLY=true`).

The summary is updated to include:

 - The number of skipped tests, and their names (if all tests are
   skipped in a directory then just the directory name is displayed)
 - The total number of tests considered - which should therefore be the
   same on all platforms in all configurations
2016-01-26 14:47:49 +00:00
David Allsopp e37f72f348 Remove requirement for gawk in testsuite
switch is a GNU extension - not supported, for example, by the default
installation of awk on Ubuntu.
2016-01-26 14:46:22 +00:00
David Allsopp 4bf93642af Allow automatic re-running of failed tests
MAX_TESTSUITE_DIR_RETRIES (which defaults to 1 for the native Windows
ports and 0 for all other platforms) causes the `all` and `list` targets
to re-run any given test directory an additional number of times in
order to eliminate random failures during tests.
2016-01-26 14:46:22 +00:00
Mark Shinwell 026572c2ec Merge pull request #366 from dra27/testsuite-windows
GPR#366: Various test-suite fixes for Windows
2016-01-26 14:21:00 +00:00
Mark Shinwell 341908f8cd Merge pull request #435 from bobot/test_debug_runtime
GPR#435: Make travis runs the testsuite with the debug runtime
2016-01-26 14:18:42 +00:00
Leo White ebd1a90dcd Update .depends 2016-01-26 11:26:40 +00:00
Thomas Refis d9337d856d Better type error location in presence of constraints 2016-01-26 10:48:34 +00:00
Pierre Chambart 3f95abd9d1 Merge pull request #428 from chambart/OCAMLPARAM_configuration_file
OCAMLPARAM option passed using a configuration file
2016-01-25 19:11:04 +01:00
Pierre Chambart ab2e736358 Rename compiler_configuration file
Renamed to ocaml_compiler_internal_params.
2016-01-25 18:50:29 +01:00
Pierre Chambart 2555c4e773 Update main and ocamldep 2016-01-25 18:50:29 +01:00
Pierre Chambart 5b2d1e7d5d Reindent compenv 2016-01-25 18:50:29 +01:00
Pierre Chambart d6ea706a02 Add handling of OCAMLPARAM as a file 2016-01-25 18:45:04 +01:00
Pierre Chambart c0d5375e06 Merge pull request #414 from chambart/add_middle_end_to_makefile
Build flambda
2016-01-25 18:41:19 +01:00
David Allsopp b505fc699c Improve threading tests on Windows
The `CANKILL` testsuite variable is eliminated in favour of testing for
`TOOLCHAIN`.

tests/lib-threads/signal.ml can be executed under native Windows by
means of a wrapper program to send CTRL+C.

tests/lib-threads/signal2.ml is not possible under native Windows
because Thread.sigmask is not implemented, so the precheck is updated to
reflect this, rather than the lack of kill -INT.

tests/lib-threads/sockets.ml is re-enabled, since the two MPRs affecting
it have been fixed.
2016-01-25 15:08:08 +00:00
David Allsopp e66d98e23e Missing reference files in the test suite 2016-01-25 15:08:06 +00:00