yesod-core uses cabal test
This commit is contained in:
parent
3660b6d7b0
commit
52ed616dd5
@ -21,6 +21,8 @@ data Y = Y
|
|||||||
|
|
||||||
mkMessage "Y" "test" "en"
|
mkMessage "Y" "test" "en"
|
||||||
|
|
||||||
|
type Strings = [String]
|
||||||
|
|
||||||
mkYesod "Y" [$parseRoutes|
|
mkYesod "Y" [$parseRoutes|
|
||||||
/ RootR GET
|
/ RootR GET
|
||||||
/foo/*Strings MultiR GET
|
/foo/*Strings MultiR GET
|
||||||
|
|||||||
@ -69,23 +69,24 @@ library
|
|||||||
if flag(test)
|
if flag(test)
|
||||||
Buildable: False
|
Buildable: False
|
||||||
|
|
||||||
executable runtests
|
test-suite runtests
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
if flag(ghc7)
|
if flag(ghc7)
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
build-depends: base >= 4.3 && < 5
|
build-depends: base >= 4.3 && < 5
|
||||||
cpp-options: -DGHC7
|
cpp-options: -DGHC7
|
||||||
|
main-is: runtests.hs
|
||||||
else
|
else
|
||||||
|
type: exitcode-stdio-1.0
|
||||||
build-depends: base >= 4 && < 4.3
|
build-depends: base >= 4 && < 4.3
|
||||||
if flag(test)
|
main-is: runtests.hs
|
||||||
Buildable: True
|
cpp-options: -DTEST
|
||||||
cpp-options: -DTEST
|
build-depends: test-framework,
|
||||||
build-depends: test-framework,
|
test-framework-quickcheck2,
|
||||||
test-framework-quickcheck2,
|
test-framework-hunit,
|
||||||
test-framework-hunit,
|
HUnit,
|
||||||
HUnit,
|
wai-test,
|
||||||
wai-test,
|
QuickCheck >= 2 && < 3
|
||||||
QuickCheck >= 2 && < 3
|
|
||||||
else
|
|
||||||
Buildable: False
|
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
main-is: runtests.hs
|
main-is: runtests.hs
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user