summaryrefslogtreecommitdiffstats
path: root/tests/eval-test.sh
blob: 5be91033b3ffa8bde4f054ee8cb42f20c0836bc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

cd $(dirname $0)/..

find=(find . -name default.nix)

for profile in `${find[@]}`; do
    echo evaluating $profile >&2

    nix-build '<nixpkgs/nixos>' \
        -I nixos-config=tests/eval-test.nix \
        -I nixos-hardware-profile=$profile \
        -A system \
        --dry-run

    if [ $? -ne 0 ]; then
	exit 1
    fi
done