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
David Allsopp
41510b0202
Tiny tweak to .gitignore (MPR#7509)
2017-10-12 11:44:49 +01:00
Xavier Leroy
f7010e8398
Split C-- tests off tests/asmcomp and into tests/asmgen
...
tests/asmgen contains the custom C-- code generator and the tests written in C--
tests/asmcomp contains the tests written in OCaml
The purpose of this split is to make it easier to skip or remove entirely the asmgen tests in the future, and to adapt the other tests to the new test infrastructure.
Also: modernize the asm stubs in asmgen and remove the stubs for no-longer-supported architectures.
2017-10-03 15:43:17 +02:00
Nicolas Ojeda Bar
99878e4839
Simplify exec_tests.precheck
2017-09-27 10:49:30 +01:00
Nicolas Ojeda Bar
6a6317a9da
Disable win-unicode/exec_tests test
2017-09-27 10:49:30 +01:00
Nicolás Ojeda Bär
9fe6d0e2c2
Unicode support for the Windows runtime ( #1200 )
...
* Add support code
* Explicitly reference ANSI Windows APIs
* Adapt Sys.is_directory
* Adapt ocamlrun
* Add Changes entry
* Add testsuite
* Adapt Unix.open_process{_in,_out,_full,}, Unix.create_process{_env,}
* Adapt headernt.c
* Adapt Pervasives.open_{in,out}, Filename.temp_file, etc.
* Adapt Sys.file_exists
* Adapt Sys.remove
* Adapt Sys.chdir
* Adapt Sys.getcwd
* Adapt Sys.getenv
* Adapt Sys.command
* Adapt Sys.readdir
* Adapt CPLUGINS
* Remove use of FormatMessageA, CreateFileA
* Adapt Unix.mkdir
* Adapt Unix.openfile
* Adapt Unix.readlink
* Adapt Unix.rename
* Adapt Unix.{LargeFile,}.{l,}stat
* Adapt Unix.system
* Adapt Unix.{open,read}dir
* Adapt Unix.link
* Adapt Unix.symlink
* Adapt Unix.getcwd
* Adapt Unix.rmdir
* Adapt Unix.utimes
* Adapt Unix.unlink
* Adapt Unix.chdir
* Adapt Unix.chmod
* Adapt Unix.{execv,execve,execvp,execvpe}
* Compile with -DUNICODE -D_UNICODE under Windows
* Add configure-time switch, Config.windows_unicode
* Adapt Unix.putenv
* Re-implement Unix.environment using GetEnvironmentStrings()
* Use Unicode-aware flexdll
* Adapt Unix.environment
* AppVeyor: bootstrap flexdll
* Adapt tests/embedded/cmmain.c
* Adapt tests/lib-dynlink-csharp/entry.c
* Remove exec tests
* Fixup
* Pass -municode to MinGW compiler
* Try to fix tests/embedded
* Adapt Sys.rename
* Correct Changes entry
* Makefile.several: use $(O) and $(NATIVECODE_ONLY)
* Display => skipped correctly for tests/win-unicode
* Add missing casts to execv* calls
It's not clear why these aren't necessary for with char, but they are
necessary with wchar_t on GCC (but not MSVC).
* Missing header in systhreads (Win32 only)
* Revert "Pass -municode to MinGW compiler"
This reverts commit a4ce7fb319c429068a5b9d1ab14a2cc3969c355f.
* Revert "Try to fix tests/embedded"
This reverts commit 5197d8922295b7b339b970ec3189374aa15de4b8.
* Revert "Remove exec tests"
This reverts commit 306ccef2e79eca5b38ecfa285b912c7bcf3e9f52.
* Don't pass $(LDFLAGS) when build ocamlc.opt
It's already included via CC anyway, and it causes Unicode problems for
Winodws (because the linker options need to be prefixed "-link" to go via
flexlink).
* Use wmain on Windows for ocamlrun
* Build Unicode applications on Windows
* Use wmain in headernt.c
* Minor correction to win-unicode Makefile
* Switch submodule to FlexDLL 0.36
* Build ocamlyacc as an ANSI application
* Revert "Fixup"
This reverts commit 500bd6b575ffd6c5b71c6953e55d740f0b090185.
* Fix casts for execvp/execve
* Remove tabs from test code
* Fix Changes entry
* shell32.lib is no longer necessary
* Free allocated string
* Changes: signal breaking change
* Disable exec_tests
* Protect with CAML_INTERNALS
2017-09-18 17:41:29 +02:00
Sébastien Hinderer
beb4146387
Tell git to ignore the _ocamltest directories created by ocamltest
2017-09-18 17:40:14 +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
Leo White
e1fd8d5d3a
Merge pull request #1332 from bobot/fix_output_complete_obj
...
[OCamlc] fixes output-complete-object
2017-09-16 06:54:58 +01:00
François Bobot
626a297ec3
[Tests] add gitignore for output_obj files
2017-09-15 21:34:34 +02:00
Damien Doligez
f086eda9c0
add -no-flat-float-array configure option
2017-09-15 18:24:36 +02:00
Damien Doligez
f06344a026
ignore and clean up new generated files in tests/typing-multifile
2017-07-19 15:12:49 +02:00