fix yesod-static test configuration
https://github.com/yesodweb/yesod/issues/180 When the flag configuration is changed (-ftest and --enable-tests) for testing, it doesn't get automatically recompiled. I added '.' to hs-source-dirs for the test suite and the test used the code directly instead of referencing the package.
This commit is contained in:
parent
d39e0d9bfd
commit
07509c0840
@ -45,14 +45,33 @@ library
|
|||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
test-suite tests
|
test-suite tests
|
||||||
hs-source-dirs: test
|
hs-source-dirs: ., test
|
||||||
main-is: ../tests.hs
|
main-is: tests.hs
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
cpp-options: -DTEST
|
cpp-options: -DTEST
|
||||||
build-depends: yesod-static
|
build-depends:
|
||||||
, base >= 4 && < 5
|
hspec >= 0.8 && < 0.10
|
||||||
, hspec >= 0.8 && < 0.10
|
|
||||||
, HUnit
|
, HUnit
|
||||||
|
-- copy from above
|
||||||
|
, base >= 4 && < 5
|
||||||
|
, containers >= 0.2 && < 0.5
|
||||||
|
, old-time >= 1.0
|
||||||
|
, yesod-core >= 0.9 && < 0.10
|
||||||
|
, base64-bytestring >= 0.1.0.1 && < 0.2
|
||||||
|
, pureMD5 >= 2.1.0.3 && < 2.2
|
||||||
|
, cereal >= 0.3 && < 0.4
|
||||||
|
, bytestring >= 0.9.1.4 && < 0.10
|
||||||
|
, template-haskell
|
||||||
|
, directory >= 1.0 && < 1.2
|
||||||
|
, transformers >= 0.2.2 && < 0.3
|
||||||
|
, wai-app-static >= 0.3.2.1 && < 0.4
|
||||||
|
, wai >= 0.4 && < 0.5
|
||||||
|
, text >= 0.9 && < 0.12
|
||||||
|
, file-embed >= 0.0.4.1 && < 0.5
|
||||||
|
, http-types >= 0.6.5 && < 0.7
|
||||||
|
, unix-compat >= 0.2
|
||||||
|
, enumerator >= 0.4.8 && < 0.5
|
||||||
|
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user