mirror of git://anongit.mindrot.org/openssh.git
- (dtucker) [regress/Makefile regress/cipher-speed.sh regress/test-exec.sh]
Improve portability of cipher-speed test, based mostly on a patch from Iain Morgan.
This commit is contained in:
parent
e4f4347822
commit
fe10a28e08
|
@ -1,3 +1,8 @@
|
|||
20120312
|
||||
- (dtucker) [regress/Makefile regress/cipher-speed.sh regress/test-exec.sh]
|
||||
Improve portability of cipher-speed test, based mostly on a patch from
|
||||
Iain Morgan.
|
||||
|
||||
20130307
|
||||
- (dtucker) [INSTALL] Bump documented autoconf version to what we're
|
||||
currently using.
|
||||
|
|
|
@ -71,7 +71,7 @@ INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
|
|||
USER!= id -un
|
||||
CLEANFILES= t2.out t3.out t6.out1 t6.out2 t7.out t7.out.pub copy.1 copy.2 \
|
||||
t8.out t8.out.pub t9.out t9.out.pub \
|
||||
authorized_keys_${USER} known_hosts pidfile \
|
||||
authorized_keys_${USER} known_hosts pidfile testdata \
|
||||
ssh_config sshd_config.orig ssh_proxy sshd_config sshd_proxy \
|
||||
rsa.pub rsa rsa1.pub rsa1 host.rsa host.rsa1 \
|
||||
rsa-agent rsa-agent.pub rsa1-agent rsa1-agent.pub \
|
||||
|
|
|
@ -5,12 +5,11 @@ tid="cipher speed"
|
|||
|
||||
getbytes ()
|
||||
{
|
||||
sed -n '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p'
|
||||
sed -n -e '/transferred/s/.*secs (\(.* bytes.sec\).*/\1/p' \
|
||||
-e '/copied/s/.*s, \(.* MB.s\).*/\1/p'
|
||||
}
|
||||
|
||||
tries="1 2"
|
||||
DATA=/bin/ls
|
||||
DATA=/bsd
|
||||
|
||||
ciphers="aes128-cbc 3des-cbc blowfish-cbc cast128-cbc
|
||||
arcfour128 arcfour256 arcfour
|
||||
|
@ -26,7 +25,7 @@ config_defined HAVE_EVP_SHA256 && \
|
|||
for c in $ciphers; do n=0; for m in $macs; do
|
||||
trace "proto 2 cipher $c mac $m"
|
||||
for x in $tries; do
|
||||
echon "$c/$m:\t"
|
||||
printf "%-60s" "$c/$m:"
|
||||
( ${SSH} -o 'compression no' \
|
||||
-F $OBJ/ssh_proxy -2 -m $m -c $c somehost \
|
||||
exec sh -c \'"dd of=/dev/null obs=32k"\' \
|
||||
|
@ -47,7 +46,7 @@ ciphers="3des blowfish"
|
|||
for c in $ciphers; do
|
||||
trace "proto 1 cipher $c"
|
||||
for x in $tries; do
|
||||
echon "$c:\t"
|
||||
printf "%-60s" "$c:"
|
||||
( ${SSH} -o 'compression no' \
|
||||
-F $OBJ/ssh_proxy -1 -c $c somehost \
|
||||
exec sh -c \'"dd of=/dev/null obs=32k"\' \
|
||||
|
|
|
@ -140,6 +140,10 @@ if [ "x$TEST_SSH_LOGFILE" = "x" ]; then
|
|||
TEST_SSH_LOGFILE=/dev/null
|
||||
fi
|
||||
|
||||
# Some data for test copies
|
||||
DATA=$OBJ/testdata
|
||||
cat $SSHD${EXEEXT} $SSHD${EXEEXT} $SSHD${EXEEXT} $SSHD${EXEEXT} >$DATA
|
||||
|
||||
# these should be used in tests
|
||||
export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP
|
||||
#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP
|
||||
|
|
Loading…
Reference in New Issue