Skip to content

Commit 71e9142

Browse files
authored
Merge pull request #408 from ocaml-multicore/lin-dsl-renaming
Chore: Lin DSL test renaming
2 parents bfc490f + 2148feb commit 71e9142

Some content is hidden

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

41 files changed

+125
-115
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ end
156156
module HT = Lin_domain.Make(HashtblSig)
157157
;;
158158
QCheck_base_runner.run_tests_main [
159-
HT.lin_test `Domain ~count:1000 ~name:"Hashtbl DSL test";
159+
HT.lin_test `Domain ~count:1000 ~name:"Lin Hashtbl test";
160160
]
161161
```
162162

@@ -178,11 +178,11 @@ framework then performs a search for a sequential interleaving of the
178178
same calls, and succeeds if it finds one.
179179

180180
Since `Hashtbl`s are not safe for parallelism, if you run
181-
`dune exec doc/example/lin_tests_dsl.exe` the output can produce the
181+
`dune exec doc/example/lin_tests.exe` the output can produce the
182182
following output, where each tested command is annotated with its result:
183183
```
184184
185-
Messages for test Hashtbl DSL test:
185+
Messages for test Lin Hashtbl test:
186186
187187
Results incompatible with sequential execution
188188
@@ -205,7 +205,7 @@ the last call should return `2`:
205205
let res2 = Hashtbl.length t;;
206206
```
207207

208-
See [src/atomic/lin_tests_dsl.ml](src/atomic/lin_tests_dsl.ml) for
208+
See [src/atomic/lin_tests.ml](src/atomic/lin_tests.ml) for
209209
another example of testing the `Atomic` module.
210210

211211

doc/example/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
;; A linearization test of the stdlib Hashtbl library
22

33
(executable
4-
(name lin_tests_dsl)
5-
(modules lin_tests_dsl)
4+
(name lin_tests)
5+
(modules lin_tests)
66
(libraries qcheck-lin.domain))
77

88

doc/example/lin_tests_dsl.ml renamed to doc/example/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ end
2020
module HT = Lin_domain.Make(HashtblSig)
2121
;;
2222
QCheck_base_runner.run_tests_main [
23-
HT.lin_test ~count:1000 ~name:"Hashtbl DSL test";
23+
HT.lin_test ~count:1000 ~name:"Lin Hashtbl test";
2424
]

doc/paper-examples/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
;; A linearization test of the stdlib Hashtbl library
22

33
(executable
4-
(name lin_tests_dsl)
5-
(modules lin_tests_dsl)
4+
(name lin_tests)
5+
(modules lin_tests)
66
(libraries qcheck-lin.domain))
77

88

doc/paper-examples/lin_tests_dsl.ml renamed to doc/paper-examples/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ end
2424
module HT = Lin_domain.Make(HashtblSig)
2525
;;
2626
QCheck_base_runner.run_tests_main [
27-
HT.lin_test ~count:1000 ~name:"Hashtbl DSL test";
27+
HT.lin_test ~count:1000 ~name:"Lin Hashtbl test";
2828
]

dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
; To change the test to repeat, change the source of the `copy`:
6666
(rule
67-
(copy src/io/lin_tests_dsl_domain.exe focusedtest.exe))
67+
(copy src/io/lin_tests_domain.exe focusedtest.exe))
6868

6969
(rule
7070
(alias focusedtest)

src/README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Tests utilizing the parallel STM.ml capability:
1818
- [bytes/stm_tests.ml](bytes/stm_tests.ml) contains sequential and
1919
parallel tests of the `Bytes` module
2020

21+
- [domain/stm_tests_dls.ml](domain/stm_tests_dls.ml) contains sequential and
22+
parallel tests of the `Domain.DLS` module
23+
2124
- [ephemeron/stm_tests.ml](ephemeron/stm_tests.ml) contains sequential and
2225
parallel tests of the `Ephemeron` module
2326

@@ -44,30 +47,37 @@ Tests utilizing the parallel STM.ml capability:
4447

4548
Tests utilizing the linearization tests of Lin.ml:
4649

47-
- [array/lin_internal_tests.ml](array/lin_internal_tests.ml) and [array/lin_tests_dsl.ml](array/lin_tests_dsl.ml)
50+
- [array/lin_internal_tests.ml](array/lin_internal_tests.ml) and [array/lin_tests.ml](array/lin_tests.ml)
4851
contain experimental `Lin.Internal` and `Lin`-tests of `Array`
4952

50-
- [atomic/lin_internal_tests.ml](atomic/lin_internal_tests.ml) and [atomic/lin_tests_dsl.ml](atomic/lin_tests_dsl.ml)
53+
- [atomic/lin_internal_tests.ml](atomic/lin_internal_tests.ml) and [atomic/lin_tests.ml](atomic/lin_tests.ml)
5154
contain experimental `Lin.Internal` and `Lin`-tests of `Atomic`
5255

53-
- [bigarray/lin_tests_dsl.ml](bigarray/lin_tests_dsl.ml) contains experimental `Lin`-tests of `Bigarray`
56+
- [bigarray/lin_tests.ml](bigarray/lin_tests.ml) contains experimental `Lin`-tests of `Bigarray`
57+
58+
- [bytes/lin_tests.ml](bytes/lin_tests.ml) contains experimental `Lin`-tests of `Bytes`
5459

55-
- [bytes/lin_tests_dsl.ml](bytes/lin_tests_dsl.ml) contains experimental `Lin`-tests of `Bytes`
60+
- [domain/lin_tests_dls.ml](domain/lin_tests_dls.ml) contains experimental `Lin`-tests of `Domain.DLS`
5661

57-
- [dynlink/lin_tests_dsl.ml](dynlink/lin_tests_dsl.ml) contains experimental `Lin`-tests of `Dynlink`
62+
- [dynlink/lin_tests.ml](dynlink/lin_tests.ml) contains experimental `Lin`-tests of `Dynlink`
5863

59-
- [floatarray/lin_tests_dsl.ml](floatarray/lin_tests_dsl.ml) contains experimental `Lin`-tests of `Float.Array`
64+
- [floatarray/lin_tests.ml](floatarray/lin_tests.ml) contains experimental `Lin`-tests of `Float.Array`
6065

61-
- [hashtbl/lin_internal_tests.ml](hashtbl/lin_internal_tests.ml) and [hashtbl/lin_tests_dsl.ml](hashtbl/lin_tests_dsl.ml)
66+
- [hashtbl/lin_internal_tests.ml](hashtbl/lin_internal_tests.ml) and [hashtbl/lin_tests.ml](hashtbl/lin_tests.ml)
6267
contain experimental `Lin.Internal` and `Lin`-tests of `Hashtbl`
6368

64-
- [lazy/lin_internal_tests.ml](lazy/lin_internal_tests.ml) and [lazy/lin_tests_dsl.ml](lazy/lin_tests_dsl.ml)
69+
- [io/lin_internal_tests.ml](hashtbl/lin_internal_tests.ml),
70+
[io/lin_tests_domain.ml](io/lin_tests_domain.ml), and
71+
[io/lin_tests_thread.ml](io/lin_tests_thread.ml) contain experimental
72+
`Lin.Internal` and `Lin`-tests of `In_channel` and `Out_channel`
73+
74+
- [lazy/lin_internal_tests.ml](lazy/lin_internal_tests.ml) and [lazy/lin_tests.ml](lazy/lin_tests.ml)
6575
contain experimental `Lin.Internal` and `Lin`-tests of `Lazy`
6676

67-
- [queue/lin_internal_tests.ml](queue/lin_internal_tests.ml) and [queue/lin_tests_dsl.ml](queue/lin_tests_dsl.ml)
77+
- [queue/lin_internal_tests.ml](queue/lin_internal_tests.ml) and [queue/lin_tests.ml](queue/lin_tests.ml)
6878
contain experimental `Lin.Internal` and `Lin`-tests of `Queue`
6979

70-
- [stack/lin_internal_tests.ml](stack/lin_internal_tests.ml) and [stack/lin_tests_dsl.ml](stack/lin_tests_dsl.ml)
80+
- [stack/lin_internal_tests.ml](stack/lin_internal_tests.ml) and [stack/lin_tests.ml](stack/lin_tests.ml)
7181
contain experimental `Lin.Internal` and `Lin`-tests of `Stack`
7282

7383

@@ -97,7 +107,7 @@ check).
97107

98108
For `Lin.Internal` and `Lin`
99109
- [neg_tests/lin_internal_tests_common.ml](neg_tests/lin_internal_tests_common.ml) and
100-
- [neg_tests/lin_tests_dsl_common.ml](neg_tests/lin_tests_dsl_common.ml)
110+
- [neg_tests/lin_tests_common.ml](neg_tests/lin_tests_common.ml)
101111

102112
contain "sanity check tests" for an unprotected global `ref` and a
103113
buggy concurrent list over unboxed `int` and boxed `int64` types.

src/array/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
)
2020

2121
(test
22-
(name lin_tests_dsl)
23-
(modules lin_tests_dsl)
22+
(name lin_tests)
23+
(modules lin_tests)
2424
(package multicoretests)
2525
(libraries qcheck-lin.domain)
2626
(action (run %{test} --verbose))

src/array/lin_tests_dsl.ml renamed to src/array/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ end
2929
module AT_domain = Lin_domain.Make(AConf)
3030
;;
3131
QCheck_base_runner.run_tests_main [
32-
AT_domain.neg_lin_test ~count:1000 ~name:"Lin DSL Array test with Domain";
32+
AT_domain.neg_lin_test ~count:1000 ~name:"Lin Array test with Domain";
3333
]

src/atomic/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
)
2424

2525
(test
26-
(name lin_tests_dsl)
27-
(modules lin_tests_dsl)
26+
(name lin_tests)
27+
(modules lin_tests)
2828
(package multicoretests)
2929
(libraries qcheck-lin.domain)
3030
(action (run %{test} --verbose))

src/atomic/lin_tests_dsl.ml renamed to src/atomic/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module Lin_atomic_domain = Lin_domain.Make (Atomic_spec)
1717

1818
let () =
1919
QCheck_base_runner.run_tests_main
20-
[ Lin_atomic_domain.lin_test ~count:1000 ~name:"Lin DSL Atomic test with Domain";
20+
[ Lin_atomic_domain.lin_test ~count:1000 ~name:"Lin Atomic test with Domain";
2121
]

src/bigarray/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
)
1111

1212
(test
13-
(name lin_tests_dsl)
14-
(modules lin_tests_dsl)
13+
(name lin_tests)
14+
(modules lin_tests)
1515
(package multicoretests)
1616
(libraries qcheck-lin.domain)
1717
(action (run %{test} --verbose))

src/bigarray/lin_tests_dsl.ml renamed to src/bigarray/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ module BA1T = Lin_domain.Make(BA1Conf)
2929

3030
let _ =
3131
QCheck_base_runner.run_tests_main [
32-
BA1T.neg_lin_test ~count:5000 ~name:"Lin DSL Bigarray.Array1 (of ints) test with Domain";
32+
BA1T.neg_lin_test ~count:5000 ~name:"Lin Bigarray.Array1 (of ints) test with Domain";
3333
]

src/bytes/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
)
1010

1111
(test
12-
(name lin_tests_dsl)
13-
(modules lin_tests_dsl)
12+
(name lin_tests)
13+
(modules lin_tests)
1414
(package multicoretests)
1515
(libraries qcheck-lin.domain qcheck-lin.thread)
1616
(action (run %{test} --verbose))

src/bytes/lin_tests_dsl.ml renamed to src/bytes/lin_tests.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ module BT_domain = Lin_domain.Make(BConf)
2121
module BT_thread = Lin_thread.Make(BConf) [@alert "-experimental"]
2222
;;
2323
QCheck_base_runner.run_tests_main [
24-
BT_domain.lin_test ~count:1000 ~name:"Lin DSL Bytes test with Domain";
25-
BT_thread.lin_test ~count:1000 ~name:"Lin DSL Bytes test with Thread";
24+
BT_domain.lin_test ~count:1000 ~name:"Lin Bytes test with Domain";
25+
BT_thread.lin_test ~count:1000 ~name:"Lin Bytes test with Thread";
2626
]

src/domain/dune

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
)
2020

2121
(test
22-
(name lin_tests_dsl_dls)
23-
(modules lin_tests_dsl_dls)
22+
(name lin_tests_dls)
23+
(modules lin_tests_dls)
2424
(package multicoretests)
2525
(libraries qcheck-lin.domain)
2626
; (action (run %{test} --verbose))
2727
(action (echo "Skipping src/domain/%{test} from the test suite\n\n"))
2828
)
2929

3030
(test
31-
(name stm_tests_dsl_dls)
32-
(modules stm_tests_dsl_dls)
31+
(name stm_tests_dls)
32+
(modules stm_tests_dls)
3333
(package multicoretests)
3434
(libraries qcheck-stm.sequential qcheck-stm.domain)
3535
(action (run %{test} --verbose))

src/domain/lin_tests_dsl_dls.ml renamed to src/domain/lin_tests_dls.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ module DLST = Lin_domain.Make (struct
2222
(*
2323
let _ =
2424
Domain.join (Domain.spawn (fun () -> QCheck_base_runner.run_tests ~verbose:true
25-
[DLSN.neg_lin_test ~count:100 ~name:"Lin DSL Domain.DLS negative test with Domain"]))
25+
[DLSN.neg_lin_test ~count:100 ~name:"Lin Domain.DLS negative test with Domain"]))
2626
let _ =
2727
Domain.join (Domain.spawn (fun () -> QCheck_base_runner.run_tests ~verbose:true
28-
[DLST.lin_test ~count:75 ~name:"Lin DSL Domain.DLS test with Domain"]))
28+
[DLST.lin_test ~count:75 ~name:"Lin Domain.DLS test with Domain"]))
2929
*)
3030
QCheck_base_runner.run_tests_main [
31-
DLSN.neg_lin_test ~count:100 ~name:"Lin DSL Domain.DLS negative test with Domain";
32-
DLST.lin_test ~count:75 ~name:"Lin DSL Domain.DLS test with Domain";
31+
DLSN.neg_lin_test ~count:100 ~name:"Lin Domain.DLS negative test with Domain";
32+
DLST.lin_test ~count:75 ~name:"Lin Domain.DLS test with Domain";
3333
]
3434

File renamed without changes.

src/dynlink/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
)
1212

1313
(test
14-
(name lin_tests_dsl)
15-
(modules lin_tests_dsl)
14+
(name lin_tests)
15+
(modules lin_tests)
1616
(package multicoretests)
1717
(libraries qcheck-lin.domain dynlink libA libB)
1818
(action (run %{test} --verbose))

src/dynlink/lin_tests_dsl.ml renamed to src/dynlink/lin_tests.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ module DynT = Lin_domain.Make(DynConf)
3232

3333
let _ =
3434
if Sys.win32 then
35-
Printf.printf "negative Lin DSL Dynlink test with Domain disabled under Windows\n\n%!"
35+
Printf.printf "negative Lin Dynlink test with Domain disabled under Windows\n\n%!"
3636
else
3737
QCheck_base_runner.run_tests_main [
38-
DynT.neg_lin_test ~count:100 ~name:"negative Lin DSL Dynlink test with Domain";
38+
DynT.neg_lin_test ~count:100 ~name:"negative Lin Dynlink test with Domain";
3939
]

src/floatarray/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
)
1010

1111
(test
12-
(name lin_tests_dsl)
13-
(modules lin_tests_dsl)
12+
(name lin_tests)
13+
(modules lin_tests)
1414
(package multicoretests)
1515
(libraries qcheck-lin.domain)
1616
(action (run %{test} --verbose))

src/floatarray/lin_tests_dsl.ml renamed to src/floatarray/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ module FAT = Lin_domain.Make(FAConf)
3737

3838
let _ =
3939
QCheck_base_runner.run_tests_main [
40-
FAT.neg_lin_test ~count:1000 ~name:"Lin DSL Float.Array test with Domain";
40+
FAT.neg_lin_test ~count:1000 ~name:"Lin Float.Array test with Domain";
4141
]

src/hashtbl/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
)
2020

2121
(test
22-
(name lin_tests_dsl)
23-
(modules lin_tests_dsl)
22+
(name lin_tests)
23+
(modules lin_tests)
2424
(package multicoretests)
2525
(libraries qcheck-lin.domain)
2626
(action (run %{test} --verbose))

src/hashtbl/lin_tests_dsl.ml renamed to src/hashtbl/lin_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ end
2626
module HT_domain = Lin_domain.Make(HConf)
2727
;;
2828
QCheck_base_runner.run_tests_main [
29-
HT_domain.neg_lin_test ~count:1000 ~name:"Lin DSL Hashtbl test with Domain";
29+
HT_domain.neg_lin_test ~count:1000 ~name:"Lin Hashtbl test with Domain";
3030
]

src/io/dune

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
)
1919

2020
(test
21-
(name lin_tests_dsl_domain)
22-
(modules lin_tests_dsl_domain)
21+
(name lin_tests_domain)
22+
(modules lin_tests_domain)
2323
(package multicoretests)
2424
;(flags (:standard -w -27))
2525
(libraries qcheck-lin.domain lin_tests_spec_io)
@@ -29,8 +29,8 @@
2929
)
3030

3131
(test
32-
(name lin_tests_dsl_thread)
33-
(modules lin_tests_dsl_thread)
32+
(name lin_tests_thread)
33+
(modules lin_tests_thread)
3434
(package multicoretests)
3535
;(flags (:standard -w -27))
3636
(libraries qcheck-lin.thread lin_tests_spec_io)

src/io/lin_internal_tests.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module Out_channel_ops = struct
121121
let equal_res = (=)
122122

123123
let init () =
124-
let p,ch = Filename.open_temp_file "lin-dsl-" "" in
124+
let p,ch = Filename.open_temp_file "lin-internal-" "" in
125125
path := p;
126126
ch
127127

src/io/lin_tests_dsl_domain.ml renamed to src/io/lin_tests_domain.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ module IC_domain = Lin_domain.Make(Lin_tests_spec_io.ICConf)
66
module OC_domain = Lin_domain.Make(Lin_tests_spec_io.OCConf)
77

88
let tests =
9-
IC_domain.neg_lin_test ~count:1000 ~name:"Lin DSL In_channel test with Domain" ::
9+
IC_domain.neg_lin_test ~count:1000 ~name:"Lin In_channel test with Domain" ::
1010
if Sys.getenv_opt "OCAML_SYSTEM" = Some "macosx"
1111
then (
12-
Printf.printf "Lin DSL Out_channel test with Domain disabled under macOS\n\n%!";
12+
Printf.printf "Lin Out_channel test with Domain disabled under macOS\n\n%!";
1313
[]
1414
) else [
15-
OC_domain.neg_lin_test ~count:5000 ~name:"Lin DSL Out_channel test with Domain";
15+
OC_domain.neg_lin_test ~count:5000 ~name:"Lin Out_channel test with Domain";
1616
]
1717

1818
let _ = QCheck_base_runner.run_tests_main tests

src/io/lin_tests_spec_io.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module OCConf : Lin.Spec = struct
6969
let path = ref ""
7070

7171
let init () =
72-
let p,ch = Filename.open_temp_file "lin-dsl-" "" in
72+
let p,ch = Filename.open_temp_file "lin-" "" in
7373
path := p;
7474
ch
7575

src/io/lin_tests_dsl_thread.ml renamed to src/io/lin_tests_thread.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module OC_thread = Lin_thread.Make(Lin_tests_spec_io.OCConf) [@@alert "-experime
77

88
let _ =
99
QCheck_base_runner.run_tests_main [
10-
IC_thread.neg_lin_test ~count:1000 ~name:"Lin DSL In_channel test with Thread";
11-
OC_thread.neg_lin_test ~count:1000 ~name:"Lin DSL Out_channel test with Thread";
10+
IC_thread.neg_lin_test ~count:1000 ~name:"Lin In_channel test with Thread";
11+
OC_thread.neg_lin_test ~count:1000 ~name:"Lin Out_channel test with Thread";
1212
]

src/lazy/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
)
1919

2020
(test
21-
(name lin_tests_dsl)
22-
(modules lin_tests_dsl)
21+
(name lin_tests)
22+
(modules lin_tests)
2323
(package multicoretests)
2424
(libraries qcheck-lin.domain)
2525
; (action (run %{test} --verbose))

0 commit comments

Comments
 (0)