]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
test: nuke hlint testsuite
[functorrent.git] / functorrent.cabal
index c3492db45f722011a92b23244fe311318cbf8254..2d2db982730d5f14bfe059e3fade923f1a38fa49 100644 (file)
@@ -20,13 +20,14 @@ library
                        FuncTorrent.Bencode,
                        FuncTorrent.Logger,
                        FuncTorrent.Metainfo,
+                       FuncTorrent.Network
                        FuncTorrent.Peer,
                        FuncTorrent.Tracker
 
   other-modules:       FuncTorrent.Utils
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
+  ghc-options:         -Wall -fwarn-incomplete-patterns -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
                        base16-bytestring,
@@ -38,6 +39,7 @@ library
                        HTTP,
                        network-uri,
                        parsec,
+                       QuickCheck,
                        tasty,
                        tasty-hunit
 
@@ -45,7 +47,7 @@ executable functorrent
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os -fno-warn-orphans
   default-language:    Haskell2010
   build-depends:       base,
                        base16-bytestring,
@@ -55,6 +57,7 @@ executable functorrent
                        cryptohash,
                        directory,
                        HTTP,
+                       QuickCheck,
                        network-uri,
                        parsec
 
@@ -63,6 +66,7 @@ test-suite functorrent-test
   default-language:  Haskell2010
   hs-source-dirs:    test
   main-is:           Test.hs
+  other-modules:     BencodeTests
   build-depends:     base,
                      functorrent,
                      bytestring,
@@ -70,12 +74,7 @@ test-suite functorrent-test
                      directory,
                      doctest,
                      tasty,
-                     tasty-hunit
-
-test-suite functorrent-hlint
-  type:              exitcode-stdio-1.0
-  default-language:  Haskell2010
-  hs-source-dirs:    test
-  main-is:           Hlint.hs
-  build-depends:     base,
-                     hlint
+                     tasty-hunit,
+                     QuickCheck,
+                     tasty-quickcheck,
+                     test-framework-quickcheck2