Unverified Commit ece35c6a authored by Michael Daniels's avatar Michael Daniels
Browse files

nixosTests.man: test man-pages package

parent bde046e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ in
      ${machine}.succeed("man 3 libunwind > /dev/null")
      # NixOS configuration man page is installed
      ${machine}.succeed("man configuration.nix > /dev/null")
      # Linux `man-pages` work
      ${machine}.succeed("man 5 proc_vmstat > /dev/null")

    with subtest("Test generateCaches via man -k in ${machine}"):
      expected = [
@@ -97,6 +99,7 @@ in
        ("user", "userdel", 8),
        ("mem", "free", 3),
        ("mem", "free", 1),
        ("statistics", "proc_vmstat", 5),
      ]

      for (keyword, page, section) in expected:
+6 −2
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  gawk,
  man,
  pcre2,
  nixosTests,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -65,9 +66,12 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postInstallCheck
  '';

  passthru.updateScript = directoryListingUpdater {
  passthru = {
    tests = { inherit (nixosTests) man; };
    updateScript = directoryListingUpdater {
      url = "https://www.kernel.org/pub/linux/docs/man-pages/";
    };
  };

  meta = {
    description = "Linux development manual pages";