tests: add evaluation/build test
This commit is contained in:
parent
2951a4f4b0
commit
fc9b7ae002
10
tests/build-test.nix
Normal file
10
tests/build-test.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
imports = [ <nixos-hardware-profile> ];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
}
|
8
tests/build-test.sh
Executable file
8
tests/build-test.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
for profile in $(find .. -name \*.nix); do
|
||||
echo $profile >&2
|
||||
nixos-rebuild -I nixos-config=build-test.nix -I nixos-hardware-profile=$profile dry-build
|
||||
done
|
Loading…
Reference in a new issue