mirror of
https://github.com/NixOS/nix
synced 2025-07-18 02:58:27 +02:00
* A test for the nix-worker.
This commit is contained in:
parent
550ba9ebb4
commit
a7e1a51fdf
4 changed files with 24 additions and 2 deletions
17
tests/remote-store.sh
Normal file
17
tests/remote-store.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
source common.sh
|
||||
|
||||
export FORCE_NIX_REMOTE=1
|
||||
|
||||
echo '*** testing slave mode ***'
|
||||
clearStore
|
||||
clearManifests
|
||||
NIX_REMOTE=slave sh ./user-envs.sh
|
||||
|
||||
echo '*** testing daemon mode ***'
|
||||
clearStore
|
||||
clearManifests
|
||||
$nixworker --daemon &
|
||||
pidDaemon=$!
|
||||
NIX_REMOTE=daemon sh ./user-envs.sh
|
||||
kill -9 $pidDaemon
|
||||
wait $pidDaemon || true
|
Loading…
Add table
Add a link
Reference in a new issue