Commit Graph

26 Commits (f6279a64b5f8812fed05e8bfeaa9bffcf7b6933f)

Author SHA1 Message Date
David Allsopp f6279a64b5
Switch the compiler CI builds from Travis to GitHub actions (#10036)
* Switch compiler builds and tests to GitHub actions

* Expose ${cc} in ocamltest

* Allow lib-bigarray-2/bigarrfml.ml to run on 32-bit

* Simplify environment variables passed to scripts

* Reduce matrix to 3 builds

* Move minimum build into Jenkins other-configs
2020-11-24 14:16:31 +01:00
Greta Yorsh 3f36ed3d74 Tests for -stop-after scheduling 2019-10-30 19:05:23 +00:00
Sébastien Hinderer fec02ff66d ocamltest: define and export the arch variable 2019-04-17 15:48:10 +02:00
Sébastien Hinderer b56c4ff3d0
Get rid of the direct call to the C preprocessor in the testsuite (#8528)
Call the C preprocessor through the C compiler rather than calling it
directly.

This required the definition of a new ocamltest variable,
ocaml_filetype_flag, which makes it possible to override the filetype
inferred by the compiler from the extnesion of the source file.
2019-03-21 18:12:43 +01:00
Sébastien Hinderer 8265d47b19 ocamltest: introduce the last_flags variable 2018-04-26 14:17:15 +02:00
Sébastien Hinderer d9d3d9ab06 ocamltest: make the MKEXE build variable available 2018-04-24 17:51:10 +02:00
Sébastien Hinderer d2aea11342 ocamltest: introduce a few file path variables
This commit introduces the ocamlrun, ocamlc_byte and ocamlopt_byte variable.
They contain the paths to the corresponding executable files.
For ocamlrun, the selected runtime-variant is taken into account.
2018-04-20 11:52:22 +02:00
Sébastien Hinderer b99161d2c4 ocamltest: make a few build variables available in the environment
This commit makes the bytecc_libs, nativecc_libs and mkdll variables
available in ocamltest's environment.
2018-04-18 18:28:12 +02:00
Sébastien Hinderer ef21af5942 ocamltest: add support for the C# compiler
This commit adds:

- The csharp-compiler test that passes when the compiler is available

- The csc and csc_flags variables to invoke the compiler from tests
2018-04-18 17:24:57 +02:00
Sébastien Hinderer 79b06e109a ocamltest: add the sharedobjext variable 2018-04-17 10:43:24 +02:00
Sébastien Hinderer 2b584dd735 ocamltest: introduce the shared_library_cflags variable 2018-04-17 10:43:24 +02:00
Sébastien Hinderer e8946d4575 ocamltest: cosmetic fix 2018-04-17 10:43:24 +02:00
Sébastien Hinderer 6b1ff1198e ocamltest: make the objext variable available in the environment 2018-04-10 20:41:33 +02:00
Sébastien Hinderer 487cc660aa ocamltest: introduce the use_runtime variable
This is used to disable the use of the "-use-runtime" command-line option.
2018-04-10 20:41:23 +02:00
Sébastien Hinderer 757b235367 ocamltest: introduce the ocaml_script_as_argument variable
For most of the toplevel tests the test file is provided as
the standard input of the toplevel. For a few toplevel tests, though,
the name of the test file is passed to the toplevel on the command-line.

This commit introduces the ocaml_script_as_argument variable to let
each test specify how the test file should be passed to the toplevel.

By default, the standard input of the toplevel is redirected to the test file.
2018-04-06 09:31:03 +02:00
Sébastien Hinderer 62a7da72fe ocamltest: introduce the binary_modules variable
This lets one specify additional binary modules to include at link time
2018-04-03 22:06:35 +02:00
Sébastien Hinderer cf79d7d8a7 ocamltest: implement the ocamldebug action 2018-03-21 17:23:29 +01:00
Sébastien Hinderer 1f24a7589c ocamltest: define the compiler_stdin variable 2018-03-16 07:40:58 +01:00
Sébastien Hinderer 30793f1e1a ocamltest: add the compile_only variable
When set to true, test programs are only compiled, not linked
2018-03-06 14:41:20 +01:00
octachron ece7e44d1a ocamltest: machinery for ocamldoc tests
* a new test ocamldoc
* three new modifiers: html, latex and man for each ocamldoc backend
* new variables:
   * plugins
   * skip_header_lines, skip_header_bytes
   * ocamldoc_{backend,exit_status,flags,output,reference}
* make it possible to skip lines in the result file in text mode
* check_output reads skip_header_{lines,bytes} when comparing
output and reference files
2018-03-06 11:58:10 +01:00
Sébastien Hinderer 966f7edb63 ocamltest: add variables to pass flags to ocamllex and ocamlyacc 2018-03-01 16:44:54 +01:00
Sébastien Hinderer 2fc46409b8 ocamltest: introduce the ocamlrunparam variable 2018-02-27 18:32:32 +01:00
Sébastien Hinderer 65ada89479 ocamltest: move and rename variable
Builtin_variables.ld_library_path is now
Ocaml_variables.caml_ld_library_path
2018-02-27 18:32:32 +01:00
Sébastien Hinderer 1b87cdd1df ocamltest: rename the source_modules variable to all_modules and make it public
This variable lists the files that need to be compiled and linked
to build a test.

By default, its value is derived from the "modules" variable and the
name of the test file. But it can now be overriden, which turns
out to be necessary, sometimes, e.g. when the modules have been
compiled separately.
2018-02-07 19:06:31 +01:00
Sébastien Hinderer 35085dc4fa ocamltest: introduce the possibility to compile only one module 2018-02-02 13:06:40 +01:00
Sébastien Hinderer f0b9b8e9c4 ocamltest: refactoring and implementation of hooks 2017-11-23 17:04:46 +01:00