1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-29 16:08:31 +02:00
nixos-hardware/tests/eval-test.sh

28 lines
408 B
Bash
Executable File

#!/bin/sh
cd $(dirname $0)/..
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