1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-09-28 09:07:22 +02:00
nixos-hardware/_tests/eval-test.sh
2017-12-24 18:00:51 +00:00

18 lines
287 B
Bash
Executable file

#!/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