3 This file is a test that makes sure that the `pkgs.nixos` and
4 `pkgs.testers.nixosTest` functions work. It's far from a perfect test suite,
5 but better than not checking them at all on hydra.
9 nixpkgs$ nix-build -A tests.nixos-functions
12 { pkgs, lib, stdenv, ... }:
17 versionSuffix = "test";
20 in lib.optionalAttrs stdenv.hostPlatform.isLinux (
21 pkgs.recurseIntoAttrs {
23 nixos-test = (pkgs.nixos {
24 system.nixos = dummyVersioning;
25 boot.loader.grub.enable = false;
26 fileSystems."/".device = "/dev/null";
27 system.stateVersion = lib.trivial.release;