From 07509c08408ef94fa547346e6e718e33650baf10 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Tue, 6 Dec 2011 09:22:40 -0300 Subject: [PATCH] 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. --- yesod-static/yesod-static.cabal | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/yesod-static/yesod-static.cabal b/yesod-static/yesod-static.cabal index 5d137d0d..0e8e306c 100644 --- a/yesod-static/yesod-static.cabal +++ b/yesod-static/yesod-static.cabal @@ -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