@@ -23,12 +23,27 @@ INFO main: 0 dropped(s), 1 failure(s), 93 ignored(s), 106 known u-boot limitatio
```
## 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`.
The output filename can be specified with `--md <filename>`.
Usage to generate a `result.md` is such:
``` {.sh}
$ python3 parser.py <log_file.ekl> <seq_file.seq>
```
The output filename can be specified with the `--md` option:
``` {.sh}
$ ./parser.py --md out.md ...
```
An online help is available with the `-h` option.
The generated `result md` can be easily converted to HTML using `pandoc` with:
``` {.sh}
$ pandoc -oresult.html result.md
```
### Custom search
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>`
...
...
@@ -131,6 +146,23 @@ $ ./parser.py \
--fields 'count,result,name' --uniq --print ...
```
### Re-reading markdown results
It is possible to re-read a previously generated markdown results file with the
`--input-md` option. This can be useful to perform further processing on the
tests.
Example command to read a previously generated markdown:
``` {.sh}
$ ./parser.py --input-md 'result.md' ...
```
* By default an output markdown is still generated, except in the case where the
input and output markdown have the same filename.
* The generated markdown results do not contain the "passed" tests. They can
therefore not be re-read.
## Configuration file
It is possible to use a configuration file with command line option `--config
...
...
@@ -190,13 +222,13 @@ tests.
### Sample
A`sample.yaml` configuration file is provided as example, to use with the
`sample.ekl` and `sample.seq` files.
In the folder `sample`, a`sample.yaml` configuration file is provided as
example, to use with the `sample.ekl` and `sample.seq` files.