mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 03:06:17 +02: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`
18 lines
366 B
Bash
Executable file
18 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
|