lix/tests/parallel.sh

16 lines
341 B
Bash
Raw Normal View History

source common.sh
2006-03-01 12:51:18 +00:00
drvPath=$($nixinstantiate parallel.nix)
echo "derivation is $drvPath"
2006-03-01 12:51:18 +00:00
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