mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 03:05:30 -05:00
format dune files
This commit is contained in:
parent
7a558bb5f3
commit
a99c0775e2
7 changed files with 41 additions and 39 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
(library
|
||||
(name moonpool_dpool)
|
||||
(public_name moonpool.dpool)
|
||||
|
|
@ -7,5 +6,4 @@
|
|||
(action
|
||||
(run %{project_root}/src/cpp/cpp.exe %{input-file})))
|
||||
(flags :standard -open Moonpool_private)
|
||||
(libraries
|
||||
moonpool.private))
|
||||
(libraries moonpool.private))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
(library
|
||||
(name moonpool_fib)
|
||||
(public_name moonpool.fib)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
(library
|
||||
(name moonpool_forkjoin)
|
||||
(public_name moonpool.forkjoin)
|
||||
|
|
@ -8,5 +6,4 @@
|
|||
(optional)
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(libraries
|
||||
moonpool moonpool.private))
|
||||
(libraries moonpool moonpool.private))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
(library
|
||||
(name moonpool_lwt)
|
||||
(public_name moonpool-lwt)
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ let using : prepare_for_await:(unit -> t) -> while_running:(unit -> 'a) -> 'a =
|
|||
Domain_local_await.using
|
||||
|
||||
let setup_domain () = Domain_local_await.per_thread (module Thread)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
(tests
|
||||
(names
|
||||
t_fib1 t_fls t_main)
|
||||
(names t_fib1 t_fls t_main)
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(package moonpool)
|
||||
|
|
|
|||
|
|
@ -4,28 +4,40 @@
|
|||
|
||||
(rule
|
||||
(targets output_hash.txt)
|
||||
(deps ./hash_server.exe ./hash_client.exe ./run_hash.sh (glob_files_rec ../data/**))
|
||||
(enabled_if (>= %{ocaml_version} 5.0))
|
||||
(deps
|
||||
./hash_server.exe
|
||||
./hash_client.exe
|
||||
./run_hash.sh
|
||||
(glob_files_rec ../data/**))
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(action
|
||||
(with-stdout-to %{targets}
|
||||
(with-stdout-to
|
||||
%{targets}
|
||||
(run ./run_hash.sh -d ../data/ --n-conn=2 -j=4))))
|
||||
|
||||
(rule
|
||||
(alias runtest)
|
||||
(enabled_if (>= %{ocaml_version} 5.0))
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(package moonpool-lwt)
|
||||
(action (diff ./output_hash.expected ./output_hash.txt)))
|
||||
(action
|
||||
(diff ./output_hash.expected ./output_hash.txt)))
|
||||
|
||||
(rule
|
||||
(targets output_echo.txt)
|
||||
(deps ./echo_server.exe ./echo_client.exe ./run_echo.sh)
|
||||
(enabled_if (>= %{ocaml_version} 5.0))
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(action
|
||||
(with-stdout-to %{targets}
|
||||
(with-stdout-to
|
||||
%{targets}
|
||||
(run ./run_echo.sh -n 10 --n-conn=2 -j=4))))
|
||||
|
||||
(rule
|
||||
(alias runtest)
|
||||
(enabled_if (>= %{ocaml_version} 5.0))
|
||||
(enabled_if
|
||||
(>= %{ocaml_version} 5.0))
|
||||
(package moonpool-lwt)
|
||||
(action (diff ./output_echo.expected ./output_echo.txt)))
|
||||
(action
|
||||
(diff ./output_echo.expected ./output_echo.txt)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue