Skip to content

Commit d7d2e1e

Browse files
committed
Merge branch 'split-lin-packages' of github.com:shym/multicoretests into shym-split-lin-packages
2 parents dc0527b + fd1e200 commit d7d2e1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+586
-514
lines changed

doc/example/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(executable
44
(name lin_tests_dsl)
55
(modules lin_tests_dsl)
6-
(libraries qcheck-lin))
6+
(libraries qcheck-lin.domain))
77

88

99
;; A model-based test of the stdlib Hashtbl library

doc/example/lin_tests_dsl.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct
77
let init () = Hashtbl.create ~random:false 42
88
let cleanup _ = ()
99

10-
open Lin_api
10+
open Lin_base
1111
let a,b = char_printable,nat_small
1212
let api =
1313
[ val_ "Hashtbl.add" Hashtbl.add (t @-> a @-> b @-> returning unit);
@@ -17,8 +17,8 @@ struct
1717
val_ "Hashtbl.length" Hashtbl.length (t @-> returning int); ]
1818
end
1919

20-
module HT = Lin_api.Make(HashtblSig)
20+
module HT = Lin_domain.Make(HashtblSig)
2121
;;
2222
QCheck_base_runner.run_tests_main [
23-
HT.lin_test `Domain ~count:1000 ~name:"Hashtbl DSL test";
23+
HT.lin_test ~count:1000 ~name:"Hashtbl DSL test";
2424
]

lib/dune

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,28 @@
2323
(libraries threads qcheck-core STM_base))
2424

2525
(library
26-
(name lin)
27-
(wrapped false)
28-
(public_name qcheck-lin)
29-
(modules lin lin_api)
30-
(libraries threads qcheck-core qcheck-core.runner qcheck-multicoretests-util))
26+
(name lin_base)
27+
(public_name qcheck-lin.base)
28+
(modules lin_internal lin_common lin_base)
29+
(libraries qcheck-core qcheck-core.runner qcheck-multicoretests-util))
30+
31+
(library
32+
(name lin_domain)
33+
(public_name qcheck-lin.domain)
34+
(modules lin_domain)
35+
(libraries qcheck-core qcheck-core.runner qcheck-multicoretests-util qcheck-lin.base))
36+
37+
(library
38+
(name lin_effect)
39+
(public_name qcheck-lin.effect)
40+
(modules lin_effect)
41+
(libraries qcheck-core qcheck-core.runner qcheck-multicoretests-util qcheck-lin.base))
42+
43+
(library
44+
(name lin_thread)
45+
(public_name qcheck-lin.thread)
46+
(modules lin_thread)
47+
(libraries threads qcheck-core qcheck-core.runner qcheck-multicoretests-util qcheck-lin.base))
3148

3249
(library
3350
(name util)

lib/lin.ml

Lines changed: 0 additions & 325 deletions
This file was deleted.

lib/lin_base.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Lin_internal = Lin_internal
2+
module Lin_common = Lin_common
3+
include Lin_common

0 commit comments

Comments
 (0)