-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
40 additions
and
7 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,8 +1,8 @@ | ||
|
||
(alias | ||
(name runtest) | ||
(rule | ||
(alias runtest) | ||
(deps (:readme README.md)) | ||
(action (progn | ||
(run mdx test %{readme}) | ||
(run ocaml-mdx test %{readme}) | ||
(diff? %{readme} %{readme}.corrected)))) | ||
|
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 +1 @@ | ||
(lang dune 1.1) | ||
(lang dune 2.0) |
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,17 @@ | ||
|
||
DONTTEST= | ||
QTESTABLE=$(filter-out $(DONTTEST), \ | ||
$(wildcard ../src/*.ml) \ | ||
$(wildcard ../src/*.mli) \ | ||
) | ||
|
||
qtest-gen: | ||
@rm run_qtest.ml 2>/dev/null || true | ||
@if which qtest > /dev/null ; then \ | ||
qtest extract \ | ||
-o run_qtest.ml \ | ||
$(QTESTABLE) 2> /dev/null ; \ | ||
else touch run_qtest.ml ; \ | ||
fi | ||
|
||
.PHONY: qtest-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,17 @@ | ||
|
||
(rule | ||
(targets run_qtest.ml) | ||
(deps Makefile (source_tree ../src)) ; (glob_files ../src/**/*.ml{,i}))) | ||
(mode fallback) | ||
(action (run make qtest-gen))) | ||
|
||
(executable | ||
(name run_qtest) | ||
(flags :standard -warn-error -a+8 -safe-string -w -33) | ||
(libraries lwt-pipe qcheck)) | ||
|
||
(rule | ||
(alias runtest) | ||
(deps (:bin run_qtest.exe)) | ||
(action (run %{bin}))) | ||
|
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