Commit d56fa37f authored by Jeff Booher-Kaeding's avatar Jeff Booher-Kaeding
Browse files

Merge branch 'updates-from-grant' into 'main'

Usability updates

See merge request !1
parents 06eb8813 023d030c
# SCT_Parser # EDK2 SCT Results Parser
This is an external parser script for [UEFI SCT]. (WIP) 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, ...@@ -9,6 +9,19 @@ It will proceed to generate a Markdown file listing number of failures, passes,
[UEFI SCT]: https://uefi.org/testtools [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
Usage to generate a "result md" is such. `python3 parser.py <log_file.ekl> <seq_file.seq>` 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`. If you do no provided any command line arguments it will use `sample.ekl` and `sample.seq`.
......
...@@ -578,7 +578,7 @@ def combine_dbs(db1, db2): ...@@ -578,7 +578,7 @@ def combine_dbs(db1, db2):
return cross_check return cross_check
def main(): if __name__ == '__main__':
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='Process SCT results.' description='Process SCT results.'
' This program takes the SCT summary and sequence files,' ' This program takes the SCT summary and sequence files,'
...@@ -604,12 +604,8 @@ def main(): ...@@ -604,12 +604,8 @@ def main():
'--uniq', action='store_true', help='Collapse duplicates') '--uniq', action='store_true', help='Collapse duplicates')
parser.add_argument( parser.add_argument(
'--print', action='store_true', help='Print results to stdout') '--print', action='store_true', help='Print results to stdout')
parser.add_argument( parser.add_argument('log_file', help='Input .ekl filename')
'log_file', nargs='?', default='sample.ekl', parser.add_argument('seq_file', help='Input .seq filename')
help='Input .ekl filename')
parser.add_argument(
'seq_file', nargs='?', default='sample.seq',
help='Input .seq filename')
parser.add_argument('find_key', nargs='?', help='Search key') parser.add_argument('find_key', nargs='?', help='Search key')
parser.add_argument('find_value', nargs='?', help='Search value') parser.add_argument('find_value', nargs='?', help='Search value')
...@@ -751,6 +747,3 @@ def main(): ...@@ -751,6 +747,3 @@ def main():
print( print(
x["guid"], ":", x["name"], "with", args.find_key, ":", x["guid"], ":", x["name"], "with", args.find_key, ":",
x[args.find_key]) x[args.find_key])
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment