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

test_target="$1"

[ -z "$test_target" ] && {
    echo "You need to select a test target!" 1>&2
    echo "Usage: test_interactive TEST_TARGET" 1>&2
    exit 1
}

shift 1

nix build --log-format multiline-with-logs .#checks.x86_64-linux."$test_target" "$@"
# vim: ft=sh