Commit Graph

111 Commits (d68e0e207765350eb42fed37444d643669f98cee)

Author SHA1 Message Date
Thomas Refis d68e0e2077
Provide a way to build the bytecode compiler using Dune (#2093) 2018-10-10 16:16:00 +01:00
Sébastien Hinderer ba6362a07d Move config/Makefile to Makefile.config
In order to prepare the transition to autoconf, this commit moves the
configuration Makefile out of the config directory which will disappear
and gives it the name it will have once intstalled, namely Makefile.config.
2018-09-17 14:23:35 +02:00
Gabriel Scherer ef00dc7317 remove experimental/
This subdirectory was used to store experimental patches on some older
version-control system where branching (or discussing branches?) was
inconvenient. It doesn't make much sense anymore now, and getting rid
of it simplifies a couple places that had to grow around it.

Suggested-by: Nicolás Ojeda Bär

(no change entry needed)
2018-09-08 16:53:08 +02:00
octachron 075bf9bed6 doc: remove unprefix trick 2018-09-03 13:59:32 +01:00
Gabriel Scherer cbb92d2817 remove unused ocamlyacc dependencies, never put it in boot/ 2018-09-01 23:17:06 +02:00
Gabriel Scherer d09349f631 rename parsing/parser_menhir into parsing/parser 2018-09-01 23:17:06 +02:00
Gabriel Scherer f571282d7d menhir parser: rename MenhirLib into CamlinternalMenhirLib
The goal of this change is to avoid conflicts encountered by
compiler-libs users that would also use their own MenhirLib runtime
for their own parsers.

I first tried to implement a solution to this module-name-conflict
issue using module aliases and -open, but this proven too fragile and
too difficult to get right.
2018-09-01 23:17:04 +02:00
Gabriel Scherer a16523469a udpate .depend and .gitignore for menhir files 2018-09-01 23:17:03 +02:00
Francois Berenger 5b884d6244 Unix fsync (#1839)
* added otherlibs/unix/fsync.c and otherlibs/unix/unix.ml

* add Unix.fsync

* added otherlibs/win32unix/fsync.c

* Unix.fsync for windows

* big typo

* Rewrite Unix.fsync stub for Windows

* belts and braces: fail in the case of named pipe

* Add missing include

* corrected header

* better ocamldoc for fsync

* rm fsync.c from the UNIX_FILES list

* updated Changes for Unix.fsync

* Use _commit instead of FlushFileBuffers

* Include <io.h>
2018-07-31 07:57:21 +02:00
Florian Angeletti 4be6cafcc3
manual, code example preprocessor : full conversion to compiler-libs (#1863)
* manual tools: use toploop directly in caml_tex2
* manual tool: improved error messages
* manual: always print errors and warnings
* fix nefarious interaction with GPR#1120
* move manual/tools/caml_tex2 to tools/caml_tex
* Basic text for caml-tex
2018-07-25 10:38:08 +02:00
Sébastien Hinderer 76db83e384 Remove /package-macosx from .gitignore -- no longer relevant 2018-07-02 13:36:04 +02:00
Sébastien Hinderer d3e73595e5 Merge the asmrun and byterun directories into the runtime directory 2018-06-28 17:50:33 +02:00
Sébastien Hinderer 507f27ccb0 Makefile, .gitignore: remove `make backup` leftovers 2018-06-20 17:16:35 +02:00
Sébastien Hinderer e09d24d270 Remove ocamlbuild leftovers in .gitattribute and .gitignore 2018-06-20 17:08:07 +02:00
Nicolás Ojeda Bär 6ab67ad4f9 Port win-unicode test to ocamltest 2018-05-22 07:13:50 +02:00
Sébastien Hinderer 342dc8f941 Update .gitignore
This is a follow-up to GPR #1784. Since config/auto-aux/hashbang4
is now removed by ./configure, it does not need to be in .gitignore
any longer.
2018-05-19 10:16:16 +02:00
Sébastien Hinderer 3dc7ac6c70 .gitignore cleanup
This commit removes the entries related to testsuite/tests/ that
are no longer useful.
2018-04-27 17:59:08 +02:00
Sébastien Hinderer 3c98b3cb9c testsuite: move the codegen tool from the tests/asmgen to the tools directory 2018-04-26 20:58:14 +02:00
Sébastien Hinderer dac0778baa Migrate the unboxed-primitive-args test to ocamltest 2018-04-26 08:08:20 +02:00
Sébastien Hinderer e8f3a76f3a Migrate the unwind test to ocamltest 2018-04-25 20:59:25 +02:00
Sébastien Hinderer f3804bc3d5 Migrate the runtime-errors tests to ocamltest 2018-04-25 19:07:55 +02:00
Sébastien Hinderer bbff1b2cdd Migrate the output_obj test to ocamltest
This commit also renames the directory containing the test
from output_obj to output-complete-obj
2018-04-24 17:58:29 +02:00
Sébastien Hinderer 618805ea89 Migrate the tool-ocamldep-modalias tests to ocamltest 2018-04-20 11:52:22 +02:00
Sébastien Hinderer 8c5c7024d1 Migrate the lib-dynlink-native test to ocamltest 2018-04-17 10:43:24 +02:00
Sébastien Hinderer 4609ceb9d6 Migrate the lib-dynlink-bytecode tests to ocamltest 2018-04-10 20:41:33 +02:00
Sébastien Hinderer 109fa20244 Re-migrate the opaque tests to ocamltest 2018-04-04 16:44:23 +02:00
Sébastien Hinderer 575f13de78 Revert "Migrate the opaque tests to ocamltest"
This reverts commit 0a2671a252.

The test was actually not working so let's put trunk in a working
state again.
2018-04-04 14:40:10 +02:00
Sébastien Hinderer 0a2671a252 Migrate the opaque tests to ocamltest 2018-04-04 11:35:47 +02:00
Sébastien Hinderer 8c2d90543f Migrate the warnings tests to ocamltest 2018-04-03 19:41:15 +02:00
Sébastien Hinderer 584c607d91 Migrate the typing-multifile tests to ocamltest 2018-03-28 10:43:35 +02:00
Sébastien Hinderer 5636fc57cd .gitignore cleanup 2018-03-21 17:23:29 +01:00
Sébastien Hinderer eaa196c020 Improve handling of travis test results
On Travis, the testsuite is run twice: first with the normal runtime
and then with the debug runtime.

Before this commit, all the tests were built in the _ocamltest
directory and the _log file for the first run was overwritten by
the second one.

This commit makes sure the results of the test of the debug runtime go to
the _ocamltestd directory and the _logd file.

OCAMLTESTDIR should be an absolute path, not a relative one.
2018-03-21 12:32:37 +01:00
Sébastien Hinderer 18b9e58710 Make it possible to control where test results are logged
This commit logs the output of running tests to the file given in
the TESTLOG build variable whose value defaults to _log.
2018-03-21 12:32:22 +01:00
Sébastien Hinderer 56c7302dbb Migrate the float-unboxing test to ocamltest 2018-03-18 12:11:46 +01:00
Sébastien Hinderer 12a2695ddf Migrate the lib-unix/win-symlink test to ocamltest 2018-03-18 11:20:16 +01:00
Sébastien Hinderer d3f2d8b478 Migrate the lib-unix/win-stat test to ocamltest 2018-03-18 11:20:16 +01:00
Sébastien Hinderer fd05a7572b Migrate the lib-unix/common tests to ocamltest 2018-03-18 11:20:01 +01:00
Sébastien Hinderer a9aa39d735 Migrate the translprim tests to ocamltest
For an explanation of the changes in the reference files, see the log
message of the previous commit.
2018-02-20 18:18:48 +01:00
Jeremie Dimino 225d1c65b9 Prefix the compilation unit names of all modules in the stdlib
Except for the Camlinternal* modules and the new Stdlib module, all
modules in the stdlib now compile to Stdlib__<module>.

Pervasives is renamed to Stdlib and now contains a list of aliases
from the long names to the short ones, so that from inside and outside
the stdlib we can refer to the standard modules as just List or
Stdlib.List rather than Stdlib__list.

In order to avoid printing the long names in error messages and in the
toplevel, the following heuristic is added to Printtyp: given a path
Foo__bar, if Foo.Bar exists and is a direct or indirect alias to
Foo__bar, then prefer Foo.Bar.

A bootstrap step was required to replace Pervasives by Stdlib as the
module opened by default.
2018-02-12 08:29:16 +00:00
Sébastien Hinderer bf596845bf Add /testsuite/tests/lib-unix/common/utimes.txt to .gitignore 2017-12-14 15:53:18 +01:00
Gabriel Scherer b0a59c3e41
Merge pull request #1519 from shindere/migrate-expect-tests
Migrate expect tests to ocamltest
2017-12-12 10:18:15 +01:00
Gabriel Scherer 2ed156cf7f
Merge branch 'trunk' into fix_unix_utimes_windows_dst 2017-12-10 17:11:47 +01:00
Sébastien Hinderer cefbe81060 Migrate typing-misc tests to ocamltest 2017-12-08 19:16:56 +01:00
Sébastien Hinderer 72bf205ea2 Migrate tests under testsuite/tests/basic to ocamltest 2017-11-30 18:07:55 +01:00
Sébastien Hinderer 4afc889264 Improve error handling while running the testsuite (#1443)
Since the output of ocamltest is piped, it is not possible to access its
exit code, especially under Posix-compliant shells like dash which
do not provide an equivalent to Bash's pipefail option.

This commit thus uses a stamp file which is created when a test fails.
If this file exists after all the tests have been run, an error is
reported.
2017-10-27 17:22:22 +02:00
Nicolas Ojeda Bar af20b3e531 Unix.utimes: use native Windows API to avoid unintended DST timestamp shift 2017-10-26 12:05:47 +02:00
David Allsopp d3f5027659 Missing testsuite entries in .gitignore 2017-10-25 23:54:39 +01:00
Sébastien Hinderer 5d36050708 Merge pull request #1433 from lpw25/remove-pr6322-from-gitignore
Remove non-existent file from .gitignore
2017-10-17 16:21:03 +02:00
Leo White a5514817b7 Remove non-existent file from .gitignore 2017-10-17 14:55:38 +01:00
David Allsopp bc6b3cf118 Missing ignore files for win-symlink test 2017-10-12 20:29:10 +01:00