yesod-core uses cabal test

This commit is contained in:
Michael Snoyman 2011-07-24 15:42:27 +03:00
parent 3660b6d7b0
commit 52ed616dd5
2 changed files with 15 additions and 12 deletions

View File

@ -21,6 +21,8 @@ data Y = Y
mkMessage "Y" "test" "en"
type Strings = [String]
mkYesod "Y" [$parseRoutes|
/ RootR GET
/foo/*Strings MultiR GET

View File

@ -69,23 +69,24 @@ library
if flag(test)
Buildable: False
executable runtests
test-suite runtests
type: exitcode-stdio-1.0
if flag(ghc7)
type: exitcode-stdio-1.0
build-depends: base >= 4.3 && < 5
cpp-options: -DGHC7
main-is: runtests.hs
else
type: exitcode-stdio-1.0
build-depends: base >= 4 && < 4.3
if flag(test)
Buildable: True
cpp-options: -DTEST
build-depends: test-framework,
test-framework-quickcheck2,
test-framework-hunit,
HUnit,
wai-test,
QuickCheck >= 2 && < 3
else
Buildable: False
main-is: runtests.hs
cpp-options: -DTEST
build-depends: test-framework,
test-framework-quickcheck2,
test-framework-hunit,
HUnit,
wai-test,
QuickCheck >= 2 && < 3
ghc-options: -Wall
main-is: runtests.hs