tests/eval-test: exit on failed evaluation, skip some paths
This commit is contained in:
parent
a95291d21d
commit
f35389f469
|
@ -1,8 +1,27 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
for profile in $(find .. -name \*.nix); do
|
skip_paths=(
|
||||||
echo $profile >&2
|
./inversepath/usbarmory/*
|
||||||
nixos-rebuild -I nixos-config=eval-test.nix -I nixos-hardware-profile=$profile dry-build
|
./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
|
done
|
||||||
|
|
Loading…
Reference in a new issue