diff --git a/test/blackbox-tests/dune.inc b/test/blackbox-tests/dune.inc index 6b28d4c3ef5..e0587465bfa 100644 --- a/test/blackbox-tests/dune.inc +++ b/test/blackbox-tests/dune.inc @@ -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)) @@ -1317,6 +1325,7 @@ (alias github1549) (alias github1560) (alias github1616) + (alias github1811) (alias github20) (alias github24) (alias github25) @@ -1470,6 +1479,7 @@ (alias github1549) (alias github1560) (alias github1616) + (alias github1811) (alias github20) (alias github24) (alias github25) diff --git a/test/blackbox-tests/test-cases/github1811/dune b/test/blackbox-tests/test-cases/github1811/dune new file mode 100644 index 00000000000..b33e1bf82e2 --- /dev/null +++ b/test/blackbox-tests/test-cases/github1811/dune @@ -0,0 +1,3 @@ +(library + (name foo) + (preprocess (action (with-stdout-to %{targets} (run cat %{input-file}))))) diff --git a/test/blackbox-tests/test-cases/github1811/dune-project b/test/blackbox-tests/test-cases/github1811/dune-project new file mode 100644 index 00000000000..43a1282a9fa --- /dev/null +++ b/test/blackbox-tests/test-cases/github1811/dune-project @@ -0,0 +1 @@ +(lang dune 1.7) diff --git a/test/blackbox-tests/test-cases/github1811/foo.ml b/test/blackbox-tests/test-cases/github1811/foo.ml new file mode 100644 index 00000000000..7fecab12d41 --- /dev/null +++ b/test/blackbox-tests/test-cases/github1811/foo.ml @@ -0,0 +1 @@ +let x = 42 diff --git a/test/blackbox-tests/test-cases/github1811/run.t b/test/blackbox-tests/test-cases/github1811/run.t new file mode 100644 index 00000000000..4bea95b9a5f --- /dev/null +++ b/test/blackbox-tests/test-cases/github1811/run.t @@ -0,0 +1,3 @@ +Check that %{targets} is forbidden in preprocessing actions + + $ dune build @all