about summary refs log tree commit diff
path: root/tests/parallel.sh
blob: 2382db7834ba0bd5f47ee84e79fb05f21697a4fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
source common.sh

drvPath=$($TOP/src/nix-instantiate/nix-instantiate parallel.nix)

echo "derivation is $drvPath"

outPath=$($TOP/src/nix-store/nix-store -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