Skip to content

Commit

Permalink
Add stdin_and_intf test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed Nov 4, 2019
1 parent 2438be4 commit df847c8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/cli/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,13 @@
(alias
(name runtest)
(action (diff stdin_and_impl.ref stdin_and_impl.output)))

(rule
(targets stdin_and_intf.output)
(action
(with-outputs-to %{targets}
(system "%{bin:ocamlformat} %{read-lines:stdin_and_intf.opts} < stdin_and_intf.stdin"))))

(alias
(name runtest)
(action (diff stdin_and_intf.ref stdin_and_intf.output)))
1 change: 1 addition & 0 deletions test/cli/sample/a.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val x : string
1 change: 1 addition & 0 deletions test/cli/stdin_and_intf.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--intf -
1 change: 1 addition & 0 deletions test/cli/stdin_and_intf.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val x : string
1 change: 1 addition & 0 deletions test/cli/stdin_and_intf.stdin

0 comments on commit df847c8

Please sign in to comment.