File: dune

package info (click to toggle)
ocaml-odoc 1.5.2%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,972 kB
  • sloc: ml: 26,974; makefile: 59; sh: 35
file content (43 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download
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
(rule
 (deps cases/ast.mli)
 (targets ast.output)
 (action
  (progn
   (run %{ocamlc} -bin-annot -o ast.cmi -c cases/ast.mli)
   (with-stderr-to ast.output
	  (run
     %{workspace_root}/src/odoc/bin/main.exe compile --package foo ast.cmti)))))

(alias
 (name runtest)
 (action (diff expect/ast.txt ast.output)))

(rule
 (deps cases/parser_errors.mli)
 (targets parser_errors.output)
 (action
  (progn
   (run %{ocamlc} -bin-annot -o parser_errors.cmi -c cases/parser_errors.mli)
   (with-stderr-to parser_errors.output
	  (run
      %{workspace_root}/src/odoc/bin/main.exe compile
       --package foo parser_errors.cmti)))))

(alias
 (name runtest)
 (action (diff expect/parser_errors.txt parser_errors.output)))

;; Test --warn-error

(rule
 (deps cases/parser_errors_fatal.mli)
 (targets parser_errors_fatal.output)
 (action
  (progn
   (run %{ocamlc} -bin-annot -o parser_errors_fatal.cmi -c cases/parser_errors_fatal.mli)
   (with-stderr-to parser_errors_fatal.output
	  (system "! %{bin:odoc} compile --package foo --warn-error parser_errors_fatal.cmti")))))

(alias
 (name runtest)
 (action (diff expect/parser_errors_fatal.txt parser_errors_fatal.output)))