summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/agent.sh2
-rw-r--r--regress/proto-version.sh2
-rw-r--r--regress/ssh-com.sh2
-rw-r--r--regress/test-exec.sh15
4 files changed, 16 insertions, 5 deletions
diff --git a/regress/agent.sh b/regress/agent.sh
index 7e9b4cb18..b34487767 100644
--- a/regress/agent.sh
+++ b/regress/agent.sh
@@ -19,7 +19,7 @@ else
19 fail "ssh-add -l did not fail with exit code 1" 19 fail "ssh-add -l did not fail with exit code 1"
20 fi 20 fi
21 trace "overwrite authorized keys" 21 trace "overwrite authorized keys"
22 echo -n > $OBJ/authorized_keys_$USER 22 echon > $OBJ/authorized_keys_$USER
23 for t in rsa rsa1; do 23 for t in rsa rsa1; do
24 # generate user key for agent 24 # generate user key for agent
25 rm -f $OBJ/$t-agent 25 rm -f $OBJ/$t-agent
diff --git a/regress/proto-version.sh b/regress/proto-version.sh
index 7dc616f5f..1651a69e1 100644
--- a/regress/proto-version.sh
+++ b/regress/proto-version.sh
@@ -8,7 +8,7 @@ check_version ()
8{ 8{
9 version=$1 9 version=$1
10 expect=$2 10 expect=$2
11 banner=`echo -n | ${SSHD} -o "Protocol=${version}" -i -f ${OBJ}/sshd_proxy` 11 banner=`echon | ${SSHD} -o "Protocol=${version}" -i -f ${OBJ}/sshd_proxy`
12 case ${banner} in 12 case ${banner} in
13 SSH-1.99-*) 13 SSH-1.99-*)
14 proto=199 14 proto=199
diff --git a/regress/ssh-com.sh b/regress/ssh-com.sh
index c915cc39c..78ae6e9e1 100644
--- a/regress/ssh-com.sh
+++ b/regress/ssh-com.sh
@@ -67,7 +67,7 @@ done
67 67
68# convert and append DSA hostkey 68# convert and append DSA hostkey
69( 69(
70 echo -n 'ssh2-localhost-with-alias,127.0.0.1,::1 ' 70 echon 'ssh2-localhost-with-alias,127.0.0.1,::1 '
71 ${SSHKEYGEN} -if ${SRC}/dsa_ssh2.pub 71 ${SSHKEYGEN} -if ${SRC}/dsa_ssh2.pub
72) >> $OBJ/known_hosts 72) >> $OBJ/known_hosts
73 73
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index a7a8ddbe6..35f555b27 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -72,6 +72,17 @@ export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER
72#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER 72#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER
73 73
74# helper 74# helper
75echon()
76{
77 if [ "x`echo -n`" = "x" ]; then
78 echo -n "$@"
79 elif [ "x`echo '\c'`" = "x" ]; then
80 echo "$@\c"
81 else
82 fatal "Don't know how to echo without newline."
83 fi
84}
85
75cleanup () 86cleanup ()
76{ 87{
77 if [ -f $PIDFILE ]; then 88 if [ -f $PIDFILE ]; then
@@ -111,7 +122,7 @@ fail ()
111 122
112fatal () 123fatal ()
113{ 124{
114 echo -n "FATAL: " 125 echon "FATAL: "
115 fail "$@" 126 fail "$@"
116 cleanup 127 cleanup
117 exit $RESULT 128 exit $RESULT
@@ -169,7 +180,7 @@ for t in rsa rsa1; do
169 180
170 # known hosts file for client 181 # known hosts file for client
171 ( 182 (
172 echo -n 'localhost-with-alias,127.0.0.1,::1 ' 183 echon 'localhost-with-alias,127.0.0.1,::1 '
173 cat $OBJ/$t.pub 184 cat $OBJ/$t.pub
174 ) >> $OBJ/known_hosts 185 ) >> $OBJ/known_hosts
175 186