Skip to content

Commit

Permalink
Add tests for double echo inside with-stdout-to
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Dec 11, 2018
1 parent 13d06e6 commit 70f2e69
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/blackbox-tests/test-cases/double-echo/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(rule
(with-stdout-to foobar
(progn
(echo "foo")
(echo "bar"))))

(alias
(name default)
(action (echo %{read:foobar})))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/double-echo/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 1.6)
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/double-echo/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ dune build
bar

0 comments on commit 70f2e69

Please sign in to comment.