summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:35:07 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:38:21 -0400
commit38f9605143c5fc80f0948ec4e579a6b4598e70dd (patch)
tree1f93e7d42edcafc08e8fbc928fe7f6bcf1deb092 /git-annex.cabal
parent52573c7b8cd253c43e92decce6cded80d8eca8f3 (diff)
embed test suite into git annex; available by running: git annex test
I have seen some other programs do this, and think it's pretty cool. Means you can test wherever it's deployed, as well as at build time. My other reason for doing it is less happy. Cabal's handling of test suites sucks, requiring duplicated info, and even when that's done, it fails to preprocess hsc files here. Building it in avoids that and avoids having to explicitly tell cabal to enable test suites, which would then make it link the test executable every time, which is unnecessarily slow. This also has the benefit that now "make fast test" does a max speed build and tests it.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal19
1 files changed, 2 insertions, 17 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index d4298612e..3aad55e1a 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -1,5 +1,5 @@
Name: git-annex
-Version: 4.20130217
+Version: 4.20130227
Cabal-Version: >= 1.8
License: GPL
Maintainer: Joey Hess <joey@kitenet.net>
@@ -63,7 +63,7 @@ Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network (>= 2.0), mtl (>= 2.1.1),
- bytestring, old-locale, time,
+ bytestring, old-locale, time, testpack, HUnit,
extensible-exceptions, dataenc, SHA, process, json,
base (>= 4.5 && < 4.8), monad-control, transformers-base, lifted-base,
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process,
@@ -128,21 +128,6 @@ Executable git-annex
Build-Depends: dns
CPP-Options: -DWITH_DNS
-Test-Suite test
- Type: exitcode-stdio-1.0
- Main-Is: test.hs
- Build-Depends: testpack, HUnit, MissingH, hslogger, directory, filepath,
- unix, containers, utf8-string, network, mtl (>= 2.1.1), bytestring,
- old-locale, time, extensible-exceptions, dataenc, SHA,
- process, json, base (>= 4.5 && < 4.7), monad-control,
- transformers-base, lifted-base, IfElse, text, QuickCheck (>= 2.1),
- bloomfilter, edit-distance, process, SafeSemaphore,
- uuid, random, regex-compat
- Other-Modules: Utility.Touch
- Include-Dirs: Utility
- C-Sources: Utility/libdiskfree.c
- GHC-Options: -threaded
-
source-repository head
type: git
location: git://git-annex.branchable.com/