format dune files

This commit is contained in:
Simon Cruanes 2024-04-01 15:38:59 -04:00
parent 7a558bb5f3
commit a99c0775e2
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
7 changed files with 41 additions and 39 deletions

View file

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

View file

@ -1,4 +1,3 @@
(library
(name moonpool_fib)
(public_name moonpool.fib)

View file

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

View file

@ -1,8 +1,7 @@
(library
(name moonpool_lwt)
(public_name moonpool-lwt)
(private_modules common_)
(enabled_if
(>= %{ocaml_version} 5.0))
(libraries moonpool moonpool.fib lwt lwt.unix))
(name moonpool_lwt)
(public_name moonpool-lwt)
(private_modules common_)
(enabled_if
(>= %{ocaml_version} 5.0))
(libraries moonpool moonpool.fib lwt lwt.unix))

View file

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

View file

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

View file

@ -3,29 +3,41 @@
(libraries moonpool moonpool-lwt lwt lwt.unix trace.core trace-tef))
(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))
(action
(with-stdout-to %{targets}
(run ./run_hash.sh -d ../data/ --n-conn=2 -j=4))))
(targets output_hash.txt)
(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}
(run ./run_hash.sh -d ../data/ --n-conn=2 -j=4))))
(rule
(alias runtest)
(enabled_if (>= %{ocaml_version} 5.0))
(package moonpool-lwt)
(action (diff ./output_hash.expected ./output_hash.txt)))
(alias runtest)
(enabled_if
(>= %{ocaml_version} 5.0))
(package moonpool-lwt)
(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))
(action
(with-stdout-to %{targets}
(run ./run_echo.sh -n 10 --n-conn=2 -j=4))))
(targets output_echo.txt)
(deps ./echo_server.exe ./echo_client.exe ./run_echo.sh)
(enabled_if
(>= %{ocaml_version} 5.0))
(action
(with-stdout-to
%{targets}
(run ./run_echo.sh -n 10 --n-conn=2 -j=4))))
(rule
(alias runtest)
(enabled_if (>= %{ocaml_version} 5.0))
(package moonpool-lwt)
(action (diff ./output_echo.expected ./output_echo.txt)))
(alias runtest)
(enabled_if
(>= %{ocaml_version} 5.0))
(package moonpool-lwt)
(action
(diff ./output_echo.expected ./output_echo.txt)))