nixosTests.man: test man-pages package

This commit is contained in:
Michael Daniels
2026-02-15 19:28:36 -05:00
parent bde046e159
commit ece35c6a79
2 changed files with 9 additions and 2 deletions

View File

@@ -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:

View File

@@ -6,6 +6,7 @@
gawk,
man,
pcre2,
nixosTests,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -65,8 +66,11 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstallCheck
'';
passthru.updateScript = directoryListingUpdater {
url = "https://www.kernel.org/pub/linux/docs/man-pages/";
passthru = {
tests = { inherit (nixosTests) man; };
updateScript = directoryListingUpdater {
url = "https://www.kernel.org/pub/linux/docs/man-pages/";
};
};
meta = {