Commit Graph

25 Commits (ee8f71101b80496b2ec2c996d29ac33bbaf7cf00)

Author SHA1 Message Date
Damien Doligez ee8f71101b clean up whitespace and cut long lines 2016-02-17 13:36:27 +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
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
Xavier Leroy 313877fac9 Include test/basic in the "all-basic" target. 2015-10-26 10:32:48 +01:00
Gabriel Scherer e88b2fbf69 testsuite/Makefile: subset targets all-{basic,lib,typing,tool}
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 16:24:49 +00:00
Damien Doligez 7303ac34ca fix some of the whitespace problems in the source
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14582 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-12 10:17:02 +00:00
Damien Doligez c2651f0065 fix testsuite makefile: openbsd does not support PWD env variable
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14340 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-12-05 10:15:29 +00:00
Pierre Weis d534ad4893 Tabify.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13715 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-29 16:45:07 +00:00
Alain Frisch 1b54fa1d93 Typos.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13674 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-15 07:43:59 +00:00
Damien Doligez 0e199b5f7d testsuite: more cleanup of the makefiles
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13670 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-14 17:05:21 +00:00
Damien Doligez a2f17916d2 porting to MSVC64; some cleanup; ignore .obj and .lib files
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-05-07 09:39:38 +00:00
Damien Doligez fd82bbded5 testsuite: better reporting of failed tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13617 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-04-29 13:01:02 +00:00
Damien Doligez 443aca36ae whitespace, non-ascii chars, some missing headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13026 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-17 20:09:16 +00:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Xavier Clerc 3327547485 test suite: detection of makefile failure in report
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11135 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-21 07:13:25 +00:00
Xavier Clerc 6b5603562f testsuite: added a "promote" target copying actual results to waited reference (for a given test).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11095 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-15 12:14:14 +00:00
Xavier Clerc 3f334eb176 testsuite: ability to organize tests in subdirectories.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11089 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-06-15 08:13:13 +00:00
Xavier Clerc 9541ef1cd3 Force terminal to "DUMP" for reproducible test cases.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-06-18 10:27:40 +00:00
Xavier Clerc 8c927af142 Missing dependency.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10593 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-06-18 09:41:15 +00:00
Xavier Clerc 67c598b2c5 Directory changes are now silent under GNU make, even when only one test is run.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10431 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-19 12:32:00 +00:00
Xavier Clerc 55e57e57d1 Directory changes are now silent under GNU make.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10373 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-05-05 10:03:17 +00:00
Xavier Clerc fa287cfba1 Tests moved to 'lib-dynlink-csharp'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10252 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-04-08 12:44:07 +00:00
Damien Doligez 9f1516ff36 suppress linker warning message on Mac OS X 10.6.x / x86_64
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-03-25 14:51:49 +00:00
Xavier Clerc 23a54e79fc Fix for incompatibility with respect to BSD make ('-C' option)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-28 15:50:18 +00:00
Xavier Clerc ec6686630c Infrastructure for test suite.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9562 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-25 13:47:28 +00:00