From fc3df3a86d2ab70df6562b4d9809c1f43c322f32 Mon Sep 17 00:00:00 2001 From: Govind Krishna Joshi Date: Sat, 11 Jul 2015 12:08:24 +0530 Subject: [PATCH] Cabal configure to run tests --- .gitignore | 8 ++++++++ hastron.cabal | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.gitignore b/.gitignore index 1fed3c3..8bfc1b1 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,11 @@ cabal.sandbox.config *.prof *.aux *.hp + +# Vim +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ diff --git a/hastron.cabal b/hastron.cabal index 33410fa..1c2e6ea 100644 --- a/hastron.cabal +++ b/hastron.cabal @@ -25,3 +25,15 @@ executable hastron hashable >=1.2 && <1.3 hs-source-dirs: src default-language: Haskell2010 + +test-suite test + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: tests + main-is: TestMain.hs + build-depends: + base >=4.7 && <4.9, + tasty >=0.10 && <0.11, + tasty-hunit >=0.9 && <0.10, + tasty-quickcheck >=0.8 && <0.9 +