Commit Graph

86 Commits (master)

Author SHA1 Message Date
Gabriel Scherer 810c924dba ocamltest/Makefile: provide standard all, allopt, opt.opt targets
(no change entry needed)
2018-06-07 16:39:38 +02:00
Sébastien Hinderer 67d47395f8 ocamltest: add the windows-unicode test 2018-05-22 07:13:50 +02:00
Sébastien Hinderer f1adcb8362 ocamltest: add the asmgen test 2018-04-27 17:51:57 +02:00
Sébastien Hinderer d9d3d9ab06 ocamltest: make the MKEXE build variable available 2018-04-24 17:51:10 +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 0e19db1672 ocamltest: introduce the native-dynlink action 2018-04-17 10:43:24 +02:00
Sébastien Hinderer 3eb5ce04f0 ocamltest: make the extension of object files available in config module 2018-04-10 20:41:33 +02:00
Sébastien Hinderer cf79d7d8a7 ocamltest: implement the ocamldebug action 2018-03-21 17:23:29 +01:00
Sébastien Hinderer 5156a50444 ocamltest: define the ocamldoc-related variable earlier in Makefile 2018-03-21 17:23:29 +01:00
Sébastien Hinderer fab457a8f5 ocamltest: implement the has_symlink test
Lets one test whether symlinks are available on the target platform
2018-03-16 07:40:58 +01:00
Sébastien Hinderer c715d93da5 ocamltest: Makefile improvements
- Use := everywhere
- Merge two ifeq blocks
2018-03-16 07:40:58 +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 d00beb71e3 ocamltest: distinguish toplevels from compilers 2018-02-27 18:32:32 +01:00
Sébastien Hinderer c36849d915 ocamltest: define the compilers with classes
This commit also introduces the ocaml_tools module.
2018-02-27 18:32:32 +01:00
Sébastien Hinderer 3ecfddf4d2 ocamltest: rename and complete the AFL-related tests 2018-02-19 15:49:12 +01:00
Sébastien Hinderer 1af683fab1 ocamltest: add tests for flambda and spacetime support 2018-02-08 14:21:07 +01:00
Sébastien Hinderer 0078dc54df ocamltest: rename the Filetype module into Ocaml_filetypes
This code is clearly OCaml-specific.
2018-02-07 17:58:44 +01:00
Sébastien Hinderer 1c3dd7755e ocamltest: add the afl-support test 2018-02-06 15:05:28 +01:00
Sébastien Hinderer 5229928c62 ocamltest: add actions to test whether we are running on a BSD system 2018-02-05 14:48:56 +01:00
Sébastien Hinderer 8c75ba867f ocamltest: introduce the result module
This module contains types describing test results and functions to
build and use them.

Before this commit, only successful actions were returning an environemnt.
Starting from this commit, actions always return an environemnt, no matter
their result.

This will make it possible to write negations over tests.
2018-02-05 08:49:49 +01:00
Sébastien Hinderer 8ae50ef1d6 ocamltest: introduce the ocaml_compilers module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer c0ce2cd2d9 ocamltest: introduce the ocaml_commands module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer 6f4ae1d0e8 ocamltest: introduce the ocaml_flags module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer a029ecea18 ocamltest: introduce the ocaml_directories module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer a828e36d37 ocamltest: introduce the ocaml_files module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer 1ab45a2c06 ocamltest: add the OCaml-specific shared-libraries action
This action passes when support for shared libraries has been
configured. Otherwise, it skips.
2018-01-22 16:40:18 +01:00
Sébastien Hinderer de80a1dbe9 ocamltest: add the flat-float-array and no-flat-float-array actions
These actions can be used to make the execution of a test depend on
whether the compiler has been configured with -flat-float-array or
-no-flat-float-array.
2017-12-08 19:16:56 +01:00
Sébastien Hinderer 60f600c473 ocamltest: silence calls to cl when used as a C preprocessor
When using cl as a C preprocessor, redirect its standard error
to NULL.
2017-11-30 18:07:55 +01:00
Sébastien Hinderer f0b9b8e9c4 ocamltest: refactoring and implementation of hooks 2017-11-23 17:04:46 +01:00
Sébastien Hinderer cee23d79a9 ocamltest: add actions to test whether tests are run on Unix or Windows 2017-10-09 17:09:53 +02:00
Gabriel Scherer a202aa032b rename the configure-time safe-string options for clarity
-(un)safe-string becomes -(no-)force-safe-string
-(un)safe-string-default becomes -default-unsafe-string

Config.safe_string (and Clflags.unsafe_string) keep their name for
backward-compatibility, as well as the C define CAML_SAFE_STRING
(which corresponds to -force-safe-string).
2017-10-02 14:42:19 +02:00
Sébastien Hinderer c8281d1fdf ocamltest: only test the compilers that have actually been compiled
Before this commit, ocamltest systematically tried to use both native
and bytecode compilers, no matter what had been configured.

So the native tests were tried even when configure was called with
the -no-native-compiler option, leading to expected failures.

This commit fixes this and makes sure the test and actions involving native
compilers are run only when those compilers have actually been compiled.
2017-09-22 11:36:41 +02:00
Sébastien Hinderer 635b5edcc1 ocamltest: the test driver for the OCaml compiler
This commit contains:

- The initial version of the tool itself, in the ocamltest directory
- The required additions to the main .gitignore and .merlin files.

The integration of ocamltest in OCaml's main build system and its use
in the testsuite are not part of this commit.

Credits go to David Allsopp for
- Extending the computation of ocamlsrcdir to the Windows case
- Making ocamltest compile when flexlink
is being bootstrapped.
2017-09-18 17:40:14 +02:00