tests: move to _tests

This commit is contained in:
Yegor Timoshenko
2017-12-24 18:00:51 +00:00
parent a433fd730f
commit 4d498aff1a
2 changed files with 1 additions and 1 deletions

View File

@@ -1,15 +0,0 @@
{
imports = [ <nixos-hardware-profile> ];
boot.loader.systemd-boot.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
};
nixpkgs.config = {
allowBroken = true;
allowUnfree = true;
};
}

View File

@@ -1,18 +0,0 @@
#!/bin/sh
cd $(dirname $0)/..
find=(find . -name default.nix)
for profile in `${find[@]}`; do
echo evaluating $profile >&2
nixos-rebuild \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
dry-build
if [ $? -ne 0 ]; then
exit 1
fi
done