Skip to content

Commit

Permalink
fix deps in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 31, 2023
1 parent e89dd0f commit e3a49e0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 51 deletions.
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(alias runtest)
(deps
(:readme README.md))
(package printbox-text)
(package printbox-html)
(action
(progn
(run ocaml-mdx test %{readme})
Expand Down
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
Adds html output handling to the printbox package.
Printbox allows to print nested boxes, lists, arrays, tables in several formats")
(depends (printbox (= :version))
(printbox-text (and (= :version) :with-test))
(odoc :with-test)
(tyxml (>= 4.3))
(mdx (and (>= 1.4) :with-test))))
1 change: 1 addition & 0 deletions printbox-html.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ bug-reports: "https://github.com/c-cube/printbox/issues"
depends: [
"dune" {>= "2.0"}
"printbox" {= version}
"printbox-text" {= version & with-test}
"odoc" {with-test}
"tyxml" {>= "4.3"}
"mdx" {>= "1.4" & with-test}
Expand Down
66 changes: 16 additions & 50 deletions test/dune
Original file line number Diff line number Diff line change
@@ -1,59 +1,25 @@
(executables
(names test1 test_ann_0_3 test_blending test_html)
(libraries printbox printbox-text printbox-html))

(rule
(targets test1.output)
(test
(name test_ann_0_3)
(modules test_ann_0_3)
(package printbox-text)
(action
(with-stdout-to
%{targets}
(run ./test1.exe))))
(libraries printbox printbox-text))

(rule
(alias runtest)
(test
(name test1)
(modules test1)
(package printbox-text)
(action
(diff test1.expected test1.output)))
(libraries printbox printbox-text))

(rule
(targets test_ann_0_3.output)
(package printbox-text)
(action
(with-stdout-to
%{targets}
(run ./test_ann_0_3.exe))))

(rule
(alias runtest)
(package printbox-text)
(action
(diff test_ann_0_3.expected test_ann_0_3.output)))

(rule
(targets test_blending.output)
(test
(name test_blending)
(modules test_blending)
(package printbox-text)
(action
(with-stdout-to
%{targets}
(run ./test_blending.exe))))

(rule
(alias runtest)
(package printbox-text)
(action
(diff test_blending.expected test_blending.output)))

(rule
(targets test_html.output)
(package printbox-html)
(action
(with-stdout-to
%{targets}
(run ./test_html.exe))))
(libraries printbox printbox-text))

(rule
(alias runtest)
(test
(name test_html)
(modules test_html)
(package printbox-html)
(action
(diff test_html.expected test_html.output)))
(libraries printbox printbox-html))

0 comments on commit e3a49e0

Please sign in to comment.