nixos-rebuild: add installer test to passthru.tests
When something changes in nixos-rebuild, we must make sure the
installers still work, otherwise it might break existing setups.
The installer tests check whether nixos-rebuild works, so they are a
good lithmus test.
commit5679b2b6987329910aea97458c4fa01e62f1e340
authorProfpatsch <mail@profpatsch.de>
dateTue 8 Mar 2022, 18:01 (5 years ago)
parentcb7bc7c
pkgs/os-specific/linux/nixos-rebuild/default.nix+6
@@ -5,6 +5,7 @@
55, gnugrep
66, nix
77, lib
8+, nixosTests
89}:
910let
1011 fallback = import ./../../../../nixos/modules/installer/tools/nix-fallback-paths.nix;
@@ -19,4 +20,9 @@ substituteAll {
1920 nix_i686_linux = fallback.i686-linux;
2021 nix_aarch64_linux = fallback.aarch64-linux;
2122 path = lib.makeBinPath [ coreutils gnused gnugrep ];
23+
24+ # run some a simple installer tests to make sure nixos-rebuild still works for them
25+ passthru.tests = {
26+ simple-installer-test = nixosTests.installer.simple;
27+ };
2228}