X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2FDoctests.hs;fp=test%2FDoctests.hs;h=d183b4b664d289ea123da751f562a937c34ff1ae;hb=8e5a377920002012c38066a2d21b6393a78c677a;hp=0000000000000000000000000000000000000000;hpb=d73de26c7c5a72da9d7d64f6c1ed91c3ea2b8dd0;p=list-remote-forwards.git diff --git a/test/Doctests.hs b/test/Doctests.hs new file mode 100644 index 0000000..d183b4b --- /dev/null +++ b/test/Doctests.hs @@ -0,0 +1,13 @@ +module Main +where + +import Test.DocTest +import System.FilePath.Find ((==?), always, extension, find) + +find_sources :: IO [FilePath] +find_sources = find always (extension ==? ".hs") "src/" + +main :: IO () +main = do + sources <- find_sources + doctest $ ["-isrc", "-idist/build/autogen"] ++ sources