@@ -279,8 +279,6 @@ let
279 runHook postBuild
279 runHook postBuild
282− checkPhase = "notice: Tests are only executed by building the .run sub-derivation of this component.";
284 # Note: Cabal does *not* copy test executables during the `install` phase.
282 # Note: Cabal does *not* copy test executables during the `install` phase.
286 # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
284 # Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
@@ -363,6 +361,8 @@ let
363 runHook postInstall
361 runHook postInstall
364 '' + (lib.optionalString keepSource ''
362 '' + (lib.optionalString keepSource ''
365 rm -rf dist
363 rm -rf dist
364+ '') + (lib.optionalString (haskellLib.isTest componentId) ''
365+ echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
368 shellHook = ''
368 shellHook = ''