mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 01:02:34 +00:00
addacfce4a
When `NIX_DAEMON_PACKAGE` is set, make all the tests use the Nix daemon. That way we can test every piece of Nix functionality both with and without the daemon. Tests for which using the daemon isn’t possible or doesn’t make sens can selectively be disabled with `needLocalStore`
19 lines
366 B
Bash
Executable File
19 lines
366 B
Bash
Executable File
#!/usr/bin/env bash
|
||
|
||
# Ensure that we can’t build twice the same derivation concurrently.
|
||
# Regression test for https://github.com/NixOS/nix/issues/5029
|
||
|
||
source common.sh
|
||
|
||
buggyNeedLocalStore "For some reason, this deadlocks with the daemon"
|
||
|
||
export NIX_TESTS_CA_BY_DEFAULT=1
|
||
|
||
clearStore
|
||
|
||
for i in {0..5}; do
|
||
nix build --no-link --file ./racy.nix &
|
||
done
|
||
|
||
wait
|