File: dune

package info (click to toggle)
yojson 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 2,216 kB
  • sloc: ml: 3,890; makefile: 28
file content (23 lines) | stat: -rw-r--r-- 361 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
(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))))

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