summaryrefslogtreecommitdiffstats
path: root/tests/eval-test.sh
blob: 72d634199d88fec4d60ccacbfe35487b6e89d406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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