Skip to content

Commit e3a49e0

Browse files
committed
fix deps in tests
1 parent e89dd0f commit e3a49e0

File tree

4 files changed

+19
-51
lines changed

4 files changed

+19
-51
lines changed

dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
(alias runtest)
33
(deps
44
(:readme README.md))
5-
(package printbox-text)
5+
(package printbox-html)
66
(action
77
(progn
88
(run ocaml-mdx test %{readme})

dune-project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
Adds html output handling to the printbox package.
3131
Printbox allows to print nested boxes, lists, arrays, tables in several formats")
3232
(depends (printbox (= :version))
33+
(printbox-text (and (= :version) :with-test))
3334
(odoc :with-test)
3435
(tyxml (>= 4.3))
3536
(mdx (and (>= 1.4) :with-test))))

printbox-html.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ bug-reports: "https://github.com/c-cube/printbox/issues"
1414
depends: [
1515
"dune" {>= "2.0"}
1616
"printbox" {= version}
17+
"printbox-text" {= version & with-test}
1718
"odoc" {with-test}
1819
"tyxml" {>= "4.3"}
1920
"mdx" {>= "1.4" & with-test}

test/dune

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,25 @@
1-
(executables
2-
(names test1 test_ann_0_3 test_blending test_html)
3-
(libraries printbox printbox-text printbox-html))
41

5-
(rule
6-
(targets test1.output)
2+
(test
3+
(name test_ann_0_3)
4+
(modules test_ann_0_3)
75
(package printbox-text)
8-
(action
9-
(with-stdout-to
10-
%{targets}
11-
(run ./test1.exe))))
6+
(libraries printbox printbox-text))
127

13-
(rule
14-
(alias runtest)
8+
(test
9+
(name test1)
10+
(modules test1)
1511
(package printbox-text)
16-
(action
17-
(diff test1.expected test1.output)))
12+
(libraries printbox printbox-text))
1813

19-
(rule
20-
(targets test_ann_0_3.output)
21-
(package printbox-text)
22-
(action
23-
(with-stdout-to
24-
%{targets}
25-
(run ./test_ann_0_3.exe))))
26-
27-
(rule
28-
(alias runtest)
29-
(package printbox-text)
30-
(action
31-
(diff test_ann_0_3.expected test_ann_0_3.output)))
3214

33-
(rule
34-
(targets test_blending.output)
15+
(test
16+
(name test_blending)
17+
(modules test_blending)
3518
(package printbox-text)
36-
(action
37-
(with-stdout-to
38-
%{targets}
39-
(run ./test_blending.exe))))
40-
41-
(rule
42-
(alias runtest)
43-
(package printbox-text)
44-
(action
45-
(diff test_blending.expected test_blending.output)))
46-
47-
(rule
48-
(targets test_html.output)
49-
(package printbox-html)
50-
(action
51-
(with-stdout-to
52-
%{targets}
53-
(run ./test_html.exe))))
19+
(libraries printbox printbox-text))
5420

55-
(rule
56-
(alias runtest)
21+
(test
22+
(name test_html)
23+
(modules test_html)
5724
(package printbox-html)
58-
(action
59-
(diff test_html.expected test_html.output)))
25+
(libraries printbox printbox-html))

0 commit comments

Comments
 (0)