tests: replace remaining CR bytes with the new macro %CR

There is no more mixed-newline file in the repository after this patch.
Except for`.bat` and `.sln` files (4 in total), all files use LF
newlines.

Also:
- `spacecheck.pl`: drop mixed-EOL exception for test data.
- runtests: add option `-w` to check if test data has stray CR bytes in
  them.
- build: enable the option above in test targets, except the CI-specific
  one where `spacecheck.pl` does this job already.
- tested OK (with expected failures) in CI with stray CRs added.
- cmake: enable option `-a` for the `tests` target. To continue testing
  after a failed test.

Follow-up to 63e9721b63 #19313
Follow-up to 6cf3d7b1b1 #19318
Follow-up to 4d2a05d3fe #19284

Closes #19347
This commit is contained in:
Viktor Szakats 2025-11-03 21:38:35 +01:00
parent 672886f734
commit 904e7ecb66
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
123 changed files with 2045 additions and 2009 deletions

View file

@ -9,13 +9,13 @@ HTTP GET
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 funky chunky!
Server: fakeit/0.9 fakeitbad/1.0
Transfer-Encoding: chunked
Trailer: chunky-trailer
Connection: mooo
ETag: "asdf"
HTTP/1.1 200 funky chunky!%CR
Server: fakeit/0.9 fakeitbad/1.0%CR
Transfer-Encoding: chunked%CR
Trailer: chunky-trailer%CR
Connection: mooo%CR
ETag: "asdf"%CR
%CR
40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30