mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
tests/eval-test: exit on failed evaluation, skip some paths
This commit is contained in:
parent
a95291d21d
commit
f35389f469
1 changed files with 23 additions and 4 deletions
|
@ -1,8 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd $(dirname $0)
|
||||
cd $(dirname $0)/..
|
||||
|
||||
for profile in $(find .. -name \*.nix); do
|
||||
echo $profile >&2
|
||||
nixos-rebuild -I nixos-config=eval-test.nix -I nixos-hardware-profile=$profile dry-build
|
||||
skip_paths=(
|
||||
./inversepath/usbarmory/*
|
||||
./tests/*
|
||||
)
|
||||
|
||||
find=(find . -name *.nix)
|
||||
|
||||
for path in ${skip_paths[@]}; do
|
||||
find+=(-not -path $path)
|
||||
done
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue