Skip to content

Commit 3697f0f

Browse files
author
Guillaume Petiot
authored
Check help files only for packages building binaries (#1629)
1 parent 03a2946 commit 3697f0f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Diff for: dune

+12-6
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,28 @@
1515
(:standard -noassert))))
1616

1717
(rule
18-
(with-stdout-to
19-
ocamlformat-help.actual
20-
(run ocamlformat --help=plain)))
18+
(action
19+
(with-stdout-to
20+
ocamlformat-help.actual
21+
(run %{bin:ocamlformat} --help=plain)))
22+
(package ocamlformat))
2123

2224
(rule
2325
(alias runtest)
26+
(package ocamlformat)
2427
(action
2528
(diff ocamlformat-help.txt ocamlformat-help.actual)))
2629

2730
(rule
28-
(with-stdout-to
29-
ocamlformat-rpc-help.actual
30-
(run ocamlformat-rpc --help=plain)))
31+
(action
32+
(with-stdout-to
33+
ocamlformat-rpc-help.actual
34+
(run %{bin:ocamlformat-rpc} --help=plain)))
35+
(package ocamlformat-rpc))
3136

3237
(rule
3338
(alias runtest)
39+
(package ocamlformat-rpc)
3440
(action
3541
(diff ocamlformat-rpc-help.txt ocamlformat-rpc-help.actual)))
3642

0 commit comments

Comments
 (0)