Skip to content

Commit

Permalink
Move testing utils module to ourboros-network-testing
Browse files Browse the repository at this point in the history
This way it can be shared between 'ouroboros-netowrk-framework' and
'ouroboros-netowrk'.
  • Loading branch information
coot committed Oct 19, 2020
1 parent 275d60f commit 9b36ceb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ouroboros-network-testing/ouroboros-network-testing.cabal
Expand Up @@ -25,6 +25,7 @@ library
exposed-modules:
Ouroboros.Network.Testing.Serialise
Ouroboros.Network.Testing.QuickCheck
Ouroboros.Network.Testing.Utils
default-language: Haskell2010
other-extensions: BangPatterns,
DataKinds,
Expand All @@ -49,7 +50,9 @@ library
TypeFamilies,
TypeInType
build-depends: base >=4.9 && <4.15,
contra-tracer,
io-sim,
io-sim-classes,

cborg >=0.2.1 && <0.3,
serialise >=0.2 && <0.3,
Expand Down
@@ -1,6 +1,6 @@
{-# LANGUAGE ScopedTypeVariables #-}

module Test.Ouroboros.Network.Utils where
module Ouroboros.Network.Testing.Utils where

import Control.Monad.Class.MonadTime
import Control.Monad.Class.MonadSay
Expand Down Expand Up @@ -35,3 +35,4 @@ debugTracer = Tracer traceShowM

sayTracer :: ( Show a, MonadSay m) => Tracer m a
sayTracer = Tracer (say . show)

6 changes: 4 additions & 2 deletions ouroboros-network/ouroboros-network.cabal
Expand Up @@ -145,6 +145,7 @@ library
fingertree >=0.1.4.2 && <0.2,
iproute,
mtl,
nothunks,
network >=3.1 && <3.2,
psqueues >=0.2.3 && <0.3,
serialise >=0.2 && <0.3,
Expand Down Expand Up @@ -249,7 +250,6 @@ test-suite test-network
Test.AnchoredFragment
Test.Chain
Test.ChainFragment
Test.Ouroboros.Network.Utils
Test.Ouroboros.Network.BlockFetch
Test.Ouroboros.Network.KeepAlive
Test.Ouroboros.Network.MockNode
Expand Down Expand Up @@ -292,6 +292,7 @@ test-suite test-network
cardano-prelude,
cardano-slotting,
contra-tracer,
nothunks,

io-sim,
io-sim-classes,
Expand Down Expand Up @@ -340,7 +341,6 @@ test-suite test-cddl
tasty-quickcheck,

cardano-binary,
cardano-prelude,
cardano-slotting,
contra-tracer,

Expand Down Expand Up @@ -383,3 +383,5 @@ executable demo-chain-sync
ghc-options: -Wall
-threaded
-rtsopts


Expand Up @@ -45,7 +45,7 @@ import Ouroboros.Network.Mux (ControlMessage (..), continueForever)
import Ouroboros.Network.Protocol.BlockFetch.Type (BlockFetch)
import Ouroboros.Network.Testing.ConcreteBlock

import Test.Ouroboros.Network.Utils
import Ouroboros.Network.Testing.Utils


--
Expand Down
Expand Up @@ -50,7 +50,7 @@ import Ouroboros.Network.TxSubmission.Inbound
import Ouroboros.Network.TxSubmission.Outbound
import Ouroboros.Network.NodeToNode (NodeToNodeVersion (..))

import Test.Ouroboros.Network.Utils
import Ouroboros.Network.Testing.Utils

import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)
Expand Down

0 comments on commit 9b36ceb

Please sign in to comment.