From f7b0f6ce125b144295e23d62737c3d38390a3440 Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Mon, 16 Apr 2012 21:10:52 +1000 Subject: [PATCH 1/2] Include missing test files and sort the list of test files --- yesod-core/yesod-core.cabal | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/yesod-core/yesod-core.cabal b/yesod-core/yesod-core.cabal index 97714f8a..944d804d 100644 --- a/yesod-core/yesod-core.cabal +++ b/yesod-core/yesod-core.cabal @@ -15,18 +15,26 @@ cabal-version: >= 1.8 build-type: Simple homepage: http://www.yesodweb.com/ extra-source-files: - test/en.msg - test/YesodCoreTest/NoOverloadedStrings.hs + test.hs + test/YesodCoreTest.hs + test/YesodCoreTest/Cache.hs + test/YesodCoreTest/CleanPath.hs + test/YesodCoreTest/ErrorHandling.hs + test/YesodCoreTest/Exceptions.hs + test/YesodCoreTest/InternalRequest.hs + test/YesodCoreTest/JsLoader.hs + test/YesodCoreTest/JsLoaderSites/Bottom.hs + test/YesodCoreTest/JsLoaderSites/HeadAsync.hs + test/YesodCoreTest/Links.hs test/YesodCoreTest/Media.hs test/YesodCoreTest/MediaData.hs - test/YesodCoreTest/Exceptions.hs + test/YesodCoreTest/NoOverloadedStrings.hs + test/YesodCoreTest/Redirect.hs + test/YesodCoreTest/WaiSubsite.hs test/YesodCoreTest/Widget.hs - test/YesodCoreTest/CleanPath.hs - test/YesodCoreTest/Links.hs - test/YesodCoreTest/InternalRequest.hs - test/YesodCoreTest/ErrorHandling.hs - test/YesodCoreTest/Cache.hs - test.hs + test/YesodCoreTest/YesodTest.hs + test/en.msg + test/test.hs flag test description: Build the executable to run unit tests From 745edc36b1a869926a7e092c3a5c49dbd59e8e07 Mon Sep 17 00:00:00 2001 From: Mark Wright Date: Mon, 16 Apr 2012 21:15:58 +1000 Subject: [PATCH 2/2] Add test/main.hs to extra-source-files: to hopefully fix https://github.com/yesodweb/yesod/issues/331 --- yesod-routes/yesod-routes.cabal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yesod-routes/yesod-routes.cabal b/yesod-routes/yesod-routes.cabal index c2c88818..cbe91129 100644 --- a/yesod-routes/yesod-routes.cabal +++ b/yesod-routes/yesod-routes.cabal @@ -11,6 +11,8 @@ stability: Stable cabal-version: >= 1.8 build-type: Simple homepage: http://www.yesodweb.com/ +extra-source-files: + test/main.hs library build-depends: base >= 4 && < 5