Commit Graph

107 Commits (540996d21ee3793a1cecce252c81fb76a6b9fd61)

Author SHA1 Message Date
Nicolás Ojeda Bär 540996d21e Remove Spacetime 2020-10-08 20:28:12 +02:00
David Allsopp df705bce12 Fix running toplevel tests in ocamltest
Fault in the logic for toplevel tests meant the win-unicode tests were
never running.
2020-07-28 10:57:44 +01:00
Nicolás Ojeda Bär bd510cdf93
ocamltest: do not compare binaries produced by ocamlopt.opt and ocamlopt.byte (#9677) 2020-06-23 17:36:37 +02:00
Nicolás Ojeda Bär a8cd077083 check-typo 2020-06-08 11:17:22 +02:00
Nicolás Ojeda Bär 6ff2c11b25 ocamltest: do not overwrite user-defined variables 2020-06-05 07:40:17 +02:00
Nicolás Ojeda Bär b77b13d812 Use Sys.{win32,...} instead Sys.os_type 2020-05-27 19:19:22 +02:00
Nicolás Ojeda Bär 6c311f3007 stop passing the constant ocamlsrcdir to each function 2020-05-27 19:19:22 +02:00
Nicolás Ojeda Bär 9b748843bb
Use List.find_map (#9589) 2020-05-21 08:51:16 +02:00
Florian Angeletti bb15443a23 Revert "Make asmgen tests run"
This reverts commit e168edc67d.
2020-02-24 11:20:14 +01:00
Guillaume Bury e168edc67d Make asmgen tests run
Relative paths are needed in ocamltest (rather than plain executable
file names), because else 'execvp' searches for the executable in the
PATH instead of the current directory.
2020-02-20 15:37:30 +01:00
Greta Yorsh 3f36ed3d74 Tests for -stop-after scheduling 2019-10-30 19:05:23 +00:00
Greta Yorsh e08a9688fc Eliminate dead `ICatch` handlers (#2321) 2019-08-06 12:23:13 +01: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
Armaël Guéneau 00411d41f4 ocamltest: explicitly set OCAML_ERROR_STYLE
Explicitly set OCAML_ERROR_STYLE to its default value when running tests,
instead of inheriting the one coming from the outside environment.
2019-02-27 15:13:56 +01:00
David Allsopp 23d582f58e Eliminate assert false for corrupt cmas 2019-02-01 16:18:53 +01:00
David Allsopp 25995a03fc Skip toplevel tests in -no-shared-libs
If the toplevel doesn't support shared libraries, skip any toplevel
tests which will load cma files which have C stubs (e.g. unix.cma). The
present implementation is suboptimal - really, it would be better to
create a custom toplevel, but it only affects one test at the moment.
2019-02-01 16:18:53 +01:00
David Allsopp a3172267c4 Fix using -custom with -no-shared-libs
ocamltest links bytecode executables in custom-runtime mode if they have
C files, but it should also do this for any .cma files which require C
stubs on platforms which don't support dynamic C libraries.
2019-02-01 16:18:53 +01:00
David Allsopp 92709c09b5 Add no-shared-libraries to ocamltest 2019-02-01 16:18:53 +01:00
David Allsopp 97e9865aa9 Add debugger ocamltest action
Skipped if the debugger has not been built.
2019-01-08 17:27:42 +01:00
Jérémie Dimino 9124ab82d1
Deprecate Pervasives (#1605)
- inline Pervasives in Stdlib and re-add Pervasives as a deprecated
module that aliases all elements of Stdlib except the stdlib modules.

- remove special case for Stdlib.Pervasives in printtyp.ml
2018-08-27 12:42:14 +01:00
David Allsopp b5d1929e87 Whitespace and overlong line fixes. 2018-06-14 15:15:34 +01:00
David Allsopp 3eae3b9525 Allow MKDLL to be passed to ocamltest
Used in the testsuite to override config/Makefile's setting of MKDLL.
2018-06-14 11:01:49 +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 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 27d9a618dc ocamltest: let the compile actions take the commandline variable into account 2018-04-19 09:07:28 +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 943cb5436e ocamltest: define a file type for object files 2018-04-17 10:43:24 +02:00
Sébastien Hinderer 9bcf7c5dbb ocamltest: include C headers directory when compiling a C module 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 75831ddb8b ocamltest: introduce the ocamlmklib action 2018-04-10 20:41:33 +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 4c92d7d994 ocamltest: let ocaml scripts receive arguments on the command-line 2018-04-06 16:44:12 +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 69caa9a74b ocamltest: the toplevel test should use the binary_modules variable 2018-04-06 08:12:58 +02:00
Sébastien Hinderer f50723087d ocamltest: let ocamlobjinfo know where its helper script is located 2018-04-05 23:05:12 +02:00
Sébastien Hinderer 66046ceb41 ocamltest: add support for invoking ocamlobjinfo 2018-04-05 19:36:29 +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 d71c61a104 ocamltest: the toplevel action should take the libraries variable into account 2018-03-22 09:49:54 +01: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 185f972731 ocamltest: native actions should skip when native compilers are disabled 2018-03-09 17:26: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