Skip to content

Commit

Permalink
Add reproduction case for ocaml#1946
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Mar 14, 2019
1 parent 6998a4c commit 6e5580e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,14 @@
test-cases/github1856
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name github1946)
(deps (package dune) (source_tree test-cases/github1946))
(action
(chdir
test-cases/github1946
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name github20)
(deps (package dune) (source_tree test-cases/github20))
Expand Down Expand Up @@ -1383,6 +1391,7 @@
(alias github1616)
(alias github1811)
(alias github1856)
(alias github1946)
(alias github20)
(alias github24)
(alias github25)
Expand Down Expand Up @@ -1540,6 +1549,7 @@
(alias github1616)
(alias github1811)
(alias github1856)
(alias github1946)
(alias github20)
(alias github24)
(alias github25)
Expand Down
13 changes: 13 additions & 0 deletions test/blackbox-tests/test-cases/github1946/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(library
(name usesppx1)
(modules ())
(preprocess (pps ppx1)))

(library
(name usesppx2)
(modules ())
(preprocess (pps ppx2)))

(alias
(name default)
(action (echo %{read:.merlin})))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github1946/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.8)
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github1946/ppx1/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name ppx1)
(kind ppx_rewriter))
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github1946/ppx2/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name ppx2)
(kind ppx_rewriter))
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/github1946/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ dune build --display short --profile release | grep "FLG -ppx"
[1]

0 comments on commit 6e5580e

Please sign in to comment.