persist-credentials: false
- name: 'check'
- run: git grep -z -i -l -E '^<\?xml' | xargs -0 -r xmllint >/dev/null
+ run: |
+ {
+ git grep -z -i -l -E '^<\?xml' || true
+ git grep -z -L -F 'notxml' 'tests/data/test*' || true
+ } | xargs -0 -r xmllint >/dev/null
miscchecks:
name: 'misc checks'
section can be left empty to use the standard unit test tool name `unitN` where
`N` is the test number.
-The `text-ci` make target automatically skips test with the `flaky` keyword.
+The `test-ci` make target automatically skips test with the `flaky` keyword.
Tests that have strict timing dependencies have the `timing-dependent` keyword.
These are intended to eventually be treated specially on CI builds which are
Tests using non-7-bit-ASCII characters must provide them with `%hex[]` or
similar.
+In most cases test files comply with the XML format, and pass xmllint cleanly.
+If the data file uses the `&` character, or has other, non-compliant content,
+and making it XML-compliant is not possible or unpractical, use the `notxml`
+keyword to exclude it from linter checks.
+
## `<reply>`
### `<data [nocheck="yes"] [sendzero="yes"] [hex="yes"] [nonewline="yes"] [crlf="yes|headers"]>`