6 if [ -f "gpg-agent.env" ]; then
7 local pid
="`awk -F: '{print $2}' < gpg-agent.env`"
20 until [ -e $socket ]; do
21 echo "waiting for socket '$socket' ..."
22 if [ $pid != 0 ]; then
23 kill -0 $PID ||
break;
33 $PWMD --homedir $WDIR -n $@
> /dev
/null
&
35 wait_for_socket
$PID socket
39 echo "All tests in $0 succeeded."
44 echo "Starting test $0 ..."
52 PWMC_ARGS
="--url $WDIR/socket --no-status"
56 eval `gpg-agent --homedir $WDIR --sh --daemon --write-env-file \
58 wait_for_socket
0 "S.gpg-agent"