Skip to content

Commit

Permalink
Some tweaks before release (#1121)
Browse files Browse the repository at this point in the history
* Update CHANGES.md
* Add .ocamlformat dep in test/cli and test/failing
* Add .ocamlformat to disabled test
  • Loading branch information
Julow authored Nov 4, 2019
1 parent b3d2ce1 commit 80709d9
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### (master)
### 0.12 (2019-11-04)

#### Changes

Expand Down
6 changes: 6 additions & 0 deletions test/cli/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
profile = ocamlformat
break-cases = fit
margin = 77
parse-docstrings = true
wrap-comments = true
max-iters = 2
14 changes: 14 additions & 0 deletions test/cli/dune.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

(rule
(targets err_default_several_file.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_default_several_file.opts}"))))
Expand All @@ -11,6 +12,7 @@

(rule
(targets err_inplace_and_check.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_inplace_and_check.opts}"))))
Expand All @@ -21,6 +23,7 @@

(rule
(targets err_inplace_and_output.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_inplace_and_output.opts}"))))
Expand All @@ -31,6 +34,7 @@

(rule
(targets err_no_arg.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_no_arg.opts}"))))
Expand All @@ -41,6 +45,7 @@

(rule
(targets err_output_and_check.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_output_and_check.opts}"))))
Expand All @@ -51,6 +56,7 @@

(rule
(targets err_output_several_files.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_output_several_files.opts}"))))
Expand All @@ -61,6 +67,7 @@

(rule
(targets err_stdin_and_file.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_stdin_and_file.opts}"))))
Expand All @@ -71,6 +78,7 @@

(rule
(targets err_stdin_and_inplace.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_stdin_and_inplace.opts}"))))
Expand All @@ -81,6 +89,7 @@

(rule
(targets err_stdin_name_unknown_ext.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_stdin_name_unknown_ext.opts} < err_stdin_name_unknown_ext.stdin"))))
Expand All @@ -91,6 +100,7 @@

(rule
(targets err_stdin_no_kind.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "! %{bin:ocamlformat} %{read-lines:err_stdin_no_kind.opts}"))))
Expand All @@ -101,6 +111,7 @@

(rule
(targets name_unknown_ext.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "%{bin:ocamlformat} %{read-lines:name_unknown_ext.opts}"))))
Expand All @@ -111,6 +122,7 @@

(rule
(targets stdin_and_impl.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "%{bin:ocamlformat} %{read-lines:stdin_and_impl.opts} < stdin_and_impl.stdin"))))
Expand All @@ -121,6 +133,7 @@

(rule
(targets stdin_and_intf.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "%{bin:ocamlformat} %{read-lines:stdin_and_intf.opts} < stdin_and_intf.stdin"))))
Expand All @@ -131,6 +144,7 @@

(rule
(targets stdin_and_name.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(system "%{bin:ocamlformat} %{read-lines:stdin_and_name.opts} < stdin_and_name.stdin"))))
Expand Down
1 change: 1 addition & 0 deletions test/cli/gen/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ let emit_test test_name entry =
Format.printf {|
(rule@
(targets %s.output)@
(deps .ocamlformat)@
(action@
@[%a@]))@
|} test_name run_action ();
Expand Down
6 changes: 6 additions & 0 deletions test/disabled/dir1/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
profile = ocamlformat
break-cases = fit
margin = 77
parse-docstrings = true
wrap-comments = true
max-iters = 2
6 changes: 6 additions & 0 deletions test/failing/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
profile = ocamlformat
break-cases = fit
margin = 77
parse-docstrings = true
wrap-comments = true
max-iters = 2
1 change: 1 addition & 0 deletions test/failing/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(rule
(targets list_and_comments.ml.output)
(deps .ocamlformat)
(action
(with-outputs-to %{targets}
(run %{bin:ocamlformat} %{dep:list_and_comments.ml}))))
Expand Down

0 comments on commit 80709d9

Please sign in to comment.