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