Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SystemReady
edk2-test-parser
Commits
d56fa37f
Commit
d56fa37f
authored
Aug 18, 2021
by
Jeff Booher-Kaeding
Browse files
Merge branch 'updates-from-grant' into 'main'
Usability updates See merge request
!1
parents
06eb8813
023d030c
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d56fa37f
#
SCT_
Parser
#
EDK2 SCT Results
Parser
This is an external parser script for [UEFI SCT]. (WIP)
...
...
@@ -9,6 +9,19 @@ It will proceed to generate a Markdown file listing number of failures, passes,
[
UEFI SCT
]:
https://uefi.org/testtools
## Quick Start
If you're using this tool to analyze EBBR test results, use the following
command. The parsed report can be found in
`result.md`
.
```
{.sh}
$ ./parser.py --config EBBR.yaml \
</path/to/sct_results/Overall/Summary.ekl> \
<path/to/sct_results/Sequence/EBBR.seq>
INFO apply_rules: Updated 200 test(s) out of 12206 after applying 124 rule(s)
INFO main: 0 dropped(s), 1 failure(s), 93 ignored(s), 106 known u-boot limitation(s), 12006 pass(s), 0 warning(s)
```
## Usage
Usage to generate a "result md" is such.
`python3 parser.py <log_file.ekl> <seq_file.seq>`
If you do no provided any command line arguments it will use
`sample.ekl`
and
`sample.seq`
.
...
...
parser.py
View file @
d56fa37f
...
...
@@ -578,7 +578,7 @@ def combine_dbs(db1, db2):
return
cross_check
def
main
()
:
if
__name__
==
'__
main
__'
:
parser
=
argparse
.
ArgumentParser
(
description
=
'Process SCT results.'
' This program takes the SCT summary and sequence files,'
...
...
@@ -604,12 +604,8 @@ def main():
'--uniq'
,
action
=
'store_true'
,
help
=
'Collapse duplicates'
)
parser
.
add_argument
(
'--print'
,
action
=
'store_true'
,
help
=
'Print results to stdout'
)
parser
.
add_argument
(
'log_file'
,
nargs
=
'?'
,
default
=
'sample.ekl'
,
help
=
'Input .ekl filename'
)
parser
.
add_argument
(
'seq_file'
,
nargs
=
'?'
,
default
=
'sample.seq'
,
help
=
'Input .seq filename'
)
parser
.
add_argument
(
'log_file'
,
help
=
'Input .ekl filename'
)
parser
.
add_argument
(
'seq_file'
,
help
=
'Input .seq filename'
)
parser
.
add_argument
(
'find_key'
,
nargs
=
'?'
,
help
=
'Search key'
)
parser
.
add_argument
(
'find_value'
,
nargs
=
'?'
,
help
=
'Search value'
)
...
...
@@ -751,6 +747,3 @@ def main():
print
(
x
[
"guid"
],
":"
,
x
[
"name"
],
"with"
,
args
.
find_key
,
":"
,
x
[
args
.
find_key
])
main
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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