Commit 05491696 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

hello: add postInstallCheck

Set doInstallCheck = true.
Test the existence of main program in postInstallCheck.
parent 50106784
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,13 @@ stdenv.mkDerivation (finalAttrs: {

  doCheck = true;

  doInstallCheck = true;

  # Give hello some install checks for testing purpose.
  postInstallCheck = ''
    stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}"
  '';

  passthru.tests = {
    version = testers.testVersion { package = hello; };