Commit 887dccb7 authored by refold's avatar refold
Browse files

Add a test for #1241.

parent 7c3ea677
......@@ -34,6 +34,7 @@ import PackageTests.PathsModule.Library.Check
import PackageTests.PreProcess.Check
import PackageTests.TemplateHaskell.Check
import PackageTests.CMain.Check
import PackageTests.EmptyLib.Check
import PackageTests.TestOptions.Check
import PackageTests.TestStanza.Check
import PackageTests.TestSuiteExeV10.Check
......@@ -74,6 +75,8 @@ tests version =
, hunit "PathsModule/Executable"
PackageTests.PathsModule.Executable.Check.suite
, hunit "PathsModule/Library" PackageTests.PathsModule.Library.Check.suite
, hunit "EmptyLib/emptyLib"
PackageTests.EmptyLib.Check.emptyLib
] ++
-- These tests are only required to pass on cabal version >= 1.7
(if version >= Version [1, 7] []
......@@ -104,4 +107,3 @@ main = do
-- Create a shared Setup executable to speed up Simple tests
compileSetup "."
defaultMain (tests cabalVersion)
module PackageTests.EmptyLib.Check where
import PackageTests.PackageTester
import System.FilePath
import Test.HUnit
-- See https://github.com/haskell/cabal/issues/1241
emptyLib :: Test
emptyLib = TestCase $ do
let spec = PackageSpec ("PackageTests" </> "EmptyLib"
</> "empty") []
result <- cabal_build spec
assertBuildSucceeded result
name: emptyLib
Cabal-version: >= 1.2
version: 1.0
build-type: Simple
Library
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