summaryrefslogtreecommitdiffstats
path: root/regress/reconfigure.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-06-18 14:18:57 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-06-18 14:18:57 +0200
commitfc8a7ea202046052d074931b4e9c07b505b8a1df (patch)
tree4686b387f062a8b95b5c0037ad89283bacaefe22 /regress/reconfigure.sh
parent - markus@cvs.openbsd.org 2003/06/17 18:14:23 (diff)
downloadopenssh-fc8a7ea202046052d074931b4e9c07b505b8a1df.tar.xz
openssh-fc8a7ea202046052d074931b4e9c07b505b8a1df.zip
- (dtucker) [reconfigure.sh rekey.sh sftp-badcmds.sh]
Import new regression tests from OpenBSD
Diffstat (limited to 'regress/reconfigure.sh')
-rw-r--r--regress/reconfigure.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/regress/reconfigure.sh b/regress/reconfigure.sh
new file mode 100644
index 000000000..1de846a7e
--- /dev/null
+++ b/regress/reconfigure.sh
@@ -0,0 +1,28 @@
+# $OpenBSD: reconfigure.sh,v 1.1 2003/06/12 15:43:32 markus Exp $
+# Placed in the Public Domain.
+
+tid="simple connect after reconfigure"
+
+# we need the full path to sshd for -HUP
+SSHD=/usr/sbin/sshd
+
+start_sshd
+
+kill -HUP `cat $PIDFILE`
+sleep 1
+
+trace "wait for sshd to restart"
+i=0;
+while [ ! -f $PIDFILE -a $i -lt 10 ]; do
+ i=`expr $i + 1`
+ sleep $i
+done
+
+test -f $PIDFILE || fatal "sshd did not restart"
+
+for p in 1 2; do
+ ${SSH} -o "Protocol=$p" -F $OBJ/ssh_config somehost true
+ if [ $? -ne 0 ]; then
+ fail "ssh connect with protocol $p failed after reconfigure"
+ fi
+done