aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/check.sh
blob: aa21f1e7690ed0f97231da2b505cd502e5e246de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /usr/bin/env sh

git_root="$(git rev-parse --show-toplevel)"

fmt_check() {
    echo ".#checks.x86_64-linux.$1"
}

nix eval \
    --file "$git_root/scripts/check_get_tests.nix" \
    --raw | while read -r test; do
    echo "Building test '$test'..."
    test="$(fmt_check "$test")"
    nix build \
        --option max-jobs 1 \
        --print-out-paths --no-link \
        "$test"
done