| 1 |
Test that the "dune tools exec ocamlmerlin" command causes merlin to be |
| 2 |
locked, built and run when the command is run from a dune project with |
| 3 |
a lockdir containing an "ocaml" lockfile. |
| 4 |
|
| 5 |
$ mkrepo |
| 6 |
$ make_mock_merlin_package |
| 7 |
$ mk_ocaml 5.2.0 |
| 8 |
|
| 9 |
$ setup_merlin_workspace |
| 10 |
|
| 11 |
$ cat > dune-project <<EOF |
| 12 |
> (lang dune 3.16) |
| 13 |
> |
| 14 |
> (package |
| 15 |
> (name foo) |
| 16 |
> (allow_empty) |
| 17 |
> (depends |
| 18 |
> (ocaml (= 5.2.0)))) |
| 19 |
> EOF |
| 20 |
|
| 21 |
$ dune build |
| 22 |
|
| 23 |
$ dune tools exec ocamlmerlin |
| 24 |
Solution for _build/.dev-tools.locks/merlin: |
| 25 |
- merlin.0.0.1 |
| 26 |
- ocaml-base-compiler.5.2.0 |
| 27 |
- ocaml-compiler.5.2.0 |
| 28 |
Running 'ocamlmerlin' |
| 29 |
hello from fake ocamlmerlin |