Commit 0437acc9 authored by ttuegel's avatar ttuegel
Browse files

Updated test suite for new test suite stanza format

Ticket #215 (Overhaul support for packages' tests).
parent ef51c7ba
......@@ -12,9 +12,9 @@ import Distribution.PackageDescription.Configuration
import Distribution.Package
( PackageIdentifier(..), PackageName(..), Dependency(..) )
import Distribution.PackageDescription
( PackageDescription(..), BuildInfo(..), Testsuite(..), Library(..)
( PackageDescription(..), BuildInfo(..), TestSuite(..), Library(..)
, TestType(..), emptyPackageDescription, emptyBuildInfo, emptyLibrary
, emptyTestsuite, BuildType(..) )
, emptyTestSuite, BuildType(..) )
import Distribution.Verbosity (silent)
import Distribution.License (License(..))
import Distribution.ModuleName (fromString)
......@@ -59,10 +59,11 @@ suite cabalVersion = TestCase $ do
, hsSourceDirs = ["."]
}
}
, testsuites = [ emptyTestsuite
, testSuites = [ emptyTestSuite
{ testName = "dummy"
, testIs = "dummy.hs"
, testType = ExeTest (thisVersion $ Version [1] [])
, mainIs = Just "dummy.hs"
, testType = ExeTest $ Version [1,0] []
, testModule = Nothing
, testBuildInfo = emptyBuildInfo
{ targetBuildDepends =
[ Dependency (PackageName "base") anyVersion ]
......
......@@ -13,7 +13,7 @@ Library
exposed-modules: MyLibrary
build-depends: base
Test dummy
test-is: dummy.hs
type: executable == 1
test-suite dummy
main-is: dummy.hs
type: executable 1.0
build-depends: base
\ No newline at end of file
Supports Markdown
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