Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5b1c085d
Commit
5b1c085d
authored
Oct 14, 1998
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Emit call number and error message.
parent
106f3f53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/server/testsuite/lyskomd.0/summarize.sh
src/server/testsuite/lyskomd.0/summarize.sh
+18
-0
No files found.
src/server/testsuite/lyskomd.0/summarize.sh
0 → 100755
View file @
5b1c085d
#!/bin/sh
# Scan all test cases, and emit information about the coverage.
# The first column in the output is the Protocol A call number.
# If a line contains more than one column the second column is the
# error number; otherwise the call succeeded.
#
# This script relies on the formatting of the test cases in obvious
# ways. See the code below for more information.
cat
*
.exp |
sed
-n
-e
's/^send "\([0-9][0-9]* [0-9][0-9]*\).*\\n"$/\1/p'
\
-e
's/^simple_expect "=\([0-9][0-9]*\).*".*/= \1/p'
\
-e
's/^simple_expect "%\([0-9][0-9]*\) \([0-9][0-9]*\) \([0-9][0-9]*\)".*/% \1 \2 \3/p'
\
|
awk
'$1 == "=" { ok[call] = ok[call] + 1; next }
$1 == "%" { err[call " " $3] = err[call " " $3] + 1; next }
{ ref = $1; call = $2; next }
END { for (k in ok) { print k }
for (k in err) { print k }
}'
\
|
sort
+0n +1n
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment