2004-05-04 20:04:17 +03:00
|
|
|
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate parallel.nix)
|
|
|
|
|
|
|
|
echo "store expr is $storeExpr"
|
|
|
|
|
2004-05-11 21:05:44 +03:00
|
|
|
#for i in $(seq 1 5); do
|
|
|
|
# echo "WORKER $i"
|
|
|
|
# $TOP/src/nix-store/nix-store -rvvB "$storeExpr" &
|
|
|
|
#done
|
2004-05-04 20:04:17 +03:00
|
|
|
|
2004-05-11 21:05:44 +03:00
|
|
|
#sleep 5
|
2004-05-04 20:04:17 +03:00
|
|
|
|
2004-05-11 21:05:44 +03:00
|
|
|
outPath=$($TOP/src/nix-store/nix-store -qnfvvvvvvK "$storeExpr")
|
2004-05-04 20:04:17 +03:00
|
|
|
|
|
|
|
echo "output path is $outPath"
|
|
|
|
|
|
|
|
text=$(cat "$outPath")
|
2004-05-11 21:05:44 +03:00
|
|
|
if test "$text" != "abacade"; then exit 1; fi
|
2004-05-04 20:04:17 +03:00
|
|
|
|
|
|
|
if test "$(cat $SHARED.cur)" != 0; then exit 1; fi
|
|
|
|
if test "$(cat $SHARED.max)" != 3; then exit 1; fi
|