nix-super/tests/remote-store.sh

20 lines
368 B
Bash
Raw Normal View History

2007-08-13 17:56:40 +03:00
source common.sh
export FORCE_NIX_REMOTE=1
echo '*** testing slave mode ***'
clearStore
clearManifests
NIX_REMOTE=slave $SHELL ./user-envs.sh
2007-08-13 17:56:40 +03:00
echo '*** testing daemon mode ***'
clearStore
clearManifests
$nixworker --daemon &
pidDaemon=$!
trap "kill -9 $pidDaemon" EXIT
NIX_REMOTE=daemon $SHELL ./user-envs.sh
2007-08-13 17:56:40 +03:00
kill -9 $pidDaemon
wait $pidDaemon || true
trap "" EXIT