2007-08-13 16:56:40 +02:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
export FORCE_NIX_REMOTE=1
|
|
|
|
|
|
|
|
echo '*** testing slave mode ***'
|
|
|
|
clearStore
|
|
|
|
clearManifests
|
2007-08-14 15:43:51 +02:00
|
|
|
NIX_REMOTE=slave $SHELL ./user-envs.sh
|
2007-08-13 16:56:40 +02:00
|
|
|
|
|
|
|
echo '*** testing daemon mode ***'
|
|
|
|
clearStore
|
|
|
|
clearManifests
|
|
|
|
$nixworker --daemon &
|
|
|
|
pidDaemon=$!
|
2008-12-04 17:55:22 +01:00
|
|
|
trap "kill -9 $pidDaemon" EXIT
|
2007-08-14 15:43:51 +02:00
|
|
|
NIX_REMOTE=daemon $SHELL ./user-envs.sh
|
2007-08-13 16:56:40 +02:00
|
|
|
kill -9 $pidDaemon
|
|
|
|
wait $pidDaemon || true
|
2008-12-04 17:55:22 +01:00
|
|
|
trap "" EXIT
|