Lines Matching +full:- +full:- +full:exit +full:- +full:code
6 SSH_AUTH_SOCK=/nonexistent ${SSHADD} -l > /dev/null 2>&1
7 if [ $? -ne 2 ]; then
8 fail "ssh-add -l did not fail with exit code 2"
12 eval `${SSHAGENT} -s` > /dev/null
14 if [ $r -ne 0 ]; then
15 fail "could not start ssh-agent: exit code $r"
17 ${SSHADD} -l > /dev/null 2>&1
18 if [ $? -ne 1 ]; then
19 fail "ssh-add -l did not fail with exit code 1"
25 rm -f $OBJ/$t-agent
26 ${SSHKEYGEN} -q -N '' -t $t -f $OBJ/$t-agent ||\
27 fail "ssh-keygen for $t-agent failed"
29 cat $OBJ/$t-agent.pub >> $OBJ/authorized_keys_$USER
31 ${SSHADD} $OBJ/$t-agent > /dev/null 2>&1
32 if [ $? -ne 0 ]; then
33 fail "ssh-add did succeed exit code 0"
36 ${SSHADD} -l > /dev/null 2>&1
38 if [ $r -ne 0 ]; then
39 fail "ssh-add -l failed: exit code $r"
42 ${SSHADD} -L > /dev/null 2>&1
44 if [ $r -ne 0 ]; then
45 fail "ssh-add -L failed: exit code $r"
50 ${SSH} -$p -F $OBJ/ssh_proxy somehost exit 5$p
52 if [ $r -ne 5$p ]; then
53 fail "ssh connect with protocol $p failed (exit code $r)"
59 ${SSH} -A -$p -F $OBJ/ssh_proxy somehost ${SSHADD} -l > /dev/null 2>&1
61 if [ $r -ne 0 ]; then
62 fail "ssh-add -l via agent fwd proto $p failed (exit code $r)"
64 ${SSH} -A -$p -F $OBJ/ssh_proxy somehost \
65 "${SSH} -$p -F $OBJ/ssh_proxy somehost exit 5$p"
67 if [ $r -ne 5$p ]; then
68 fail "agent fwd proto $p failed (exit code $r)"
73 ${SSHADD} -D > /dev/null 2>&1
75 if [ $r -ne 0 ]; then
76 fail "ssh-add -D failed: exit code $r"
80 ${SSHAGENT} -k > /dev/null