Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
0437acc9
Commit
0437acc9
authored
Jun 08, 2010
by
ttuegel
Browse files
Updated test suite for new test suite stanza format
Ticket #215 (Overhaul support for packages' tests).
parent
ef51c7ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/PackageTests/TestStanza/Check.hs
View file @
0437acc9
...
...
@@ -12,9 +12,9 @@ import Distribution.PackageDescription.Configuration
import
Distribution.Package
(
PackageIdentifier
(
..
),
PackageName
(
..
),
Dependency
(
..
)
)
import
Distribution.PackageDescription
(
PackageDescription
(
..
),
BuildInfo
(
..
),
Test
s
uite
(
..
),
Library
(
..
)
(
PackageDescription
(
..
),
BuildInfo
(
..
),
Test
S
uite
(
..
),
Library
(
..
)
,
TestType
(
..
),
emptyPackageDescription
,
emptyBuildInfo
,
emptyLibrary
,
emptyTest
s
uite
,
BuildType
(
..
)
)
,
emptyTest
S
uite
,
BuildType
(
..
)
)
import
Distribution.Verbosity
(
silent
)
import
Distribution.License
(
License
(
..
))
import
Distribution.ModuleName
(
fromString
)
...
...
@@ -59,10 +59,11 @@ suite cabalVersion = TestCase $ do
,
hsSourceDirs
=
[
"."
]
}
}
,
test
s
uites
=
[
emptyTest
s
uite
,
test
S
uites
=
[
emptyTest
S
uite
{
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
]
...
...
tests/PackageTests/TestStanza/my.cabal
View file @
0437acc9
...
...
@@ -13,7 +13,7 @@ Library
exposed-modules: MyLibrary
build-depends: base
T
est dummy
test
-is: dummy.hs
type: executable
== 1
t
est
-suite
dummy
main
-is: dummy.hs
type: executable
1.0
build-depends: base
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment