mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
8f1dcdfc0a
* Don't use `seq' - some primitive, obsolete operating systems (Darwin) don't have it.
18 lines
381 B
Bash
18 lines
381 B
Bash
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate locking.nix)
|
|
|
|
echo "store expr is $storeExpr"
|
|
|
|
for i in 1 2 3 4 5; do
|
|
echo "WORKER $i"
|
|
$TOP/src/nix-store/nix-store -rvvvvvB "$storeExpr" &
|
|
done
|
|
|
|
sleep 5
|
|
|
|
outPath=$($TOP/src/nix-store/nix-store -qnfvvvvv "$storeExpr")
|
|
|
|
echo "output path is $outPath"
|
|
|
|
text=$(cat "$outPath")
|
|
if test "$text" != "aabcade"; then exit 1; fi
|