6 if [ $USE_AGENT ]; then
7 local agent_pid
=`echo GETINFO pid | gpg-connect-agent -S "$WDIR"/S.gpg-agent | sed -ne '1p' | cut -b 2-`
21 until [ -e $socket ]; do
22 echo "waiting for socket '$socket' ..."
23 if [ $pid != 0 ]; then
24 kill -0 $PID ||
break;
34 $PWMD --homedir $WDIR -n $@
> /dev
/null
&
36 wait_for_socket
$PID socket
40 echo "All tests in $0 succeeded."
45 echo "Starting test $0 ..."
53 PWMC_ARGS
="--url $WDIR/socket --no-status"
57 if [ $USE_AGENT ]; then
58 eval `gpg-agent --homedir $WDIR --sh --daemon`
59 wait_for_socket
0 "S.gpg-agent"