Run also test/ doctests
This commit is contained in:
parent
d5e73bf577
commit
d62865a71c
2 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@ generateBuildModule flags pkg lbi = do
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
-- Lib sources and includes
|
-- Lib sources and includes
|
||||||
iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ libAutogenDir : hsSourceDirs libBI
|
iArgs <- mapM (fmap ("-i"++) . makeAbsolute) $ "test" : libAutogenDir : hsSourceDirs libBI
|
||||||
includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI
|
includeArgs <- mapM (fmap ("-I"++) . makeAbsolute) $ includeDirs libBI
|
||||||
|
|
||||||
-- CPP includes, i.e. include cabal_macros.h
|
-- CPP includes, i.e. include cabal_macros.h
|
||||||
|
@ -106,7 +106,7 @@ generateBuildModule flags pkg lbi = do
|
||||||
, "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags)
|
, "flags = " ++ show (iArgs ++ includeArgs ++ dbFlags ++ cppFlags)
|
||||||
, ""
|
, ""
|
||||||
, "module_sources :: [String]"
|
, "module_sources :: [String]"
|
||||||
, "module_sources = " ++ show (map display module_sources)
|
, "module_sources = " ++ show ("Servant.Utils.LinksSpec" : map display module_sources)
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
-- we do this check in Setup, as then doctests don't need to depend on Cabal
|
-- we do this check in Setup, as then doctests don't need to depend on Cabal
|
||||||
|
|
|
@ -137,6 +137,7 @@ test-suite doctests
|
||||||
, filemanip
|
, filemanip
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
|
, hspec
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
main-is: test/doctests.hs
|
main-is: test/doctests.hs
|
||||||
buildable: True
|
buildable: True
|
||||||
|
|
Loading…
Reference in a new issue