summaryrefslogtreecommitdiff
path: root/regress/integrity.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-05-17 09:31:39 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-05-17 09:31:39 +1000
commitdfea3bcdd7c980c2335402464b7dd8d8721e426d (patch)
tree8a679275f462be86795ca1380e9838863f0ff2bd /regress/integrity.sh
parent75129025a2d504b630d1718fef0da002f5662f63 (diff)
- dtucker@cvs.openbsd.org 2013/04/07 02:16:03
[regress/Makefile regress/rekey.sh regress/integrity.sh regress/sshd-log-wrapper.sh regress/forwarding.sh regress/test-exec.sh] use -E option for ssh and sshd to write debuging logs to ssh{,d}.log and save the output from any failing tests. If a test fails the debug output from ssh and sshd for the failing tests (and only the failing tests) should be available in failed-ssh{,d}.log.
Diffstat (limited to 'regress/integrity.sh')
-rw-r--r--regress/integrity.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh
index 1bd330a18..3950b7d1f 100644
--- a/regress/integrity.sh
+++ b/regress/integrity.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: integrity.sh,v 1.8 2013/04/06 06:00:22 dtucker Exp $ 1# $OpenBSD: integrity.sh,v 1.9 2013/04/07 02:16:03 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="integrity" 4tid="integrity"
@@ -47,14 +47,15 @@ for m in $macs; do
47 aes*gcm*) macopt="-c $m";; 47 aes*gcm*) macopt="-c $m";;
48 *) macopt="-m $m";; 48 *) macopt="-m $m";;
49 esac 49 esac
50 output=`${SSH} $macopt -2F $OBJ/ssh_proxy -o "$pxy" \ 50 verbose "test $tid: $m @$off $output"
51 999.999.999.999 'printf "%4096s" " "' 2>&1` 51 ${SSH} $macopt -2F $OBJ/ssh_proxy -o "$pxy" \
52 999.999.999.999 'printf "%4096s" " "' >/dev/null
52 if [ $? -eq 0 ]; then 53 if [ $? -eq 0 ]; then
53 fail "ssh -m $m succeeds with bit-flip at $off" 54 fail "ssh -m $m succeeds with bit-flip at $off"
54 fi 55 fi
55 ecnt=`expr $ecnt + 1` 56 ecnt=`expr $ecnt + 1`
56 output=`echo $output | tr -s '\r\n' '.'` 57 output=$(tail -2 $TEST_SSH_LOGFILE | egrep -v "^debug" | \
57 verbose "test $tid: $m @$off $output" 58 tr -s '\r\n' '.')
58 case "$output" in 59 case "$output" in
59 Bad?packet*) elen=`expr $elen + 1`; skip=3;; 60 Bad?packet*) elen=`expr $elen + 1`; skip=3;;
60 Corrupted?MAC* | Decryption?integrity?check?failed*) 61 Corrupted?MAC* | Decryption?integrity?check?failed*)