Skip to content
README.md 1.96 KiB
Newer Older
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
# SCT_Parser
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
This is an external Parser script for UEFI SCT. (Arm ACS test suite WIP)
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
It's designed to read a `.ekl` results log (default is `sample.ekl`), and a generated `.seq` (default is `sample.seq`) from UEFI SCT configurator.

It will proceed to generate a CSV listing fails, passes, and each test set that was Silent dropped, and a list of all failed and warnings.
Jeffrey Booher-Kaeding's avatar
Jeffrey Booher-Kaeding committed
## Command line arguments (WIP)

Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
### Different File:
if you choose to, you can pass command like arguments like so `python3 Parser.py <file.ekl> <file.seq>` This will provide a different `.ekl` log to search (such as `summary.ekl`), and a different `.seq` file, (such as `seq.seq`) 


Jeffrey Booher-Kaeding's avatar
Jeffrey Booher-Kaeding committed
### Custom search
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
For a custom Key:value search, the next two arguments *MUST be included together.* The program will search and display files that met that constraint, without the crosscheck, and display the names, guid, and key:value to the command line. `python3 Parser.py <file.ekl> <file.seq> <search key> <search value>`

you can use the `test_dict` below to see available keys. 
Jeffrey Booher-Kaeding's avatar
Jeffrey Booher-Kaeding committed
## Notes
### Known Issues:
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
* "comment" is currently not implemented, as formatting is not currently consistent, should reflect the comments from the test.
* Currently ACS tests have shared GUIDs
* ACS follows different naming convention
Jeffrey Booher-Kaeding's avatar
Jeffrey Booher-Kaeding committed
### Need to test
would a concatenation of all `.ekl` logs work?

Jeffrey Booher-Kaeding's avatar
Jeffrey Booher-Kaeding committed
### Dict structure:
```
tests = {
    <guid> : test_dict 
    <guid2> : test_dict2...
}
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed

test_dict = {
   "name": "some test",
   "result": "pass/fail",
   "group": "some group",
   "test set": "some set",  
   "sub set": "some subset",
   "set guid": "XXXXXX",
   "guid": "XXXXXX",
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
   "comment": "some comment",
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
seqs = { 
    <guid> : seq_dict
    <guid2> : seq_dict2...
}

seq_dict = {
                "name": "set name",
                "guid": "set guid",
                "Iteration": "some hex/num of how many times to run",
                "rev": "some hex/numb",
                "Order": "some hex/num"
Jeff Booher-Kaeding's avatar
Jeff Booher-Kaeding committed
}
```