about summary refs log blame commit diff
path: root/tests/remote-store.sh
blob: 260fdeb764a9b1b00d11567e3780e1b31f3b427e (plain) (tree)
1
2
3
4
5
6
7
8






                                 
                                      





                                  
                              
                                       

                       
            
source common.sh

export FORCE_NIX_REMOTE=1

echo '*** testing slave mode ***'
clearStore
clearManifests
NIX_REMOTE=slave $SHELL ./user-envs.sh

echo '*** testing daemon mode ***'
clearStore
clearManifests
$nixworker --daemon &
pidDaemon=$!
trap "kill -9 $pidDaemon" EXIT
NIX_REMOTE=daemon $SHELL ./user-envs.sh
kill -9 $pidDaemon
wait $pidDaemon || true
trap "" EXIT