diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-06-17 16:27:43 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-06-17 16:27:43 +1000 |
commit | ddea13d74ddaba7951c61d50a798f1c345d677c2 (patch) | |
tree | c9d107f8d063dea960cca2096d487468d64022a1 /regress | |
parent | 8a2f1b353760922bc7336f7c4030e192e13dc018 (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.sh | 10 |
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 | ||
4 | CTL=$OBJ/ctl-sock | 4 | CTL=$OBJ/ctl-sock |
@@ -10,11 +10,13 @@ start_sshd | |||
10 | trace "start master, fork to background" | 10 | trace "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 | ||
13 | rm -f $OBJ/ls.copy | ||
13 | trace "ssh transfer over multiplexed connection and check result" | 14 | trace "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 |
15 | test -f $OBJ/ls.copy || fail "failed copy /bin/ls" | 16 | test -f $OBJ/ls.copy || fail "failed copy /bin/ls" |
16 | cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" | 17 | cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" |
17 | 18 | ||
19 | rm -f $OBJ/ls.copy | ||
18 | trace "ssh transfer over multiplexed connection and check result" | 20 | trace "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 |
20 | test -f $OBJ/ls.copy || fail "failed copy /bin/ls" | 22 | test -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 | |||
33 | test -f $OBJ/ls.copy || fail "failed copy /bin/ls" | 35 | test -f $OBJ/ls.copy || fail "failed copy /bin/ls" |
34 | cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" | 36 | cmp /bin/ls $OBJ/ls.copy || fail "corrupted copy of /bin/ls" |
35 | 37 | ||
38 | rm -f $OBJ/ls.copy | ||
39 | |||
36 | for s in 0 1 4 5 44; do | 40 | for 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 |
53 | done | 57 | done |
54 | 58 | ||
55 | sleep 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` | ||
61 | rm -f $CTL | ||