]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
add QuickCheck test to the test suite.
[functorrent.git] / functorrent.cabal
index e72f301bdbc7958f4d8b4a4b527666e794c30bff..b2d3c6a110a65befa372f4a45104a518b1cf2b95 100644 (file)
@@ -20,38 +20,68 @@ 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
   default-language:    Haskell2010
   build-depends:       base,
-                       HTTP,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       directory,
+                       HTTP,
                        network-uri,
                        parsec,
-                       time
+                       QuickCheck,
+                       tasty,
+                       tasty-hunit
 
 executable functorrent
   main-is:             Main.hs
   other-extensions:    OverloadedStrings
   hs-source-dirs:      src
-  ghc-options:         -Wall -fwarn-incomplete-patterns
+  ghc-options:         -Wall -fwarn-incomplete-patterns -optc-Os
   default-language:    Haskell2010
   build-depends:       base,
-                       HTTP,
                        base16-bytestring,
                        binary,
                        bytestring,
                        containers,
                        cryptohash,
-                       doctest,
+                       directory,
+                       HTTP,
+                       QuickCheck,
                        network-uri,
-                       parsec,
-                       time
+                       parsec
+
+test-suite functorrent-test
+  type:              exitcode-stdio-1.0
+  default-language:  Haskell2010
+  hs-source-dirs:    test
+  main-is:           Test.hs
+  build-depends:     base,
+                     functorrent,
+                     bytestring,
+                     containers,
+                     directory,
+                     doctest,
+                     tasty,
+                     tasty-hunit,
+                     QuickCheck,
+                     tasty-quickcheck,
+                     test-framework-quickcheck2
+
+test-suite functorrent-hlint
+  type:              exitcode-stdio-1.0
+  default-language:  Haskell2010
+  hs-source-dirs:    test
+  main-is:           Hlint.hs
+  build-depends:     base,
+                     hlint