summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-12-12 02:37:32 +0100
committerDamien Miller <djm@mindrot.org>2012-12-12 02:37:32 +0100
commit37461d7391e0944d880757b9ac8c98d1feb15a40 (patch)
tree93e216b78e6d237039f475a6216eb6c517f35681 /regress
parent - (djm) [regress/Makefile regress/integrity.sh] Make the integrity.sh test (diff)
downloadopenssh-37461d7391e0944d880757b9ac8c98d1feb15a40.tar.xz
openssh-37461d7391e0944d880757b9ac8c98d1feb15a40.zip
- (djm) [regress/integrity.sh] Fix awk quoting, packet length skip
Diffstat (limited to 'regress')
-rw-r--r--regress/integrity.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh
index f6e5c1963..0185490c1 100644
--- a/regress/integrity.sh
+++ b/regress/integrity.sh
@@ -19,9 +19,9 @@ macs="hmac-sha1 hmac-md5 umac-64@openssh.com umac-128@openssh.com
cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy"
jot() {
- awk 'BEGIN { for (i = $2; i < $2 + $1; i++) { printf "%d\n", i } }'
+ awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } }"
}
-set -x
+
for m in $macs; do
trace "test $tid: mac $m"
elen=0
@@ -46,7 +46,7 @@ for m in $macs; do
output=$(echo $output | tr -s '\r\n' '.')
verbose "test $tid: $m @$off $output"
case "$output" in
- Bad?packet*) elen=$((elen+1)); skip=2;;
+ Bad?packet*) elen=$((elen+1)); skip=3;;
Corrupted?MAC*) emac=$((emac+1)); skip=0;;
padding*) epad=$((epad+1)); skip=0;;
*) fail "unexpected error mac $m at $off";;