I’m happy to share the 0.4 release of qcheck-lin, qcheck-stm, and qcheck-multicoretests-util: Release 0.4 · ocaml-multicore/multicoretests · GitHub
The testing libraries are useful for testing your OCaml code for parallelism safety:
- qcheck-linoffer a low effort approach, requiring little more than type signatures of the target interface (example above)
- qcheck-stmoffers stronger correctness guarantees by comparing the observed behaviour to a functional model description - under both sequential and parallel usage.
The 0.4 release brings two new “stress test” functions and also adjusts the cmd list distribution of STM_sequential:
- #415: Remove --verbosein internalmutable_set_v5expect test to avoid a test failure on a slow machine
- #443: Add Lin_domain.stress_testas a lighter stress test, not requiring an interleaving search.
- #462: Add STM_domain.stress_test_par, similar toLin_domain.stress_testfor STM models.
- #472: Switch arb_cmdsto use an exponential distribution with a mean of 10, avoiding lists of up to 10000 cmds inSTM_sequential(reported by @nikolaushuber).
Happy testing! 