Skip to content

Commit

Permalink
Add test for #1811
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
  • Loading branch information
jeremiedimino committed Feb 6, 2019
1 parent b4115f0 commit 4329158
Show file tree
Hide file tree
Showing 5 changed files with 18 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 @@ -503,6 +503,14 @@
test-cases/github1616
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name github1811)
(deps (package dune) (source_tree test-cases/github1811))
(action
(chdir
test-cases/github1811
(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 @@ -1317,6 +1325,7 @@
(alias github1549)
(alias github1560)
(alias github1616)
(alias github1811)
(alias github20)
(alias github24)
(alias github25)
Expand Down Expand Up @@ -1470,6 +1479,7 @@
(alias github1549)
(alias github1560)
(alias github1616)
(alias github1811)
(alias github20)
(alias github24)
(alias github25)
Expand Down
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github1811/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name foo)
(preprocess (action (with-stdout-to %{targets} (run cat %{input-file})))))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github1811/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.7)
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github1811/foo.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let x = 42
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github1811/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Check that %{targets} is forbidden in preprocessing actions

$ dune build @all

0 comments on commit 4329158

Please sign in to comment.