]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: drop `notxml` keyword, verify all test data files as XML
authorViktor Szakats <commit@vsz.me>
Wed, 10 Dec 2025 22:44:43 +0000 (23:44 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 10 Dec 2025 23:50:18 +0000 (00:50 +0100)
Follow-up to 7f3731ce142c1d74023abad183cc8ce0fd527fab #19595

Closes #19927

.github/workflows/checksrc.yml
docs/tests/FILEFORMAT.md

index 1b471e50cfe74f247ded16af74e3c83e6ad05dbe..8552ad4c7950c3a91436fd551fffcf3bdab21f0c 100644 (file)
@@ -139,8 +139,8 @@ jobs:
       - name: 'check'
         run: |
           {
-            git grep -z -i -l -E '^<\?xml' || true
-            git grep -z -L -F 'notxml' 'tests/data/test*' || true
+            git grep -i -l -E '^<\?xml' -z || true
+            git ls-files 'tests/data/test*' -z || true
           } | xargs -0 -r xmllint >/dev/null
 
   miscchecks:
index c655a4d863d3a4c17598249a45e3c0a43681c199..84188e9dd9dcd2b0d4dd63a7a1784f2f6d3167f5 100644 (file)
@@ -257,11 +257,6 @@ often run on overloaded machines with unpredictable timing.
 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"]>`