diff options
author | Adam Vogt <vogt.adam@gmail.com> | 2014-05-02 20:01:46 +0200 |
---|---|---|
committer | Adam Vogt <vogt.adam@gmail.com> | 2014-05-02 20:01:46 +0200 |
commit | 9660a7a64c749e181d2114cc4b66a8aa4f88be0f (patch) | |
tree | 1664b0ed1ee20f66cf3b7f550c33d49c897bed8c /xmonad.cabal | |
parent | b682eaf8fcbb548dacb35b4103e546cbd9fca3ed (diff) | |
download | xmonad-9660a7a64c749e181d2114cc4b66a8aa4f88be0f.tar.gz xmonad-9660a7a64c749e181d2114cc4b66a8aa4f88be0f.tar.xz xmonad-9660a7a64c749e181d2114cc4b66a8aa4f88be0f.zip |
update testsuite (mostly due Jesper Reenberg)
Ignore-this: a5e926aa4e397e70d56e3c9db7108d5b
* use quickcheck2
* run them using cabal's test-suite field
* split up Properties into separate files
darcs-hash:20140502180146-1499c-dc8c09c3ec76a42a0e146925adce960435dc81db.gz
Diffstat (limited to 'xmonad.cabal')
-rw-r--r-- | xmonad.cabal | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/xmonad.cabal b/xmonad.cabal index 5b7dc7a..0265a91 100644 --- a/xmonad.cabal +++ b/xmonad.cabal @@ -17,7 +17,9 @@ license: BSD3 license-file: LICENSE author: Spencer Janssen maintainer: xmonad@haskell.org -extra-source-files: README TODO CONFIG STYLE tests/loc.hs tests/Properties.hs +extra-source-files: README TODO CONFIG STYLE tests/loc.hs + tests/Properties.hs tests/Properties/*.hs + tests/Properties/Layout*.hs man/xmonad.1.markdown man/xmonad.1 man/xmonad.1.html util/GenerateManpage.hs cabal-version: >= 1.8 @@ -88,10 +90,13 @@ executable xmonad ghc-prof-options: -prof -auto-all extensions: CPP - if flag(testing) - cpp-options: -DTESTING - hs-source-dirs: . tests/ - build-depends: QuickCheck < 2 - ghc-options: -Werror - if flag(testing) && flag(small_base) - build-depends: filepath, process, directory, mtl, unix, X11, base, containers, random, extensible-exceptions +test-suite properties + type: exitcode-stdio-1.0 + hs-source-dirs: tests + build-depends: base, + QuickCheck >= 2, + X11, + containers, + extensible-exceptions, + xmonad + main-is: Properties.hs |