File: dune

package info (click to toggle)
tyxml 4.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: ml: 9,712; makefile: 91; javascript: 3
file content (63 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
;; Normal tests

(library
 (name tyxml_test)
 (libraries tyxml alcotest)
 (modules tyxml_test)
)

(tests
 (names test_html test_svg)
 (modules test_html test_svg)
 (libraries tyxml alcotest tyxml_test)
 (package tyxml)
)

(test
 (name test_ppx)
 (modules test_ppx)
 (libraries tyxml alcotest tyxml_test)
 (preprocess (pps tyxml-ppx))
 (package tyxml-ppx)
)

(test
 (name test_jsx)
 (modules test_jsx)
 (libraries tyxml alcotest tyxml_test)
 (preprocess (pps tyxml-jsx))
 (package tyxml-jsx)
)


;; Toplevel ppx tests
;; WIP this test is temporarily disable, waiting for proper support for
;; toplevel tests in dune.

; (executable
;  (name ppx)
;  (libraries tyxml-ppx ppxlib)
;  (modules ppx)
; )

; (rule
;  (targets html_fail.result)
;  (deps    ppx.exe html_fail.ml)
;  (action (system "TERM= %{ocaml} -I ../implem/.tyxml.objs/ -noinit -noprompt -ppx './%{exe:ppx.exe} --as-ppx' < html_fail.ml 2>&1 | tail -n +3 > %{targets}"))
; )

; (alias
;  (name   runtest)
;  (deps   html_fail.result html_fail.expected)
;  (action (diff html_fail.expected html_fail.result))
;  (package tyxml-ppx)
; )

;; Emitbig

(test
 (name emitbig)
 (libraries  tyxml unix)
 (modules emitbig)
 (package tyxml)
)