Skip to content

Commit

Permalink
Merge pull request #26 from mbarbin/reduce-deps
Browse files Browse the repository at this point in the history
Reduce dependencies in testing libs
  • Loading branch information
mbarbin authored Oct 30, 2024
2 parents 345bdf3 + de06c45 commit 1d48b95
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 82 deletions.
32 changes: 3 additions & 29 deletions test/eio/test_providers/dune
Original file line number Diff line number Diff line change
@@ -1,36 +1,10 @@
(library
(name eio_test_providers)
(public_name provider-dev.eio_test_providers)
(inline_tests)
(flags
:standard
-w
+a-4-40-41-42-44-45-48-66
-warn-error
+a
-open
Base
-open
Expect_test_helpers_base)
(libraries
base
eio
expect_test_helpers_core.expect_test_helpers_base
test_interfaces
provider
unix)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base eio provider test_interfaces)
(instrumentation
(backend bisect_ppx))
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
(pps
-unused-code-warnings=force
ppx_compare
ppx_enumerate
ppx_expect
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value)))
(preprocess no_preprocessing))
26 changes: 3 additions & 23 deletions test/test_interfaces/dune
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
(library
(name test_interfaces)
(public_name provider-tests.test_interfaces)
(inline_tests)
(flags
:standard
-w
+a-4-40-41-42-44-45-48-66
-warn-error
+a
-open
Base
-open
Expect_test_helpers_base)
(libraries base expect_test_helpers_core.expect_test_helpers_base provider)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base provider)
(instrumentation
(backend bisect_ppx))
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
(pps
-unused-code-warnings=force
ppx_compare
ppx_enumerate
ppx_expect
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value)))
(preprocess no_preprocessing))
2 changes: 1 addition & 1 deletion test/test_interfaces/float_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ let print (Provider.T { t; handler }) f =
let module M =
(val Provider.Handler.lookup handler ~trait:Provider_interface.Float_printer)
in
print_endline (M.string_of_float t f)
Stdlib.print_endline (M.string_of_float t f)
;;
2 changes: 1 addition & 1 deletion test/test_interfaces/int_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ let print (Provider.T { t; handler }) i =
let module M =
(val Provider.Handler.lookup handler ~trait:Provider_interface.Int_printer)
in
print_endline (M.string_of_int t i)
Stdlib.print_endline (M.string_of_int t i)
;;
31 changes: 3 additions & 28 deletions test/test_providers/dune
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
(library
(name test_providers)
(public_name provider-tests.test_providers)
(inline_tests)
(flags
:standard
-w
+a-4-40-41-42-44-45-48-66
-warn-error
+a
-open
Base
-open
Expect_test_helpers_base)
(libraries
base
expect_test_helpers_core.expect_test_helpers_base
test_interfaces
provider
unix)
(flags :standard -w +a-4-40-41-42-44-45-48-66 -warn-error +a -open Base)
(libraries base provider test_interfaces unix)
(instrumentation
(backend bisect_ppx))
(lint
(pps ppx_js_style -check-doc-comments))
(preprocess
(pps
-unused-code-warnings=force
ppx_compare
ppx_enumerate
ppx_expect
ppx_hash
ppx_here
ppx_let
ppx_sexp_conv
ppx_sexp_value)))
(preprocess no_preprocessing))

0 comments on commit 1d48b95

Please sign in to comment.