From 9660a7a64c749e181d2114cc4b66a8aa4f88be0f Mon Sep 17 00:00:00 2001 From: Adam Vogt Date: Fri, 2 May 2014 20:01:46 +0200 Subject: 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 --- xmonad.cabal | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'xmonad.cabal') 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 -- cgit v1.2.3