Commit Graph

31 Commits (540996d21ee3793a1cecce252c81fb76a6b9fd61)

Author SHA1 Message Date
Nicolás Ojeda Bär 540996d21e Remove Spacetime 2020-10-08 20:28:12 +02:00
Xavier Leroy 133102cfc7 ocamltest: add the "naked_pointers" action
It succeeds if the runtime system supports naked pointers,
and fails otherwise (e.g. if configured with --disable-naked-pointers).
2020-06-22 19:37:15 +02:00
Sébastien Hinderer a50d177c2a ocamltest: improve the way executable file extension is determined
Use the EXE build variable rather than OS type to determine the
extension of executable files
2020-06-18 11:07:43 +02:00
David Allsopp da943eac54 Share generation code between ocamltest and utils
ocamltest/ocamltest_config.ml now generated using same make macros as
utils/config.ml.
2020-06-06 13:36:00 +01:00
Enguerrand Decorne b7f0494df5 Rewrite the instrumented runtime to store traces in the CTF format.
The instrumentation code in the instrumented runtime was replaced
with new APIs to gather runtime statistics and output them in a new format
(Common Trace Format).
This commit also exposes new functions in the Gc module to pause or resume
instrumentation during a program execution (Gc.eventlog_pause and
Gc.eventlog_resume).
2020-04-30 10:32:01 +02:00
Greta Yorsh 3f36ed3d74 Tests for -stop-after scheduling 2019-10-30 19:05:23 +00:00
Greta Yorsh 63f62123df Improve test for function sections 2019-07-15 10:25:26 +01:00
David Allsopp a9a76b58a8 Add hasstr and hassysthreads ocamltest actions
Skipped if the given library hasn't been built.
2019-01-08 17:27:42 +01: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 5b4d364733 ocamltest: fix typo in config module 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
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 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 1c3dd7755e ocamltest: add the afl-support test 2018-02-06 15:05:28 +01:00
Sébastien Hinderer c04cecc07e ocamltest: clarify the builtin tests a bit
This commit distinguishes the OS tests from the library tests.

It introduces the "libunix" and "libwin32unix" tests to figure out which
library is used.

It also changes to meaning of the "windows" test to pass on all Windows platforms.

Finally, a "not-windows" test is introduced, to be used until negation
on tests is implemented.
2018-02-06 11:48:55 +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 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 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