mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixosTests.man: test man-pages package
This commit is contained in:
@@ -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,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 = {
|
||||
|
||||
Reference in New Issue
Block a user