diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2008-01-19 10:12:15 +0100 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2008-01-19 10:12:15 +0100 |
commit | 2319cc88cf8b1616cae77dd4319d8c86873579f1 (patch) | |
tree | be1ed30b751f6d589eb67eaf1840a379f691aa33 /xmonad.cabal | |
parent | 767e9cbd95767542f366e57fe8a6b6b06a720ada (diff) | |
download | metatile-2319cc88cf8b1616cae77dd4319d8c86873579f1.tar metatile-2319cc88cf8b1616cae77dd4319d8c86873579f1.zip |
Roll testing into the main executable, use Cabal to build the tests
darcs-hash:20080119091215-a5988-8f5f48e8c40a0f39abdf6ffe4d4dc938ab8c7ef1
Diffstat (limited to 'xmonad.cabal')
-rw-r--r-- | xmonad.cabal | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/xmonad.cabal b/xmonad.cabal index d727cf1..addd56f 100644 --- a/xmonad.cabal +++ b/xmonad.cabal @@ -23,11 +23,11 @@ extra-source-files: README TODO CONFIG STYLE tests/loc.hs tests/Properties.hs cabal-version: >= 1.2 flag small_base - description: Choose the new smaller, split-up base package. + description: Choose the new smaller, split-up base package. flag testing - description: Testing mode, only build minimal components - default: False + description: Testing mode, only build minimal components + default: False library exposed-modules: XMonad @@ -48,6 +48,7 @@ library ghc-options: -funbox-strict-fields -Wall -optl-Wl,-s ghc-prof-options: -prof -auto-all extensions: CPP + if flag(testing) buildable: False @@ -59,5 +60,11 @@ executable xmonad ghc-options: -funbox-strict-fields -Wall -optl-Wl,-s ghc-prof-options: -prof -auto-all extensions: CPP + if flag(testing) - ghc-options: -Werror + cpp-options: -DTESTING + hs-source-dirs: . tests/ + build-depends: QuickCheck + ghc-options: -Werror + if flag(testing) && flag(small_base) + build-depends: random |