]> git.rkrishnan.org Git - functorrent.git/blobdiff - functorrent.cabal
WIP: split tests into their own modules
[functorrent.git] / functorrent.cabal
index fc4cfb35bb18cc4a28bfb98f4255c952b66776c4..05ed4b3aa8286c403b2611126c15195f007636e6 100644 (file)
@@ -20,6 +20,7 @@ library
                        FuncTorrent.Bencode,
                        FuncTorrent.Logger,
                        FuncTorrent.Metainfo,
+                       FuncTorrent.Network
                        FuncTorrent.Peer,
                        FuncTorrent.Tracker
 
@@ -34,9 +35,13 @@ library
                        bytestring,
                        containers,
                        cryptohash,
+                       directory,
                        HTTP,
                        network-uri,
-                       parsec
+                       parsec,
+                       QuickCheck,
+                       tasty,
+                       tasty-hunit
 
 executable functorrent
   main-is:             Main.hs
@@ -50,7 +55,9 @@ executable functorrent
                        bytestring,
                        containers,
                        cryptohash,
+                       directory,
                        HTTP,
+                       QuickCheck,
                        network-uri,
                        parsec
 
@@ -59,13 +66,18 @@ test-suite functorrent-test
   default-language:  Haskell2010
   hs-source-dirs:    test
   main-is:           Test.hs
+  other-modules:     BencodeTests
   build-depends:     base,
                      functorrent,
                      bytestring,
                      containers,
+                     directory,
                      doctest,
                      tasty,
-                     tasty-hunit
+                     tasty-hunit,
+                     QuickCheck,
+                     tasty-quickcheck,
+                     test-framework-quickcheck2
 
 test-suite functorrent-hlint
   type:              exitcode-stdio-1.0