lix-releng-staging/tests/locking.builder.sh
Eelco Dolstra f044ccf702 * 1000th revision!
* A test to verify that locking of output paths (caused by concurrent
  invocations of Nix) works correctly.
2004-05-04 13:56:30 +00:00

9 lines
166 B
Bash

export PATH=/bin:/usr/bin:$PATH
sleep 3
touch $out
# Use `>>'; without proper locking this will cause text duplication.
echo -n $(cat $inputs)$text >> $out
sleep 2