summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh15
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
159DATA=$OBJ/testdata
160cat $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.
164SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh 160SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh
@@ -168,6 +164,15 @@ echo "exec ${SSH} -E${TEST_SSH_LOGFILE} "'"$@"' >>$SSHLOGWRAP
168chmod a+rx $OBJ/ssh-log-wrapper.sh 164chmod a+rx $OBJ/ssh-log-wrapper.sh
169SSH="$SSHLOGWRAP" 165SSH="$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.
170DATA=$OBJ/data
171cat $SSHD $SSHD $SSHD $SSHD >${DATA}
172chmod u+w ${DATA}
173COPY=$OBJ/copy
174rm -f ${COPY}
175
171# these should be used in tests 176# these should be used in tests
172export SSH SSHD SSHAGENT SSHADD SSHKEYGEN SSHKEYSCAN SFTP SFTPSERVER SCP 177export 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