Skip to content

Commit 977cfca

Browse files
committed
Make functor renaming test run
1 parent b59817c commit 977cfca

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

src/ocaml-index/lib/dune

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
(library
22
(name lib)
3-
(libraries ocaml_typing ocaml_parsing ocaml_utils merlin_utils
4-
merlin_analysis merlin_index_format unix)
5-
(flags :standard -open Ocaml_typing -open Ocaml_parsing -open Ocaml_utils
6-
-open Merlin_utils -open Merlin_analysis -open Merlin_index_format))
3+
(libraries
4+
ocaml_typing
5+
ocaml_parsing
6+
ocaml_utils
7+
merlin_utils
8+
merlin_analysis
9+
merlin_index_format)
10+
(flags
11+
:standard
12+
-open Ocaml_typing
13+
-open Ocaml_parsing
14+
-open Ocaml_utils
15+
-open Merlin_utils
16+
-open Merlin_analysis
17+
-open Merlin_index_format))

tests/test-dirs/occurrences/project-wide/for-renaming/dune

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/test-dirs/occurrences/project-wide/for-renaming/r-with-functors.t/dune

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/test-dirs/occurrences/project-wide/for-renaming/r-with-functors.t/dune-project

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/test-dirs/occurrences/project-wide/for-renaming/r-with-functors.t/run.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

2-
$ $DUNE build @ocaml-index
2+
$ $OCAMLC -bin-annot-cms -bin-annot-occurrences -c func.mli func.ml
3+
$ $OCAMLC -bin-annot-cms -bin-annot-occurrences -o main.exe func.cmo main.ml
4+
$ ocaml-index aggregate func.cms func.cmsi main.cms -o index.merlin-index
35

4-
$ $DUNE exec ./main.exe
6+
$ ./main.exe
57
Hello world!
68

79
We expect 2 occurrences in func.ml, 1 in func.mli and 2 in main.ml

0 commit comments

Comments
 (0)