diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | regress/rekey.sh | 4 | ||||
-rw-r--r-- | regress/test-exec.sh | 21 |
3 files changed, 32 insertions, 5 deletions
@@ -1,3 +1,10 @@ | |||
1 | 20131109 | ||
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 | |||
1 | 20131108 | 8 | 20131108 |
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 | ||
36 | 20131107 | 48 | 20131107 |
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 | ||
4 | tid="rekey" | 4 | tid="rekey" |
@@ -26,6 +26,8 @@ ssh_data_rekeying() | |||
26 | fi | 26 | fi |
27 | } | 27 | } |
28 | 28 | ||
29 | increase_datafile_size 300 | ||
30 | |||
29 | opts="" | 31 | opts="" |
30 | for i in `${SSH} -Q kex`; do | 32 | for 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 |
134 | case "$SSHD" in | 134 | case "$SSHD" in |
135 | /*) ;; | 135 | /*) ;; |
136 | *) SSHD=`which sshd` ;; | 136 | *) SSHD=`which $SSHD` ;; |
137 | esac | ||
138 | |||
139 | case "$SSHAGENT" in | ||
140 | /*) ;; | ||
141 | *) SSHAGENT=`which $SSHAGENT` ;; | ||
137 | esac | 142 | esac |
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. | ||
170 | DATANAME=data | 176 | DATANAME=data |
171 | DATA=$OBJ/${DATANAME} | 177 | DATA=$OBJ/${DATANAME} |
172 | cat $SSHD $SSHD $SSHD $SSHD >${DATA} | 178 | cat ${SSHAGENT} >${DATA} |
173 | chmod u+w ${DATA} | 179 | chmod u+w ${DATA} |
174 | COPY=$OBJ/copy | 180 | COPY=$OBJ/copy |
175 | rm -f ${COPY} | 181 | rm -f ${COPY} |
176 | 182 | ||
183 | increase_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 |
178 | export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP | 191 | export 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 |