aboutsummaryrefslogtreecommitdiff
path: root/git-annex.hs
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.hs
parent58237dbf4738dd48e197edcd092a2db055d926d8 (diff)
disable test suite on Android
Cannot get QuickCheck to install just now.
Diffstat (limited to 'git-annex.hs')
-rw-r--r--git-annex.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-annex.hs b/git-annex.hs
index e2cd80ace..a2ddb0032 100644
--- a/git-annex.hs
+++ b/git-annex.hs
@@ -5,12 +5,16 @@
- Licensed under the GNU GPL version 3 or higher.
-}
+{-# LANGUAGE CPP #-}
+
import System.Environment
import System.FilePath
import qualified GitAnnex
import qualified GitAnnexShell
+#ifdef WITH_TESTUITE
import qualified Test
+#endif
main :: IO ()
main = run =<< getProgName
@@ -21,6 +25,10 @@ main = run =<< getProgName
isshell n = takeFileName n == "git-annex-shell"
go a = do
ps <- getArgs
+#ifdef WITH_TESTUITE
if ps == ["test"]
then Test.main
else a ps
+#else
+ a ps
+#endif