mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
8f1dcdfc0a
* Don't use `seq' - some primitive, obsolete operating systems (Darwin) don't have it.
17 lines
381 B
Bash
17 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
|