From 35d79c7666dd879eddd95a3a33e99223ee901081 Mon Sep 17 00:00:00 2001 From: melvyn2 Date: Fri, 15 Jul 2022 11:51:37 -0700 Subject: [PATCH] wakeonlan: Patch and run perl tests The `pod_spell` test needed to be patched out, as it isn't relevant to packaging and is missing a dependency to run. Removing it allows the rest of the tests to be ran for this package. --- pkgs/tools/networking/wakeonlan/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/wakeonlan/default.nix b/pkgs/tools/networking/wakeonlan/default.nix index 3fcae6ee2de..1a50f09d51c 100644 --- a/pkgs/tools/networking/wakeonlan/default.nix +++ b/pkgs/tools/networking/wakeonlan/default.nix @@ -14,8 +14,12 @@ perlPackages.buildPerlPackage rec { outputs = [ "out" ]; nativeBuildInputs = [ installShellFiles ]; - # checkInputs = [ perl534Packages.TestPerlCritic perl534Packages.TestPod perl534Packages.TestPodCoverage ]; - doCheck = false; # Missing package for https://github.com/genio/test-spelling to run tests + + checkInputs = [ perlPackages.TestPerlCritic perlPackages.TestPod perlPackages.TestPodCoverage ]; + # Linting and formatting checks are of no interest for us. + preCheck = '' + rm -f t/93_pod_spell.t + ''; installPhase = '' install -Dt $out/bin wakeonlan