Commit 52634b29 authored by ttuegel's avatar ttuegel
Browse files

Test building detailed test suites.

Detect bug #1287.
parent 99d29e43
...@@ -158,6 +158,7 @@ test-suite package-tests ...@@ -158,6 +158,7 @@ test-suite package-tests
PackageTests.BuildDeps.TargetSpecificDeps2.Check, PackageTests.BuildDeps.TargetSpecificDeps2.Check,
PackageTests.BuildDeps.TargetSpecificDeps3.Check, PackageTests.BuildDeps.TargetSpecificDeps3.Check,
PackageTests.BuildDeps.SameDepsAllRound.Check, PackageTests.BuildDeps.SameDepsAllRound.Check,
PackageTests.BuildTestSuiteDetailedV09.Check,
PackageTests.PreProcess.Check, PackageTests.PreProcess.Check,
PackageTests.TestOptions.Check, PackageTests.TestOptions.Check,
PackageTests.TestStanza.Check, PackageTests.TestStanza.Check,
......
...@@ -28,6 +28,7 @@ import PackageTests.BuildDeps.SameDepsAllRound.Check ...@@ -28,6 +28,7 @@ import PackageTests.BuildDeps.SameDepsAllRound.Check
import PackageTests.BuildDeps.TargetSpecificDeps1.Check import PackageTests.BuildDeps.TargetSpecificDeps1.Check
import PackageTests.BuildDeps.TargetSpecificDeps2.Check import PackageTests.BuildDeps.TargetSpecificDeps2.Check
import PackageTests.BuildDeps.TargetSpecificDeps3.Check import PackageTests.BuildDeps.TargetSpecificDeps3.Check
import PackageTests.BuildTestSuiteDetailedV09.Check
import PackageTests.PackageTester (compileSetup) import PackageTests.PackageTester (compileSetup)
import PackageTests.PathsModule.Executable.Check import PackageTests.PathsModule.Executable.Check
import PackageTests.PathsModule.Library.Check import PackageTests.PathsModule.Library.Check
...@@ -77,6 +78,8 @@ tests version = ...@@ -77,6 +78,8 @@ tests version =
, hunit "PathsModule/Library" PackageTests.PathsModule.Library.Check.suite , hunit "PathsModule/Library" PackageTests.PathsModule.Library.Check.suite
, hunit "EmptyLib/emptyLib" , hunit "EmptyLib/emptyLib"
PackageTests.EmptyLib.Check.emptyLib PackageTests.EmptyLib.Check.emptyLib
, hunit "BuildTestSuiteDetailedV09"
PackageTests.BuildTestSuiteDetailedV09.Check.suite
] ++ ] ++
-- These tests are only required to pass on cabal version >= 1.7 -- These tests are only required to pass on cabal version >= 1.7
(if version >= Version [1, 7] [] (if version >= Version [1, 7] []
......
module PackageTests.BuildTestSuiteDetailedV09.Check where
import Test.HUnit
import System.FilePath ((</>))
import PackageTests.PackageTester
suite :: Test
suite = TestCase $ do
let dir = "PackageTests" </> "BuildTestSuiteDetailedV09"
spec = PackageSpec dir ["--enable-tests"]
confResult <- cabal_configure spec
assertEqual "configure failed!" (successful confResult) True
buildResult <- cabal_build spec
assertEqual "build failed!" (successful buildResult) True
module Dummy where
import Distribution.TestSuite (Test)
tests :: IO [Test]
tests = return []
name: BuildTestSuiteDetailedV09
version: 0.1
license: BSD3
author: Thomas Tuegel
stability: stable
category: PackageTests
build-type: Simple
description:
Check that Cabal can build test suites of type detailed-0.9.
Library
exposed-modules: Dummy
build-depends: base, Cabal
test-suite dummy
type: detailed-0.9
test-module: Dummy
build-depends: base, Cabal
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