Commit Graph

882 Commits (57620a7afd0e9416c76120017bdcbece0500481b)

Author SHA1 Message Date
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