File: dune

package info (click to toggle)
ocaml-multicore-magic 2.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: ml: 565; sh: 60; ansic: 8; makefile: 7; javascript: 6
file content (33 lines) | stat: -rw-r--r-- 810 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
(test
 (package multicore-magic)
 (name test_on_main_thread_only)
 (modules test_on_main_thread_only)
 (libraries multicore-magic alcotest))

(rule
 (package multicore-magic)
 (action
  (copy test_on_main_thread_only.ml test_on_js_of_ocaml.ml)))

(test
 (package multicore-magic)
 (name test_on_js_of_ocaml)
 (modules test_on_js_of_ocaml)
 (modes js)
 (build_if
  (and
   (<> %{architecture} i386)
   (<> %{os_type} Win32)))
 (action
  ;; It is fine if 'node:fs' cannot be found.  js_of_ocaml>=5.9 does not like
  ;; old node versions.
  (with-accepted-exit-codes
   (or 0 1)
   (run node %{test})))
 (libraries multicore-magic alcotest))

(test
 (package multicore-magic)
 (name test_with_threads_and_domains)
 (modules test_with_threads_and_domains)
 (libraries multicore-magic alcotest threads.posix unix))