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))
|