mirror of
https://github.com/curl/curl.git
synced 2026-08-26 08:53:32 +03:00
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 to63e9721b63#19313 Follow-up to6cf3d7b1b1#19318 Follow-up to4d2a05d3fe#19284 Closes #19347
This commit is contained in:
parent
672886f734
commit
904e7ecb66
123 changed files with 2045 additions and 2009 deletions
|
|
@ -40,11 +40,11 @@ Proxy-Authenticate: Digest realm="many secrets", nonce="911"
|
|||
Proxy-Connection: close
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
HTTP/1.1 200 A OK%CR
|
||||
Server: Microsoft-IIS/6.0%CR
|
||||
Content-Type: text/html; charset=iso-8859-1%CR
|
||||
Content-Length: 3%CR
|
||||
%CR
|
||||
ok
|
||||
</datacheck>
|
||||
|
||||
|
|
@ -82,57 +82,57 @@ bar
|
|||
^(Content-Type: multipart/form-data;|------).*
|
||||
</strip>
|
||||
<protocol>
|
||||
POST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1
|
||||
Host: remotehost:54321
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
Content-Length: 433
|
||||
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
|
||||
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="name"
|
||||
|
||||
daniel
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="tool"
|
||||
|
||||
curl
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
|
||||
Content-Type: text/plain
|
||||
|
||||
POST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1%CR
|
||||
Host: remotehost:54321%CR
|
||||
User-Agent: curl/%VERSION%CR
|
||||
Accept: */*%CR
|
||||
Proxy-Connection: Keep-Alive%CR
|
||||
Content-Length: 433%CR
|
||||
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce%CR
|
||||
%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="name"%CR
|
||||
%CR
|
||||
daniel%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="tool"%CR
|
||||
%CR
|
||||
curl%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
foo-
|
||||
This is a moo-
|
||||
bar
|
||||
|
||||
------------------------------7c633d5c27ce--
|
||||
POST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1
|
||||
Host: remotehost:54321
|
||||
Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/%TESTNUMBER", response="2501654ca391f0b5c8c12a1da77e34cd"
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Proxy-Connection: Keep-Alive
|
||||
Content-Length: 433
|
||||
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
|
||||
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="name"
|
||||
|
||||
daniel
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="tool"
|
||||
|
||||
curl
|
||||
------------------------------7c633d5c27ce
|
||||
Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
|
||||
Content-Type: text/plain
|
||||
|
||||
%CR
|
||||
------------------------------7c633d5c27ce--%CR
|
||||
POST http://remotehost:54321/we/want/%TESTNUMBER HTTP/1.1%CR
|
||||
Host: remotehost:54321%CR
|
||||
Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/%TESTNUMBER", response="2501654ca391f0b5c8c12a1da77e34cd"%CR
|
||||
User-Agent: curl/%VERSION%CR
|
||||
Accept: */*%CR
|
||||
Proxy-Connection: Keep-Alive%CR
|
||||
Content-Length: 433%CR
|
||||
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce%CR
|
||||
%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="name"%CR
|
||||
%CR
|
||||
daniel%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="tool"%CR
|
||||
%CR
|
||||
curl%CR
|
||||
------------------------------7c633d5c27ce%CR
|
||||
Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
foo-
|
||||
This is a moo-
|
||||
bar
|
||||
|
||||
------------------------------7c633d5c27ce--
|
||||
%CR
|
||||
------------------------------7c633d5c27ce--%CR
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue