Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests not passing in Opam #2635

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,560 changes: 1,248 additions & 312 deletions test/passing/gen/dune.inc

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion test/passing/gen/gen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,21 @@ let emit_test test_name setup =
Printf.printf
{|
(rule
(deps .ocamlformat dune-project)%s
(deps .ocamlformat .hg)%s
(package ocamlformat)
(action
(with-stdout-to %s
(with-stderr-to %s.stderr
%s))))

(rule
(alias runtest)%s
(package ocamlformat)
(action (diff %s %s.stdout)))

(rule
(alias runtest)%s
(package ocamlformat)
(action (diff %s %s.stderr)))
|}
enabled_if_line output_fname test_name
Expand Down
2 changes: 2 additions & 0 deletions test/passing/refs.default/.hg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This file ensures that OCamlformat don't consider parent directories when
searching for configuration.
1 change: 0 additions & 1 deletion test/passing/refs.default/dune-project

This file was deleted.

2 changes: 2 additions & 0 deletions test/passing/refs.janestreet/.hg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This file ensures that OCamlformat don't consider parent directories when
searching for configuration.
1 change: 0 additions & 1 deletion test/passing/refs.janestreet/dune-project

This file was deleted.

2 changes: 2 additions & 0 deletions test/passing/refs.ocamlformat/.hg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This file ensures that OCamlformat don't consider parent directories when
searching for configuration.
1 change: 0 additions & 1 deletion test/passing/refs.ocamlformat/dune-project

This file was deleted.

Loading