File tree Expand file tree Collapse file tree 29 files changed +91
-91
lines changed Expand file tree Collapse file tree 29 files changed +91
-91
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ module Make : functor (Spec : STM_spec.Spec) ->
15
15
val agree_prop_par : Spec .cmd list * Spec .cmd list * Spec .cmd list -> bool
16
16
(* * Parallel agreement property based on [Domain] *)
17
17
18
- val agree_test_par : count :int -> name :string -> QCheck2 .Test.t
18
+ val agree_test_par : count :int -> name :string -> QCheck .Test.t
19
19
(* * Parallel agreement test based on [Domain] which combines [repeat] and [~retries] *)
20
20
21
- val neg_agree_test_par : count :int -> name :string -> QCheck2 .Test.t
21
+ val neg_agree_test_par : count :int -> name :string -> QCheck .Test.t
22
22
(* * An negative agreement test (for convenience). Accepts two labeled parameters:
23
23
[count] is the test count and [name] is the printed test name. *)
24
24
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module Make : functor (Spec : STM_spec.Spec) ->
27
27
when interpreted from the model's initial state and the [sut]'s initial state.
28
28
Cleans up after itself by calling [Spec.cleanup] *)
29
29
30
- val agree_test : count :int -> name :string -> QCheck2 .Test.t
30
+ val agree_test : count :int -> name :string -> QCheck .Test.t
31
31
(* * An actual agreement test (for convenience). Accepts two labeled parameters:
32
32
[count] is the test count and [name] is the printed test name. *)
33
33
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ module Make : functor (Spec : STM_spec.Spec) ->
11
11
val agree_prop_conc : Spec .cmd list * Spec .cmd list * Spec .cmd list -> bool
12
12
(* * Concurrent agreement property based on [Thread] *)
13
13
14
- val agree_test_conc : count :int -> name :string -> QCheck2 .Test.t
14
+ val agree_test_conc : count :int -> name :string -> QCheck .Test.t
15
15
(* * Concurrent agreement test based on [Thread] which combines [repeat] and [~retries] *)
16
16
17
- val neg_agree_test_conc : count :int -> name :string -> QCheck2 .Test.t
17
+ val neg_agree_test_conc : count :int -> name :string -> QCheck .Test.t
18
18
(* * An negative agreement test (for convenience). Accepts two labeled parameters:
19
19
[count] is the test count and [name] is the printed test name. *)
20
20
Original file line number Diff line number Diff line change 12
12
(executable
13
13
(name stm_tests)
14
14
(modules stm_tests)
15
- (libraries qcheck-stm.base qcheck-stm. sequential qcheck-stm.domain)
15
+ (libraries qcheck-stm.sequential qcheck-stm.domain)
16
16
(preprocess (pps ppx_deriving.show)))
17
17
18
18
(rule
Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ struct
103
103
| _ , _ -> false
104
104
end
105
105
106
- module ArraySTM_Seq = STM_sequential. Make (AConf )
107
- module ArraySTM_Dom = STM_domain. Make (AConf )
106
+ module ArraySTM_seq = STM_sequential. Make (AConf )
107
+ module ArraySTM_dom = STM_domain. Make (AConf )
108
108
109
109
;;
110
110
Util. set_ci_printing ()
111
111
;;
112
112
QCheck_base_runner. run_tests_main
113
113
(let count = 1000 in
114
- [ArraySTM_Seq . agree_test ~count ~name: " STM Array test sequential" ;
115
- ArraySTM_Dom . neg_agree_test_par ~count ~name: " STM Array test parallel" (* this test is expected to fail *)
114
+ [ArraySTM_seq . agree_test ~count ~name: " STM Array test sequential" ;
115
+ ArraySTM_dom . neg_agree_test_par ~count ~name: " STM Array test parallel" (* this test is expected to fail *)
116
116
])
Original file line number Diff line number Diff line change 12
12
(executable
13
13
(name stm_tests)
14
14
(modules stm_tests)
15
- (libraries qcheck-stm.base qcheck-stm. sequential qcheck-stm.domain)
15
+ (libraries qcheck-stm.sequential qcheck-stm.domain)
16
16
(preprocess (pps ppx_deriving.show)))
17
17
18
18
(rule
Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ struct
66
66
| _ ,_ -> false
67
67
end
68
68
69
- module AT_Seq = STM_sequential. Make (CConf )
70
- module AT_Dom = STM_domain. Make (CConf )
69
+ module AT_seq = STM_sequential. Make (CConf )
70
+ module AT_dom = STM_domain. Make (CConf )
71
71
;;
72
72
Util. set_ci_printing ()
73
73
;;
74
74
QCheck_base_runner. run_tests_main
75
- (let count = 1000 in
76
- [AT_Seq . agree_test ~count ~name: " STM Atomic test sequential" ;
77
- AT_Dom . agree_test_par ~count ~name: " STM Atmoic test parallel" ;])
75
+ (let count = 250 in
76
+ [AT_seq . agree_test ~count ~name: " STM Atomic test sequential" ;
77
+ AT_dom . agree_test_par ~count ~name: " STM Atmoic test parallel" ;])
Original file line number Diff line number Diff line change 15
15
(executable
16
16
(name stm_tests)
17
17
(modules stm_tests)
18
- (libraries qcheck-stm.base qcheck-stm. sequential qcheck-stm.domain)
18
+ (libraries qcheck-stm.sequential qcheck-stm.domain)
19
19
(preprocess
20
20
(pps ppx_deriving.show)))
21
21
Original file line number Diff line number Diff line change 9
9
(executable
10
10
(name stm_tests)
11
11
(modules stm_tests)
12
- (libraries qcheck-stm.base qcheck-stm. sequential qcheck-stm.domain)
12
+ (libraries qcheck-stm.sequential qcheck-stm.domain)
13
13
(preprocess (pps ppx_deriving.show)))
14
14
15
15
(rule
Original file line number Diff line number Diff line change @@ -125,13 +125,13 @@ struct
125
125
| _ , _ -> false
126
126
end
127
127
128
- module BufferSTM_Seq = STM_sequential. Make (BConf )
129
- module BufferSTM_Dom = STM_domain. Make (BConf )
128
+ module BufferSTM_seq = STM_sequential. Make (BConf )
129
+ module BufferSTM_dom = STM_domain. Make (BConf )
130
130
131
131
;;
132
132
Util. set_ci_printing ()
133
133
;;
134
134
QCheck_base_runner. run_tests_main
135
- (let count = 100 in
136
- [BufferSTM_Seq . agree_test ~count ~name: " STM Buffer test sequential" ;
137
- BufferSTM_Dom . neg_agree_test_par ~count ~name: " STM Buffer test parallel" ])
135
+ (let count = 1000 in
136
+ [BufferSTM_seq . agree_test ~count ~name: " STM Buffer test sequential" ;
137
+ BufferSTM_dom . neg_agree_test_par ~count ~name: " STM Buffer test parallel" ])
You can’t perform that action at this time.
0 commit comments