]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - test/Doctests.hs
Add a doctest suite with a big-ass caveat.
[dead/htsn-import.git] / test / Doctests.hs
diff --git a/test/Doctests.hs b/test/Doctests.hs
new file mode 100644 (file)
index 0000000..d76d272
--- /dev/null
@@ -0,0 +1,12 @@
+module Main where
+
+import Test.DocTest ( doctest )
+
+-- | There's some kind of goddamned bug causing the doctests to commit
+--   suicide when run on src/Main.hs. Since we only have doctests in
+--   TSN.Codegen for now, just test that.
+--
+main :: IO ()
+main = doctest [ "-isrc",
+                 "-idist/build/autogen",
+                 "src/TSN/Codegen.hs" ]