diff --git a/tests/default.nix b/tests/default.nix index 89026403..5b6cbcb2 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -30,7 +30,7 @@ let # Avoid including documentation since this will cause # unnecessary rebuilds of the tests. - manual.manpages.enable = false; + manual.manpages.enable = lib.mkDefault false; imports = [ ./asserts.nix ./big-test.nix ./stubs.nix ]; @@ -52,6 +52,7 @@ import nmt { ./modules/files ./modules/home-environment ./modules/misc/fontconfig + ./modules/misc/manual ./modules/misc/nix ./modules/misc/specialisation ./modules/programs/aerc diff --git a/tests/modules/misc/manual/default.nix b/tests/modules/misc/manual/default.nix new file mode 100644 index 00000000..095809c9 --- /dev/null +++ b/tests/modules/misc/manual/default.nix @@ -0,0 +1 @@ +{ manual = ./manual.nix; } diff --git a/tests/modules/misc/manual/manual.nix b/tests/modules/misc/manual/manual.nix new file mode 100644 index 00000000..eb70374a --- /dev/null +++ b/tests/modules/misc/manual/manual.nix @@ -0,0 +1,19 @@ +{ ... }: + +{ + config = { + manual = { + html.enable = true; + manpages.enable = true; + json.enable = true; + }; + + nmt.script = '' + assertFileExists home-path/share/doc/home-manager/index.html + assertFileExists home-path/share/doc/home-manager/options.html + assertFileExists home-path/share/doc/home-manager/options.json + assertFileExists home-path/share/man/man1/home-manager.1.gz + assertFileExists home-path/share/man/man5/home-configuration.nix.5.gz + ''; + }; +}