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:
Greg Weber 2011-12-06 09:22:40 -03:00
parent d39e0d9bfd
commit 07509c0840

View File

@ -45,14 +45,33 @@ library
ghc-options: -Wall
test-suite tests
hs-source-dirs: test
main-is: ../tests.hs
hs-source-dirs: ., test
main-is: tests.hs
type: exitcode-stdio-1.0
cpp-options: -DTEST
build-depends: yesod-static
, base >= 4 && < 5
, hspec >= 0.8 && < 0.10
build-depends:
hspec >= 0.8 && < 0.10
, 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
source-repository head