File: dune

package info (click to toggle)
yojson 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,044 kB
  • sloc: ml: 3,068; makefile: 38
file content (23 lines) | stat: -rw-r--r-- 380 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
(executables
 (names test atd)
 (libraries yojson))

(rule
  (deps ./sample.json)
  (action
    (with-stdout-to
      test.output.json
      (run ./test.exe))))

(rule
  (action
    (with-stdout-to
      atd.output.json
      (run ./atd.exe))))

(alias
 (name runtest)
 (action
  (progn
   (diff test.expected.json test.output.json)
   (diff atd.expected.json atd.output.json))))