mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:47:28 +03:00
tests/data: replace <, > with %LT, %GT
For XML-compliance. Closes #19925
This commit is contained in:
parent
7109b427fb
commit
2397be8349
3 changed files with 7 additions and 10 deletions
|
|
@ -4,7 +4,6 @@
|
|||
HTTP
|
||||
HTTP GET
|
||||
--no-clobber
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
|
|
@ -40,7 +39,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/exist%TESTNUMBER --no-clobber
|
|||
to stay the same
|
||||
</file>
|
||||
<precheck>
|
||||
%PERL -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, ">", $filename) or die $!; print FH "to stay the same" ; close(FH) }'
|
||||
%PERL -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "%GT", $filename) or die $!; print FH "to stay the same" ; close(FH) }'
|
||||
</precheck>
|
||||
</client>
|
||||
|
||||
|
|
@ -54,7 +53,7 @@ to stay the same
|
|||
to stay the same
|
||||
</file>
|
||||
<postcheck>
|
||||
%PERL -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay the same" and <FH> eq "") or die "incorrect $filename" ; close(FH) }'
|
||||
%PERL -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "%LT", $filename) or die $!; (%LTFH%GT eq "to stay the same" and %LTFH%GT eq "") or die "incorrect $filename" ; close(FH) }'
|
||||
</postcheck>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
HTTPS
|
||||
HTTP GET
|
||||
TLS-SRP
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
|
|
@ -43,11 +42,11 @@ Accept: */*
|
|||
|
||||
</file>
|
||||
<stripfile>
|
||||
s/^<p>Connected as user 'jsmith'.*/FINE/
|
||||
s/^%LTp%GTConnected as user 'jsmith'.*/FINE/
|
||||
s/Protocol version:.*[0-9]//
|
||||
s/GNUTLS/GnuTLS/
|
||||
s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
|
||||
s/^<.*\n//
|
||||
s/^%LT.*\n//
|
||||
s/^\n//
|
||||
</stripfile>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<keywords>
|
||||
SMTP
|
||||
MULTIPART
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
|
|
@ -35,10 +34,10 @@ smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER
|
|||
--mail-rcpt recipient@example.com
|
||||
--mail-from sender@example.com
|
||||
-F "=(;type=multipart/alternative"
|
||||
-F "= <body>This is the html version</body>;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header "
|
||||
-F "= %LTbody%GTThis is the html version%LT/body%GT;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header "
|
||||
-F "=This is the plain text version;headers=@%LOGDIR/headers%TESTNUMBER"
|
||||
-F "=)"
|
||||
-F "=@%LOGDIR/test%TESTNUMBER.txt;headers=<%LOGDIR/headers%TESTNUMBER"
|
||||
-F "=@%LOGDIR/test%TESTNUMBER.txt;headers=%LT%LOGDIR/headers%TESTNUMBER"
|
||||
-H "From: different"
|
||||
-H "To: another"
|
||||
-H "Reply-To: %LTfollowup@example.com%GT"
|
||||
|
|
@ -88,7 +87,7 @@ Content-Transfer-Encoding: 8bit%CR
|
|||
X-test1: this is a header%CR
|
||||
X-test2: this is another header%CR
|
||||
%CR
|
||||
<body>This is the html version</body>%CR
|
||||
%LTbody%GTThis is the html version%LT/body%GT%CR
|
||||
------------------------------%CR
|
||||
X-fileheader1: This is a header from a file%CR
|
||||
X-fileheader2: This is #a folded header%CR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue