1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-05 02:29:40 +01:00
nixos-hardware/tests/eval-test.sh

20 lines
341 B
Bash
Raw Normal View History

2017-12-24 12:44:48 +01:00
#!/bin/sh
cd $(dirname $0)/..
2017-12-24 12:44:48 +01:00
2017-12-24 18:21:43 +01:00
find=(find . -name default.nix)
for profile in `${find[@]}`; do
echo evaluating $profile >&2
2017-12-25 16:07:07 +01:00
nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
-A system \
--dry-run
if [ $? -ne 0 ]; then
exit 1
fi
2017-12-24 12:44:48 +01:00
done