Commit Graph

937 Commits (7924ec57074c127a7dffb79391eea9bc514491e1)

Author SHA1 Message Date
Bart Jacobs 7a16f2ffa4 Guard unwind test against old OS X versions 2016-02-23 09:28:45 -05:00
Damien Doligez 69a906872f tweak tools/check-typo and break more overlong lines 2016-02-19 17:13:53 +01:00
Damien Doligez 5ffe25e8c6 testsuite: fix syntax error in Makefile.one 2016-02-19 17:10:15 +01:00
Damien Doligez d5f61a4e54 tweak tools/check-typo and break more overlong lines 2016-02-19 12:28:36 +01:00
Bart Jacobs 17e54358cc Guard unwind test against old OS X versions 2016-02-18 22:29:59 +01:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez 1d40d77502 testsuite: fix bug where failed tests would be ignored 2016-02-17 13:36:37 +01:00
Damien Doligez ee8f71101b clean up whitespace and cut long lines 2016-02-17 13:36:27 +01:00
Damien Doligez 59a4fd6615 Merge pull request #408 from btj/trunk
Fixes bugs in stack unwinding metadata (PR#7118,7120)
2016-02-12 11:20:02 +01:00
Bart Jacobs b16d0126da Some fixes in the Makefile for the test case 2016-02-11 21:11:23 +01:00
Mark Shinwell 004bdfc45d Fix incorrect attribute in pr3612 test 2016-02-11 11:18:45 +00:00
Damien Doligez 8773528037 Merge pull request #456 from damiendoligez/split-is_static-test
split tests/asmcomp/is_static.ml into generic and flambda-specific parts
2016-02-08 11:59:57 +01:00
Drup 8e1fc1ee30 Add a test for ext/attrs shortcuts. 2016-02-05 14:47:09 +01:00
Jacques Garrigue b12e708ef4 Fix PR#7135: only warn about ground coercions in -principal mode 2016-02-05 10:54:24 +09:00
Damien Doligez 40c930f8ff test/lib-dynlink-csharp: fix syntax error in Makefile 2016-02-04 16:23:45 +01:00
Damien Doligez 385ba6d47d tests/lib-dynlink-csharp: fix when shared libs not available; configure: better error message when trying to use shared libs and they are not available 2016-02-03 16:03:06 +01:00
Mark Shinwell 81ef7f714f Merge pull request #446 from chambart/travis_test_flambda
GPR#446: Travis also test flambda
2016-02-03 07:45:18 +00:00
Gabriel Scherer 6159d02cc0 Merge pull request #451 from gasche/gnu-parallel
testsuite: optional 'parallel' target uses GNU parallel to halve testing time
2016-02-02 22:06:47 -05:00
Damien Doligez 6d24bcfbce split tests/asmcomp/is_static.ml into generic and flambda-specific parts 2016-02-02 15:14:06 +01:00
Gabriel Scherer be65af9f91 Makefile: optional 'parallel' target uses GNU parallel to halve testing time
See the run logs below. Using 'parallel' reduces the time to run the
full testsuite from 2m30s to 0m57s on my machine.

All tests are run in parallel, including lib-threads.

We ask parallel to preserve output order, so it should be
deterministic. (Individual tests may mangle stdout and stderr in
fragile ways, though.) See the Makefile comment for details.

```
rm -f _log; make clean;
time make all;
cp _log /tmp/trunk_log

> real	2m29.947s
> user	1m35.937s
> sys	0m17.467s

rm -f _log; make clean;
time make parallel;
cp _log /tmp/parallel_log

> real	0m56.611s
> user	2m20.861s
> sys	0m21.511s

diff -u /tmp/{trunk,parallel}_log | wc -l

> 0

rm /tmp/{trunk,parallel}_log
```
2016-02-02 07:22:37 -05:00
Will Crichton 50dd38d4b6 Add support for immediate attribute 2016-02-02 11:45:07 +00:00
Pierre Chambart 79cd7ac9e3 Do not test some contrived evaluation orders
The tests are kept since they experience some otherwise untested code.
2016-02-02 11:49:56 +01:00
Gabriel Scherer f8f2a6277f remove ocamlbuild from the compiler distribution 2016-02-01 15:05:18 -05:00
Jeremie Dimino c32f981147 fix the ast-invariants test 2016-02-01 16:17:11 +00:00
Damien Doligez 5cf41dcd47 tests/asmcomp: fix is_static test on Windows 2016-02-01 14:44:02 +01:00
Damien Doligez 297c144bd5 silence Make messages 2016-02-01 14:43:30 +01:00
Damien Doligez 09e264d822 fix tests/typing-missing-cmi 2016-01-30 11:29:33 +01:00
Bart Jacobs c9ecd770d6 Fixed unwind test case output syntax 2016-01-29 22:44:01 +01:00
Damien Doligez f9b8bc6d7c tests/typing-missing-cmi/Makefile: add "clean" entry; remove useless "| cat" 2016-01-29 17:24:20 +01:00
Damien Doligez f7337d9340 testsuite: disable testfork.ml on OpenBSD 2016-01-29 17:11:11 +01:00
Damien Doligez f9121fb21b testsuite: remove non-portable awk idiom; remove overlong source lines in awk script 2016-01-29 17:11:11 +01:00
Mark Shinwell 9528337dff Merge pull request #244 from c-cube/margins-in-colors
GPR#244: try to print error messages with flexible margin width
2016-01-29 14:57:21 +00:00
Damien Doligez af2669f0a0 disable lib-threads/signal.ml test on msvc and mingw 2016-01-29 14:34:00 +01:00
Runhang Li 59806f4812 Update test case 2016-01-28 14:38:13 -08:00
Runhang Li e51be28926 Add test case and update changelog 2016-01-28 14:38:13 -08:00
Pierre Chambart f4a45d07d0 Addapt warning 55 test
Flambda warning texts for warning 55 are different. This change allows
to have different references for the clambda or flambda.
2016-01-28 18:46:20 +01:00
Leo White 89b8c99389 Make extension-constructor test not depend on ident numbers 2016-01-28 18:08:08 +01:00
Pierre Chambart 9aef55ed9c Prevent static allocations in pr5233 test 2016-01-28 18:01:24 +01:00
Pierre Chambart ce2ba592a7 Prevent static allocations in pr3612 test 2016-01-28 17:56:08 +01:00
Pierre Chambart 3793b5b744 Prevent static allocations in ephemeron test 2016-01-28 17:52:34 +01:00
Pierre Chambart 220f9e9435 Prevent bactrace test from inlining using annotations 2016-01-28 17:37:53 +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
alainfrisch 5ac0c42baf Fix testsuite for Windows. 2016-01-27 23:24:18 +01:00
Jeremie Dimino 4ee998dbb4 Add tests for Ast_invariants 2016-01-27 18:41:12 +00:00
Runhang Li 2ef65ed2aa Fix test
Several tests will fail on 32-bit machine.
2016-01-27 15:59:47 +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 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
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
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
Thomas Refis d9337d856d Better type error location in presence of constraints 2016-01-26 10:48:34 +00: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
David Allsopp 09c5ded55b Add missing '@' to testsuite Makefiles
Various testsuite Makefiles displaying commands, which fog up the log
files.
2016-01-25 15:08:05 +00:00
David Allsopp 8d00870c39 Fix testsuite incorrectly running native tests
Warnings tests didn't check `$(BYTECODE_ONLY)`
2016-01-25 15:08:04 +00:00
David Allsopp 81604e76f6 Minor corrections to clean targets 2016-01-25 15:08:03 +00:00
David Allsopp 7c10fb227e Eliminate testsuite ulimit warning on Cygwin
Cygwin doesn't allow the stack limit (uname -s) to be changed, though it
can be queried. Alter the test so that the stack limit is only changed if
it is either unlimited or very large (and skip the tests if ulimit returns
an error)
2016-01-25 15:08:02 +00:00
David Allsopp 340788e216 Fix XML tokenization test on Windows
XML sample document behaves differently when checked out on Windows where
the source line endings in the test document become `\r\n`.

Alternative would have been to specify that t01.ml needs LF endings in
.gitattributes, but explicitly including the \n and \t in the OCaml string
seems less brittle.
2016-01-25 15:07:58 +00:00
François Bobot 07b88bb5ac Add a test specifically for weak table
And fix a bug in the handling of ephemeron during minor collection
    found thanks to this test. Oldifying of ephemerons' data was not iterated
    enough because `oldify_todo_list` doesn't become non-null each time
    `caml_oldify_one` is run.
2016-01-25 08:33:57 +01:00
François Bobot ba18944e12 Fix creation of Ephemeron.K2
And use the tests for the classic hashtables for testing
    the (non-weak) behavior of weak hashtables.
2016-01-25 08:33:56 +01:00
François Bobot 03ed6a0f51 [Stdlib] Ephemeron: add the module in the stdlib 2016-01-25 08:33:54 +01:00
François Bobot d5fffddc63 [GC] move the cleaning of the weak arrays in a new phase
A value disappears from a weak array only when it really becomes unreachable.
     Previously it was not the case if:
     - the value is referenced by two weak arrays and during the incremental cleaning
       one weak arrays have been cleaned and the other is accessed,
     - the value has a finalizer and the finalizer make it alive again.
2016-01-23 11:28:01 +01:00
François Bobot 88c1aec005 Add a failing test for weak arrays
multiple weak arrays on the same value
2016-01-23 11:28:01 +01:00
François Bobot b36a06dca9 Travis runs the testsuite with the debug runtime 2016-01-23 11:27:43 +01:00
François Bobot 85bbbf0721 Fix OCAMLRUNPARAM in testsuite/tests/backtrace/ 2016-01-23 11:27:20 +01:00
alainfrisch 0b7542ddd8 Fix testsuite. 2016-01-22 21:36:34 +01:00
Damien Doligez 031d4ac095 disable asmcomp tests for msvc64 2016-01-22 18:25:25 +01:00
Pierre Chambart 974733bb8a Fix test for static data 2016-01-22 16:13:40 +01:00
Damien Doligez 821359c20a tests/asmcomp: simplify checking for flambda; debug compilation 2016-01-22 12:03:54 +01:00
Pierre Chambart 534d607072 Add tests for static data allocation 2016-01-21 15:41:21 +01:00
Marc Lasson 934dd9a40b More errors with unboxed and untagged attributes
This commit adds errors for bad uses of @untagged and
@unboxed attributes in external declarations.

There are three possible new errors:
  - One when the external does not contain a native version of
the primitive,
  - One when the attribute occurs deeply into the type,
  - One when the attribute is applied to the whole function type.
2016-01-20 11:51:26 +01:00
alainfrisch 129df0ae09 Fix Changes file. 2016-01-18 11:11:39 +01:00
Bart Jacobs 608bd115ff Fixed bug in 'clean' script 2016-01-18 11:06:23 +01:00
Bart Jacobs eec8d96de5 Eliminated a bash dependency 2016-01-18 11:01:22 +01:00
Bart Jacobs 08c04f68ac Add README file motivating unwind test case 2016-01-18 10:49:55 +01:00
Bart Jacobs 3ad96f425b Add test case for unwind info
This test case runs only on OS X. It serves as a regression test
for PR#7120.
2016-01-18 10:33:09 +01:00
Alain Frisch b0eed463b7 Merge pull request #436 from dra27/msvc-asmcomp-tests
Enable tests/asmcomp for MSVC
2016-01-18 09:26:13 +01:00
David Allsopp 8ca04e3b7f Use ocamlc as a C compiler in the testsuite
ocamlc and ocamlopt both provide convenient mechanisms to invoke the C
compiler for .c files. Given the filtering out of the .c line for MSVC
now performed by ocamlc and ocamlopt, changing the testsuite to invoke
the C compiler via ocamlc reduces noise from the testsuite _log file.
2016-01-17 19:21:48 +00:00
David Allsopp bfe91a097e Fix running outside bash! 2016-01-16 14:12:18 +00:00
David Allsopp 8386733a87 Initial fixes for tests/asmcomp on MSVC 32-bit 2016-01-16 11:53:55 +00:00
David Allsopp b46843fb69 Allow compilation using bootstrapped FlexDLL
Extend the previous patch allowing make -f Makefile.nt flexdll
install-flexdll not to require the install-flexdll stage.

OCAML_FLEXLINK is utilised as required to allow compilation of the entire
system using an in-tree compiled flexlink. The build process simply
required the flexdll target to appear before world.

opt.opt compiles a native code version of flexlink.exe as flexlink.opt.

install always installs flexlink.exe if it was compiled along with any
required .manifest files. It also installs the appropriate .o/.obj files
to $(INSTALL_LIBDIR).

At present, the bootstrapping is not extended to the Cygwin ports.
2016-01-15 17:07:12 +00:00
Mark Shinwell ea24052e5e test 2016-01-14 16:52:47 +00:00
Pierre Chambart 9c60ae1692 Add the opaque primitive 2016-01-12 19:24:22 +01:00
Mark Shinwell 0ac2fc54b5 Merge pull request #369 from mshinwell/flambda_prereq-scc
GPR#369: Strongly connected components
2016-01-12 18:18:45 +01:00
Mark Shinwell 89cb79b18c fix testsuite 2016-01-12 18:01:45 +01:00
Mark Shinwell f0f9627dc2 Merge remote-tracking branch 'chambart/flambda_prereq-init_assign' into flambda_prereq-init_assign 2016-01-12 17:06:13 +01:00
Pierre Chambart f00807aace Fix asmcomp testsuite 2016-01-12 17:04:08 +01:00
Pierre Chambart ce63c499b1 Fix merge problems 2016-01-12 16:29:22 +01:00
Mark Shinwell c00323309c Merge remote-tracking branch 'chambart/flambda_prereq-scc' into flambda_prereq-scc 2016-01-12 15:15:23 +01:00
Pierre Chambart 09d4bc9025 Fix testsuite for strongly_connect_components 2016-01-12 14:43:17 +01:00
Mark Shinwell bf22a9a524 fixes 2016-01-12 14:14:37 +01:00
Alain Frisch 4b59df83e0 Merge pull request #80 from dbuenzli/uchar
Add Uchar module to the standard library.
2016-01-06 16:21:04 +01:00
Pierre Chambart 42b180efe7 Fix typing testsuite after introduction of Map.union 2016-01-06 15:41:32 +01:00