summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:59:31 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:59:31 -0400
commit5f411d144c343924849c93b203b393a33e395ce9 (patch)
treeaf657accecdc995cc856f6674f87affa87a65dd2 /git-annex.cabal
parent58237dbf4738dd48e197edcd092a2db055d926d8 (diff)
disable test suite on Android
Cannot get QuickCheck to install just now.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 3aad55e1a..7d370d34f 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -59,11 +59,14 @@ Flag Android
Description: Building for Android
Default: False
+Flag TestSuite
+ Description: Embed the test suite into git-annex
+
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, testpack, HUnit,
+ bytestring, old-locale, time,
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,
@@ -78,6 +81,10 @@ Executable git-annex
if flag(Production)
GHC-Options: -O2
+ if flag(TestSuite)
+ Build-Depends: testpack, HUnit
+ CPP-Options: -DWITH_TESTSUITE
+
if flag(S3)
Build-Depends: hS3
CPP-Options: -DWITH_S3