From 86a5db129be291f27811115b2279988a3c02aad9 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Fri, 1 Nov 2013 13:41:12 +0400 Subject: Enable testing --- bittorrent.cabal | 46 +++++++++++++++++++++------------------------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/bittorrent.cabal b/bittorrent.cabal index ae1a06a4..7f59637e 100644 --- a/bittorrent.cabal +++ b/bittorrent.cabal @@ -130,12 +130,12 @@ library ghc-prof-options: -test-suite properties +test-suite spec default-language: Haskell2010 - default-extensions: + default-extensions: OverloadedStrings type: exitcode-stdio-1.0 hs-source-dirs: tests - main-is: Main.hs + main-is: Spec.hs build-depends: base == 4.* , bytestring , directory @@ -146,32 +146,28 @@ test-suite properties , network , text + , hspec , QuickCheck - , HUnit - , test-framework - , test-framework-quickcheck2 - , test-framework-hunit + , quickcheck-instances , bencoding , bittorrent - ghc-options: -Wall -fno-warn-orphans -benchmark benchmarks - default-language: Haskell2010 - default-extensions: - type: exitcode-stdio-1.0 - hs-source-dirs: bench - main-is: Main.hs - build-depends: base - , bytestring - , cereal - , network - - , criterion - , deepseq - - , bittorrent - - ghc-options: -O2 -Wall -fno-warn-orphans +--benchmark bench +-- default-language: Haskell2010 +-- default-extensions: +-- type: exitcode-stdio-1.0 +-- hs-source-dirs: bench +-- main-is: Main.hs +-- build-depends: base +-- , bytestring +-- , cereal +-- , network +-- +-- , criterion +-- , deepseq +-- +-- , bittorrent +-- ghc-options: -O2 -Wall -fno-warn-orphans -- cgit v1.2.3