summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-17 16:27:43 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-06-17 16:27:43 +1000
commitddea13d74ddaba7951c61d50a798f1c345d677c2 (patch)
treec9d107f8d063dea960cca2096d487468d64022a1 /regress
parent8a2f1b353760922bc7336f7c4030e192e13dc018 (diff)
- dtucker@cvs.openbsd.org 2004/06/17 05:51:59
[regress/multiplex.sh] Remove datafile between and after tests, kill sshd rather than wait; ok djm@
Diffstat (limited to 'regress')
-rw-r--r--regress/multiplex.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/regress/multiplex.sh b/regress/multiplex.sh
index 9940f15cb..fb4927e62 100644
--- a/regress/multiplex.sh
+++ b/regress/multiplex.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: multiplex.sh,v 1.2 2004/06/16 13:16:40 dtucker Exp $ 1# $OpenBSD: multiplex.sh,v 1.3 2004/06/17 05:51:59 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4CTL=$OBJ/ctl-sock 4CTL=$OBJ/ctl-sock
@@ -10,11 +10,13 @@ start_sshd
10trace "start master, fork to background" 10trace "start master, fork to background"
11${SSH} -2 -MS$CTL -F $OBJ/ssh_config -f somehost sleep 60 11${SSH} -2 -MS$CTL -F $OBJ/ssh_config -f somehost sleep 60
12 12
13rm -f $OBJ/ls.copy
13trace "ssh transfer over multiplexed connection and check result" 14trace "ssh transfer over multiplexed connection and check result"
14${SSH} -S$CTL otherhost cat /bin/ls > $OBJ/ls.copy 15${SSH} -S$CTL otherhost cat /bin/ls > $OBJ/ls.copy
15test -f $OBJ/ls.copy || fail "failed copy /bin/ls" 16test -f $OBJ/ls.copy || fail "failed copy /bin/ls"
16cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" 17cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls"
17 18
19rm -f $OBJ/ls.copy
18trace "ssh transfer over multiplexed connection and check result" 20trace "ssh transfer over multiplexed connection and check result"
19${SSH} -S $CTL otherhost cat /bin/ls > $OBJ/ls.copy 21${SSH} -S $CTL otherhost cat /bin/ls > $OBJ/ls.copy
20test -f $OBJ/ls.copy || fail "failed copy /bin/ls" 22test -f $OBJ/ls.copy || fail "failed copy /bin/ls"
@@ -33,6 +35,8 @@ ${SCP} -oControlPath=$CTL otherhost:/bin/ls $OBJ/ls.copy >/dev/null 2>&1
33test -f $OBJ/ls.copy || fail "failed copy /bin/ls" 35test -f $OBJ/ls.copy || fail "failed copy /bin/ls"
34cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" 36cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls"
35 37
38rm -f $OBJ/ls.copy
39
36for s in 0 1 4 5 44; do 40for s in 0 1 4 5 44; do
37 trace "exit status $s over multiplexed connection" 41 trace "exit status $s over multiplexed connection"
38 verbose "test $tid: status $s" 42 verbose "test $tid: status $s"
@@ -52,4 +56,6 @@ for s in 0 1 4 5 44; do
52 fi 56 fi
53done 57done
54 58
55sleep 30 # early close test sleeps 5 seconds per test 59# kill master, remove control socket. ssh -MS will exit when sleep exits
60$SUDO kill `cat $PIDFILE`
61rm -f $CTL