Skip to content
Snippets Groups Projects
Commit d8fa4618 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Properly use test name for test libraries, with updated test.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 670fda87
No related branches found
No related tags found
No related merge requests found
......@@ -407,7 +407,7 @@ testSuiteLibV09AsLibAndExe pkg_descr
libClbi = LibComponentLocalBuildInfo
{ componentPackageDeps = componentPackageDeps clbi
, componentPackageRenaming = componentPackageRenaming clbi
, componentLibraryName = LibraryName "test"
, componentLibraryName = LibraryName (testName test)
, componentExposedModules = [IPI.ExposedModule m Nothing Nothing]
, componentPackageKey = OldPackageKey (PackageIdentifier (PackageName (testName test)) (pkgVersion (package pkg_descr)))
}
......
......@@ -16,3 +16,5 @@ suite config = do
assertConfigureSucceeded confResult
buildResult <- cabal_build config spec
assertBuildSucceeded buildResult
testResult <- cabal_test config spec [] ["test-Dummy", "test-Dummy2"]
assertTestSucceeded testResult
module Dummy2 where
import Distribution.TestSuite (Test)
tests :: IO [Test]
tests = return []
......@@ -18,3 +18,8 @@ test-suite test-Dummy
type: detailed-0.9
test-module: Dummy
build-depends: base, Cabal
test-suite test-Dummy2
type: detailed-0.9
test-module: Dummy2
build-depends: base, Cabal
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment