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
3284de5f
Unverified
Commit
3284de5f
authored
Jul 13, 2021
by
Jeff Booher-Kaeding
Committed by
GitHub
Jul 13, 2021
Browse files
Merge pull request #13 from vstehle/for-jeffrey
Yaml Linting
parents
562b2fcf
770939cd
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
EBBR.yaml
View file @
3284de5f
This diff is collapsed.
Click to expand it.
Makefile
View file @
3284de5f
# Simple makefile to generate the documentation with pandoc.
.PHONY
:
all doc help clean
.PHONY
:
all doc help clean
check
all
:
doc
help
:
@
echo
'Targets:'
@
echo
' all'
@
echo
' check Perform sanity checks (currently yamllint)'
@
echo
' clean'
@
echo
' doc Generate README.pdf'
@
echo
' help Print this help.'
...
...
@@ -15,5 +16,8 @@ doc: README.pdf
%.pdf
:
%.md pandoc.yaml
pandoc
-o
$@
$<
pandoc.yaml
check
:
yamllint .
clean
:
-
rm
-f
README.pdf
README.md
View file @
3284de5f
...
...
@@ -210,6 +210,11 @@ This generated configuration can then be further edited manually.
It is possible to convert this
`README.md`
into
`README.pdf`
with pandoc using
`make doc`
. See
`make help`
.
### Sanity checks
To perform sanity checks, run
`make check`
. For the moment this runs
`yamllint`
,
which will inspect all YAML files and report errors. See
`make help`
.
### db structure:
```
{.python}
...
...
parser.py
View file @
3284de5f
...
...
@@ -497,14 +497,16 @@ def do_print(cross_check, fields):
w
[
f
]
=
max
(
w
[
f
],
len
(
str
(
x
[
f
])))
# Second pass where we print
lf
=
fields
[
len
(
fields
)
-
1
]
print
(
' '
.
join
([
*
map
(
lambda
f
:
f
"
{
f
:{
w
[
f
]
}}
"
,
fm1
),
f
ields
[
len
(
fields
)
-
1
]
]))
l
f
]))
for
x
in
cross_check
:
print
(
' '
.
join
([
*
map
(
lambda
f
:
f
"
{
x
[
f
]
:{
w
[
f
]
}}
"
,
fm1
),
x
[
fields
[
len
(
fields
)
-
1
]]
]))
*
map
(
lambda
f
:
f
"
{
x
[
f
]
:{
w
[
f
]
if
f
in
x
else
''
}}
"
,
fm1
),
x
[
lf
]
if
lf
in
x
else
''
]))
# Combine or two databases db1 and db2 coming from ekl and seq files
...
...
sample.yaml
View file @
3284de5f
...
...
@@ -6,6 +6,7 @@
# Only the first matching rule does actually update the test.
# Criteria fields are matched in a "relaxed" manner (substrings can match).
# See README.md for details.
---
-
rule
:
A sample rule to force the result as `SAMPLE' and create a `System' key
with value `Ready'.
...
...
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