aboutsummaryrefslogtreecommitdiff
path: root/tests/parallel.sh
blob: 0044aaea60804ae7fb88f7910714ae17fb622357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate parallel.nix)

echo "store expr is $storeExpr"

outPath=$($TOP/src/nix-store/nix-store -qfvv -j10000 "$storeExpr")

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