Skip to content

Commit

Permalink
one STM library with sub-libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
n-osborne committed Jun 21, 2022
1 parent 41ebd11 commit 6f151c9
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 20 deletions.
3 changes: 1 addition & 2 deletions lib/STM.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include StmSpec
include STM_Common
include STM_Core

module STM_Seq = STM_Seq
module STM_Domain = STM_Domain
Expand Down
6 changes: 6 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
(modules STM_Domain)
(libraries qcheck util STM_Core))

(library
(name STM)
(public_name multicorecheck.stm)
(modules STM)
(libraries STM_Core STM_Seq STM_Domain STM_Thread))

(library
(name STM_Thread)
(public_name multicorecheck.stm_thread)
Expand Down
2 changes: 1 addition & 1 deletion src/atomic/atomic_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** This is a parallel test of the Atomic module *)

Expand Down
2 changes: 1 addition & 1 deletion src/atomic/dune
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
(executable
(name atomic_test)
(modules atomic_test)
(libraries qcheck STM_Core STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/buffer/buffer_stm_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** parallel STM tests of Buffer *)

Expand Down
2 changes: 1 addition & 1 deletion src/buffer/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(executable
(name buffer_stm_test)
(modules buffer_stm_test)
(libraries qcheck STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/domainslib/chan_tests.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open QCheck
open Domainslib
open STM_Core
open STM

(** This is a parallel test of Domainslib.Chan *)

Expand Down
2 changes: 1 addition & 1 deletion src/domainslib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
(name chan_tests)
(modes native byte)
(modules chan_tests)
(libraries util qcheck STM_Seq STM_Domain STM_Thread domainslib)
(libraries util qcheck STM domainslib)
(preprocess (pps ppx_deriving.show)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/ephemeron/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(executable
(name stm_test)
(modules stm_test)
(libraries qcheck STM_Core STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving.show)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/ephemeron/stm_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** parallel STM tests of Ephemeron *)

Expand Down
2 changes: 1 addition & 1 deletion src/hashtbl/dune
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(executable
(name stm_test)
(modules stm_test)
(libraries qcheck STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving_qcheck ppx_deriving.show)))

; (rule
Expand Down
2 changes: 1 addition & 1 deletion src/hashtbl/stm_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** parallel STM tests of Hashtbl *)

Expand Down
2 changes: 1 addition & 1 deletion src/lazy/dune
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(executable
(name lazy_stm_test)
(modules lazy_stm_test)
(libraries qcheck STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/lazy/lazy_stm_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** parallel STM tests of Lazy *)

Expand Down
2 changes: 1 addition & 1 deletion src/lockfree/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(executable
(name ws_deque_test)
(modules ws_deque_test)
(libraries qcheck STM_Seq STM_Domain STM_Thread lockfree)
(libraries qcheck STM lockfree)
(preprocess (pps ppx_deriving.show)))

(env
Expand Down
2 changes: 1 addition & 1 deletion src/lockfree/ws_deque_test.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(** Sequential tests of ws_deque *)

open QCheck
open STM_Core
open STM
module Ws_deque = Lockfree.Ws_deque

module WSDConf =
Expand Down
2 changes: 1 addition & 1 deletion src/neg_tests/conclist_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** This is a parallel test of the buggy concurrent list CList *)

Expand Down
4 changes: 2 additions & 2 deletions src/neg_tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(executable
(name ref_test)
(modules ref_test)
(libraries qcheck STM_Seq STM_Domain STM_Thread)
(libraries qcheck STM)
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))

(env
Expand All @@ -38,7 +38,7 @@
(executable
(name conclist_test)
(modules conclist_test)
(libraries CList qcheck STM_Seq STM_Domain STM_Thread)
(libraries CList qcheck STM)
(preprocess (pps ppx_deriving.show ppx_deriving.eq)))

(rule
Expand Down
2 changes: 1 addition & 1 deletion src/neg_tests/ref_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
open QCheck
open STM_Core
open STM

(** This is a parallel test of refs *)

Expand Down

0 comments on commit 6f151c9

Please sign in to comment.