Revert "tests: move to _tests"

This reverts commit 4d498aff1a.
This commit is contained in:
Yegor Timoshenko
2017-12-24 22:21:53 +00:00
parent 8abb6374c1
commit b63e0eb372
2 changed files with 1 additions and 1 deletions

15
tests/eval-test.nix Normal file
View File

@@ -0,0 +1,15 @@
{
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;
};
}

18
tests/eval-test.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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