Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/bytes/lin_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,16 @@ end

module BT_domain = Lin_domain.Make(BConf)
module BT_thread = Lin_thread.Make(BConf)

let thread_tail =
if Sys.(ocaml_release.major,ocaml_release.minor) < (5,3)
then
(Printf.printf "Lin.thread Bytes tests disabled on OCaml 5.2 and earlier\n%!"; [])
else
[ BT_thread.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Thread"; ]
;;
QCheck_base_runner.run_tests_main [
BT_domain.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Domain";
BT_thread.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Thread";
BT_domain.stress_test ~count:1000 ~name:"Lin Bytes stress test with Domain";
]
QCheck_base_runner.run_tests_main (
BT_domain.neg_lin_test ~count:5000 ~name:"Lin Bytes test with Domain"::
BT_domain.stress_test ~count:1000 ~name:"Lin Bytes stress test with Domain"::
thread_tail
)