diff options
author | Damien Miller <djm@mindrot.org> | 2012-12-12 12:37:32 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2012-12-12 12:37:32 +1100 |
commit | 37461d7391e0944d880757b9ac8c98d1feb15a40 (patch) | |
tree | 93e216b78e6d237039f475a6216eb6c517f35681 /regress/integrity.sh | |
parent | 9fec296b0ac3e17ea1dcdf01761870297f7fd50a (diff) |
- (djm) [regress/integrity.sh] Fix awk quoting, packet length skip
Diffstat (limited to 'regress/integrity.sh')
-rw-r--r-- | regress/integrity.sh | 6 |
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 | |||
19 | cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" | 19 | cmd="sh ${SRC}/sshd-log-wrapper.sh ${SSHD} ${TEST_SSH_LOGFILE} -i -f $OBJ/sshd_proxy" |
20 | 20 | ||
21 | jot() { | 21 | jot() { |
22 | awk 'BEGIN { for (i = $2; i < $2 + $1; i++) { printf "%d\n", i } }' | 22 | awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } }" |
23 | } | 23 | } |
24 | set -x | 24 | |
25 | for m in $macs; do | 25 | for m in $macs; do |
26 | trace "test $tid: mac $m" | 26 | trace "test $tid: mac $m" |
27 | elen=0 | 27 | elen=0 |
@@ -46,7 +46,7 @@ for m in $macs; do | |||
46 | output=$(echo $output | tr -s '\r\n' '.') | 46 | output=$(echo $output | tr -s '\r\n' '.') |
47 | verbose "test $tid: $m @$off $output" | 47 | verbose "test $tid: $m @$off $output" |
48 | case "$output" in | 48 | case "$output" in |
49 | Bad?packet*) elen=$((elen+1)); skip=2;; | 49 | Bad?packet*) elen=$((elen+1)); skip=3;; |
50 | Corrupted?MAC*) emac=$((emac+1)); skip=0;; | 50 | Corrupted?MAC*) emac=$((emac+1)); skip=0;; |
51 | padding*) epad=$((epad+1)); skip=0;; | 51 | padding*) epad=$((epad+1)); skip=0;; |
52 | *) fail "unexpected error mac $m at $off";; | 52 | *) fail "unexpected error mac $m at $off";; |