-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jules Aguillon <juloo.dsi@gmail.com>
- Loading branch information
Showing
19 changed files
with
109 additions
and
23 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(executable | ||
(name gen_dune_rules) | ||
(libraries cmdliner fmt unix) | ||
(modules gen_dune_rules) | ||
) | ||
(modules gen_dune_rules)) |
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
File renamed without changes.
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 @@ | ||
only one of --prelude or --prelude-str shoud be used |
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 @@ | ||
--prelude=a --prelude-str=b |
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,12 @@ | ||
(include dune.inc) | ||
|
||
(rule | ||
(targets dune.gen) | ||
(deps (source_tree .)) | ||
(action | ||
(with-stdout-to %{targets} | ||
(run ../gen_dune_rules.exe test_failure)))) | ||
|
||
(alias | ||
(name runtest) | ||
(action (diff dune.inc dune.gen))) |
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,44 @@ | ||
|
||
(rule | ||
(targets both_prelude.md.actual) | ||
(action | ||
(with-outputs-to %{targets} | ||
(system "! %{bin:ocaml-mdx} test --prelude=a --prelude-str=b %{dep:both_prelude.md}")))) | ||
|
||
(alias | ||
(name runtest) | ||
(action | ||
(diff both_prelude.md.expected both_prelude.md.actual))) | ||
|
||
(rule | ||
(targets in_toplevel.md.actual) | ||
(action | ||
(with-outputs-to %{targets} | ||
(system "! %{bin:ocaml-mdx} test %{dep:in_toplevel.md}")))) | ||
|
||
(alias | ||
(name runtest) | ||
(action | ||
(diff in_toplevel.md.expected in_toplevel.md.actual))) | ||
|
||
(rule | ||
(targets ml_file_not_found.md.actual) | ||
(action | ||
(with-outputs-to %{targets} | ||
(system "! %{bin:ocaml-mdx} test %{dep:ml_file_not_found.md}")))) | ||
|
||
(alias | ||
(name runtest) | ||
(action | ||
(diff ml_file_not_found.md.expected ml_file_not_found.md.actual))) | ||
|
||
(rule | ||
(targets part_not_found.md.actual) | ||
(action | ||
(with-outputs-to %{targets} | ||
(system "! %{bin:ocaml-mdx} test --direction=to-md %{dep:part_not_found.md}")))) | ||
|
||
(alias | ||
(name runtest) | ||
(action | ||
(diff part_not_found.md.expected part_not_found.md.actual))) |
File renamed without changes.
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,2 @@ | ||
Error in the toplevel code block in in_toplevel.md at line 4: | ||
./not_found.ml: No such file or directory |
File renamed without changes.
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,2 @@ | ||
Error in the OCaml code block in ml_file_not_found.md at line 4: | ||
./not_found.ml: No such file or directory |
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,4 @@ | ||
Run this with `--direction=to-md` | ||
|
||
```ocaml file=part_not_found.ml,part=part1 | ||
``` |
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,2 @@ | ||
Error in the OCaml code block in part_not_found.md at line 4: | ||
Cannot find part "part1" in ./part_not_found.ml |
File renamed without changes.
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 @@ | ||
--direction=to-md |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.