Commit f102acde authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add the Cabal unit tests as a test-suite stanza

Still some other tests that need hooking up to this mechanism
parent ee36db63
...@@ -123,3 +123,22 @@ Library ...@@ -123,3 +123,22 @@ Library
Distribution.Simple.GHC.IPI642 Distribution.Simple.GHC.IPI642
Extensions: CPP Extensions: CPP
test-suite unit-tests
type: exitcode-stdio-1.0
main-is: suite.hs
hs-source-dirs: tests
build-depends:
base,
test-framework,
test-framework-quickcheck2,
test-framework-hunit,
HUnit,
QuickCheck >= 2.1.0.1,
Cabal,
process,
directory,
filepath,
extensible-exceptions,
bytestring,
unix
...@@ -57,5 +57,6 @@ tests cabalVersion = [ ...@@ -57,5 +57,6 @@ tests cabalVersion = [
main = do main = do
putStrLn $ "Cabal test suite - testing cabal version "++display cabalVersion putStrLn $ "Cabal test suite - testing cabal version "++display cabalVersion
setCurrentDirectory "tests"
defaultMain (tests cabalVersion) defaultMain (tests cabalVersion)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment