ensure that tests belong to the correct package

This commit is contained in:
Simon Cruanes 2024-03-21 09:32:14 -04:00
parent 54f6db0b42
commit 8e6340846a
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
6 changed files with 8 additions and 0 deletions

1
dune
View file

@ -4,5 +4,6 @@
(mdx (mdx
(libraries moonpool moonpool.forkjoin moonpool.fib threads) (libraries moonpool moonpool.forkjoin moonpool.fib threads)
(package moonpool)
(enabled_if (enabled_if
(>= %{ocaml_version} 5.0))) (>= %{ocaml_version} 5.0)))

View file

@ -42,6 +42,8 @@
(ocaml (>= 5.0)) (ocaml (>= 5.0))
lwt lwt
base-unix base-unix
(trace :with-test)
(trace-tef :with-test)
(odoc :with-doc))) (odoc :with-doc)))
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project ; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project

View file

@ -13,6 +13,8 @@ depends: [
"ocaml" {>= "5.0"} "ocaml" {>= "5.0"}
"lwt" "lwt"
"base-unix" "base-unix"
"trace" {with-test}
"trace-tef" {with-test}
"odoc" {with-doc} "odoc" {with-doc}
] ]
build: [ build: [

View file

@ -13,6 +13,7 @@
t_ws_deque t_ws_deque
t_ws_wait t_ws_wait
t_bounded_queue) t_bounded_queue)
(package moonpool)
(libraries (libraries
moonpool moonpool
qcheck-core qcheck-core

View file

@ -13,6 +13,7 @@
(run %{project_root}/src/cpp/cpp.exe %{input-file}))) (run %{project_root}/src/cpp/cpp.exe %{input-file})))
(enabled_if (enabled_if
(>= %{ocaml_version} 5.0)) (>= %{ocaml_version} 5.0))
(package moonpool)
(libraries (libraries
moonpool moonpool
moonpool.forkjoin moonpool.forkjoin

View file

@ -4,6 +4,7 @@
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)
(libraries (libraries
moonpool moonpool
moonpool.fib moonpool.fib