-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: do not depend on ocamlformat in tests (#10745)
Signed-off-by: Etienne Millon <me@emillon.org>
- Loading branch information
Showing
10 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(env | ||
(_ | ||
(binaries ../../utils/ocamlformat.exe))) | ||
|
||
(cram | ||
(applies_to :whole_subtree) | ||
(deps %{bin:ocamlformat})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(env | ||
(_ | ||
(binaries ../../utils/ocamlformat.exe))) | ||
|
||
(cram | ||
(applies_to :whole_subtree) | ||
(deps %{bin:ocamlformat})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(* This can be used when testing formatting rules instead of calling the real | ||
ocamlformat binary. But when doing so, be careful not to expose it to too | ||
many tests because it will be also be used by `@fmt` in dune itself. | ||
*) | ||
|
||
let () = | ||
let args = | ||
Sys.argv | ||
|> Array.to_list | ||
|> List.tl | ||
|> List.map (fun s -> Printf.sprintf "%S" s) | ||
|> String.concat " " | ||
in | ||
Printf.eprintf "fake ocamlformat is running: %s\n" args; | ||
Printf.printf "(* fake ocamlformat output *)" | ||
;; |