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 (library
(name moonpool_dpool) (name moonpool_dpool)
(public_name moonpool.dpool) (public_name moonpool.dpool)
@ -7,5 +6,4 @@
(action (action
(run %{project_root}/src/cpp/cpp.exe %{input-file}))) (run %{project_root}/src/cpp/cpp.exe %{input-file})))
(flags :standard -open Moonpool_private) (flags :standard -open Moonpool_private)
(libraries (libraries moonpool.private))
moonpool.private))

View file

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

View file

@ -1,5 +1,3 @@
(library (library
(name moonpool_forkjoin) (name moonpool_forkjoin)
(public_name moonpool.forkjoin) (public_name moonpool.forkjoin)
@ -8,5 +6,4 @@
(optional) (optional)
(enabled_if (enabled_if
(>= %{ocaml_version} 5.0)) (>= %{ocaml_version} 5.0))
(libraries (libraries moonpool moonpool.private))
moonpool moonpool.private))

View file

@ -1,8 +1,7 @@
(library (library
(name moonpool_lwt) (name moonpool_lwt)
(public_name moonpool-lwt) (public_name moonpool-lwt)
(private_modules common_) (private_modules common_)
(enabled_if (enabled_if
(>= %{ocaml_version} 5.0)) (>= %{ocaml_version} 5.0))
(libraries moonpool moonpool.fib lwt lwt.unix)) (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 Domain_local_await.using
let setup_domain () = Domain_local_await.per_thread (module Thread) let setup_domain () = Domain_local_await.per_thread (module Thread)

View file

@ -1,7 +1,5 @@
(tests (tests
(names (names t_fib1 t_fls t_main)
t_fib1 t_fls t_main)
(enabled_if (enabled_if
(>= %{ocaml_version} 5.0)) (>= %{ocaml_version} 5.0))
(package moonpool) (package moonpool)

View file

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