X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mailbox-count.cabal;h=f80f2b7e90fbe3fdbefb0ee82ced228b3bb5bc86;hb=7a6ba612bdec5ba940dc6f74143ca64a9163fff2;hp=87688e8a3aabb944d9c5e164a726e553438e5a5b;hpb=72482968102ebd7ad0abeef958fed2a02a126dd2;p=mailbox-count.git diff --git a/mailbox-count.cabal b/mailbox-count.cabal index 87688e8..f80f2b7 100644 --- a/mailbox-count.cabal +++ b/mailbox-count.cabal @@ -11,6 +11,7 @@ category: Mail, Utils build-type: Simple extra-source-files: doc/man1/mailbox-count.1 + test/fixtures/postfixadmin.sqlite3 synopsis: Count mailboxes in a SQL database. description: @@ -25,14 +26,22 @@ executable mailbox-count directory == 1.2.*, filepath == 1.3.*, HDBC == 2.4.*, - HDBC-postgresql == 2.3.* + HDBC-postgresql == 2.3.*, + HDBC-sqlite3 == 2.3.*, + MissingH == 1.2.*, + tasty == 0.8.*, + tasty-hunit == 0.8.* main-is: Main.hs hs-source-dirs: src/ - --other-modules: + other-modules: + Configuration + CommandLine + OptionalConfiguration + Report ghc-options: -Wall @@ -51,6 +60,39 @@ executable mailbox-count -optc-march=native +test-suite testsuite + type: exitcode-stdio-1.0 + hs-source-dirs: src test + main-is: TestSuite.hs + build-depends: + base == 4.*, + cmdargs == 0.10.*, + configurator == 0.2.*, + containers == 0.5.*, + directory == 1.2.*, + filepath == 1.3.*, + HDBC == 2.4.*, + HDBC-postgresql == 2.3.*, + HDBC-sqlite3 == 2.3.*, + MissingH == 1.2.*, + tasty == 0.8.*, + tasty-hunit == 0.8.* + + -- It's not entirely clear to me why I have to reproduce all of this. + ghc-options: + -Wall + -fwarn-hi-shadowing + -fwarn-missing-signatures + -fwarn-name-shadowing + -fwarn-orphans + -fwarn-type-defaults + -fwarn-tabs + -fwarn-incomplete-record-updates + -fwarn-monomorphism-restriction + -fwarn-unused-do-bind + -O2 + + test-suite doctests type: exitcode-stdio-1.0 hs-source-dirs: test