diff options
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r-- | regress/test-exec.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 0680eaa94..599b8d9ba 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: test-exec.sh,v 1.41 2013/05/17 00:37:40 dtucker Exp $ | 1 | # $OpenBSD: test-exec.sh,v 1.42 2013/05/17 04:29:14 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | #SUDO=sudo | 4 | #SUDO=sudo |
@@ -155,10 +155,6 @@ fi | |||
155 | >$TEST_SSHD_LOGFILE | 155 | >$TEST_SSHD_LOGFILE |
156 | >$TEST_REGRESS_LOGFILE | 156 | >$TEST_REGRESS_LOGFILE |
157 | 157 | ||
158 | # Some data for test copies | ||
159 | DATA=$OBJ/testdata | ||
160 | cat $SSHD${EXEEXT} $SSHD${EXEEXT} $SSHD${EXEEXT} $SSHD${EXEEXT} >$DATA | ||
161 | |||
162 | # Create wrapper ssh with logging. We can't just specify "SSH=ssh -E..." | 158 | # Create wrapper ssh with logging. We can't just specify "SSH=ssh -E..." |
163 | # because sftp and scp don't handle spaces in arguments. | 159 | # because sftp and scp don't handle spaces in arguments. |
164 | SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh | 160 | SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh |
@@ -168,6 +164,15 @@ echo "exec ${SSH} -E${TEST_SSH_LOGFILE} "'"$@"' >>$SSHLOGWRAP | |||
168 | chmod a+rx $OBJ/ssh-log-wrapper.sh | 164 | chmod a+rx $OBJ/ssh-log-wrapper.sh |
169 | SSH="$SSHLOGWRAP" | 165 | SSH="$SSHLOGWRAP" |
170 | 166 | ||
167 | # 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 | ||
169 | # not exist. | ||
170 | DATA=$OBJ/data | ||
171 | cat $SSHD $SSHD $SSHD $SSHD >${DATA} | ||
172 | chmod u+w ${DATA} | ||
173 | COPY=$OBJ/copy | ||
174 | rm -f ${COPY} | ||
175 | |||
171 | # these should be used in tests | 176 | # these should be used in tests |
172 | export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP | 177 | export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP |
173 | #echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP | 178 | #echo $SSH $SSHD $SSHAGENT $SSHADD $SSHKEYGEN $SSHKEYSCAN $SFTP $SFTPSERVER $SCP |