File: dune

package info (click to toggle)
ocaml-qcheck 0.91-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,160 kB
  • sloc: ml: 11,771; sh: 46; makefile: 39
file content (36 lines) | stat: -rw-r--r-- 1,253 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
(rule
 (enabled_if (and (= %{arch_sixtyfour} true) (>= %{ocaml_version} 5)))
 (action (copy QCheck_alcotest_test.expected.ocaml5.64 QCheck_alcotest_test.expected)))

(rule
 (enabled_if (and (= %{arch_sixtyfour} false) (>= %{ocaml_version} 5)))
 (action (copy QCheck_alcotest_test.expected.ocaml5.32 QCheck_alcotest_test.expected)))

(rule
 (enabled_if (and (= %{arch_sixtyfour} true) (< %{ocaml_version} 5)))
 (action (copy QCheck_alcotest_test.expected.ocaml4.64 QCheck_alcotest_test.expected)))

(rule
 (enabled_if (and (= %{arch_sixtyfour} false) (< %{ocaml_version} 5)))
 (action (copy QCheck_alcotest_test.expected.ocaml4.32 QCheck_alcotest_test.expected)))

(executable
 (name QCheck_alcotest_test)
 (libraries qcheck-core qcheck-alcotest alcotest))

(rule
 (targets QCheck_alcotest_test.output)
 (deps ./QCheck_alcotest_test.exe)
 (enabled_if (= %{os_type} "Unix"))
 (action
  (with-accepted-exit-codes 1
   (setenv CI false ; Don't run tests as if Alcotest was run in CI
    (setenv QCHECK_SEED 1234
     (with-stdout-to %{targets}
      (run ./run_alcotest.sh --color=never)))))))

(rule
 (alias runtest)
 (package qcheck-alcotest)
 (enabled_if (= %{os_type} "Unix"))
 (action (diff QCheck_alcotest_test.expected QCheck_alcotest_test.output)))