summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
-rw-r--r--regress/rekey.sh4
-rw-r--r--regress/test-exec.sh21
3 files changed, 32 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 7372ad237..a6360197b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
120131109
2 - (dtucker) OpenBSD CVS Sync
3 - dtucker@cvs.openbsd.org 2013/11/09 05:41:34
4 [regress/test-exec.sh regress/rekey.sh]
5 Use smaller test data files to speed up tests. Grow test datafiles
6 where necessary for a specific test.
7
120131108 820131108
2 - (dtucker) OpenBSD CVS Sync 9 - (dtucker) OpenBSD CVS Sync
3 - dtucker@cvs.openbsd.org 2013/11/08 01:06:14 10 - dtucker@cvs.openbsd.org 2013/11/08 01:06:14
@@ -32,6 +39,11 @@
32 - (dtucker) [contrib/cygwin/ssh-host-config] Simplify host key generation: 39 - (dtucker) [contrib/cygwin/ssh-host-config] Simplify host key generation:
33 rather than testing and generating each key, call ssh-keygen -A. 40 rather than testing and generating each key, call ssh-keygen -A.
34 Patch from vinschen at redhat.com. 41 Patch from vinschen at redhat.com.
42 - (dtucker) OpenBSD CVS Sync
43 - dtucker@cvs.openbsd.org 2013/11/09 05:41:34
44 [regress/test-exec.sh regress/rekey.sh]
45 Use smaller test data files to speed up tests. Grow test datafiles
46 where necessary for a specific test.
35 47
3620131107 4820131107
37 - (djm) [ssh-pkcs11.c] Bring back "non-constant initialiser" fix (rev 1.5) 49 - (djm) [ssh-pkcs11.c] Bring back "non-constant initialiser" fix (rev 1.5)
diff --git a/regress/rekey.sh b/regress/rekey.sh
index 6095da8d5..fe81f0c33 100644
--- a/regress/rekey.sh
+++ b/regress/rekey.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: rekey.sh,v 1.12 2013/11/08 01:06:14 dtucker Exp $ 1# $OpenBSD: rekey.sh,v 1.13 2013/11/09 05:41:34 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="rekey" 4tid="rekey"
@@ -26,6 +26,8 @@ ssh_data_rekeying()
26 fi 26 fi
27} 27}
28 28
29increase_datafile_size 300
30
29opts="" 31opts=""
30for i in `${SSH} -Q kex`; do 32for i in `${SSH} -Q kex`; do
31 opts="$opts KexAlgorithms=$i" 33 opts="$opts KexAlgorithms=$i"
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index eee446264..aac8aa5c2 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: test-exec.sh,v 1.46 2013/06/21 02:26:26 djm Exp $ 1# $OpenBSD: test-exec.sh,v 1.47 2013/11/09 05:41:34 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4#SUDO=sudo 4#SUDO=sudo
@@ -133,7 +133,12 @@ fi
133# Path to sshd must be absolute for rexec 133# Path to sshd must be absolute for rexec
134case "$SSHD" in 134case "$SSHD" in
135/*) ;; 135/*) ;;
136*) SSHD=`which sshd` ;; 136*) SSHD=`which $SSHD` ;;
137esac
138
139case "$SSHAGENT" in
140/*) ;;
141*) SSHAGENT=`which $SSHAGENT` ;;
137esac 142esac
138 143
139# Logfiles. 144# Logfiles.
@@ -166,14 +171,22 @@ SSH="$SSHLOGWRAP"
166 171
167# Some test data. We make a copy because some tests will overwrite it. 172# Some test data. We make a copy because some tests will overwrite it.
168# The tests may assume that $DATA exists and is writable and $COPY does 173# The tests may assume that $DATA exists and is writable and $COPY does
169# not exist. 174# not exist. Tests requiring larger data files can call increase_datafile_size
175# [kbytes] to ensure the file is at least that large.
170DATANAME=data 176DATANAME=data
171DATA=$OBJ/${DATANAME} 177DATA=$OBJ/${DATANAME}
172cat $SSHD $SSHD $SSHD $SSHD >${DATA} 178cat ${SSHAGENT} >${DATA}
173chmod u+w ${DATA} 179chmod u+w ${DATA}
174COPY=$OBJ/copy 180COPY=$OBJ/copy
175rm -f ${COPY} 181rm -f ${COPY}
176 182
183increase_datafile_size()
184{
185 while [ `du -k ${DATA} | cut -f1` -lt $1 ]; do
186 cat ${SSHAGENT} >>${DATA}
187 done
188}
189
177# these should be used in tests 190# these should be used in tests
178export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP 191export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP
179#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP 192#echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP