mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +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
|
|
@ -69,68 +69,68 @@ s/boundary=------------------------[A-Za-z0-9]*/boundary=-----------------------
|
|||
# boundary string and since 5 of them are in the body contents, we see
|
||||
# (5*12) == 60 bytes less
|
||||
<protocol>
|
||||
POST /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Content-Length: 780
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
|
||||
|
||||
POST /%TESTNUMBER HTTP/1.1%CR
|
||||
Host: %HOSTIP:%HTTPPORT%CR
|
||||
Accept: */*%CR
|
||||
Content-Length: 780%CR
|
||||
Content-Type: multipart/form-data; boundary=----------------------------%CR
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="sendfile"; filename="postit2.c"%CR
|
||||
%CR
|
||||
this is what we post to the silly web server
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="callbackdata"
|
||||
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="callbackdata"%CR
|
||||
%CR
|
||||
this is what we post to the silly web server
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="filename"
|
||||
|
||||
postit2.c
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="submit"
|
||||
Content-Type: text/plain
|
||||
|
||||
send
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="somename"; filename="somefile.txt"
|
||||
Content-Type: text/plain
|
||||
|
||||
blah blah
|
||||
--------------------------------
|
||||
POST /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Content-Length: 794
|
||||
Content-Type: multipart/form-data; boundary=----------------------------
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"
|
||||
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="filename"%CR
|
||||
%CR
|
||||
postit2.c%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="submit"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
send%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="somename"; filename="somefile.txt"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
blah blah%CR
|
||||
--------------------------------%CR
|
||||
POST /%TESTNUMBER HTTP/1.1%CR
|
||||
Host: %HOSTIP:%HTTPPORT%CR
|
||||
Accept: */*%CR
|
||||
Content-Length: 794%CR
|
||||
Content-Type: multipart/form-data; boundary=----------------------------%CR
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="sendfile alternative"; filename="file name 2"%CR
|
||||
%CR
|
||||
this is what we post to the silly web server
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="callbackdata"
|
||||
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="callbackdata"%CR
|
||||
%CR
|
||||
this is what we post to the silly web server
|
||||
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="filename"
|
||||
|
||||
postit2.c
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="submit"
|
||||
Content-Type: text/plain
|
||||
|
||||
send
|
||||
------------------------------
|
||||
Content-Disposition: form-data; name="somename"; filename="somefile.txt"
|
||||
Content-Type: text/plain
|
||||
|
||||
blah blah
|
||||
--------------------------------
|
||||
%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="filename"%CR
|
||||
%CR
|
||||
postit2.c%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="submit"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
send%CR
|
||||
------------------------------%CR
|
||||
Content-Disposition: form-data; name="somename"; filename="somefile.txt"%CR
|
||||
Content-Type: text/plain%CR
|
||||
%CR
|
||||
blah blah%CR
|
||||
--------------------------------%CR
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue