aboutsummaryrefslogtreecommitdiff
path: root/tests/parallel.sh
blob: 84326978e74ef95048bfb65ec319c29bde5fea1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
source common.sh

drvPath=$($nixinstantiate parallel.nix)

echo "derivation is $drvPath"

outPath=$($nixstore -qfvv -j10000 "$drvPath")

echo "output path is $outPath"

text=$(cat "$outPath")
if test "$text" != "abacade"; then exit 1; fi

if test "$(cat $SHARED.cur)" != 0; then exit 1; fi
if test "$(cat $SHARED.max)" != 3; then exit 1; fi