forked from Xeeynamo/sonic-hybrid-rsdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
381 additions
and
0 deletions.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
sonic3air-main/framework/external/curl/curl/tests/data/test1362
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
FTP | ||
RETR | ||
</keywords> | ||
</info> | ||
|
||
# Server-side | ||
<reply> | ||
# file%TESTNUMBER contents... | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
MOOOO | ||
</data> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
# this relies on the debug feature to allow us to set directory to store the | ||
# -O output in, using the CURL_TESTDIR variable | ||
<features> | ||
debug | ||
</features> | ||
<server> | ||
ftp | ||
</server> | ||
<name> | ||
FTP download, file with C-D inside, using -O -i -D stdout | ||
</name> | ||
<setenv> | ||
CURL_TESTDIR=%PWD/log | ||
</setenv> | ||
<command option="no-output,no-include"> | ||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i -D - | ||
</command> | ||
<postcheck> | ||
perl %SRCDIR/libtest/notexists.pl log/name%TESTNUMBER | ||
</postcheck> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
USER anonymous | ||
PASS ftp@example.com | ||
PWD | ||
CWD path | ||
EPSV | ||
TYPE I | ||
SIZE file%TESTNUMBER | ||
RETR file%TESTNUMBER | ||
QUIT | ||
</protocol> | ||
|
||
<file1 name="log/file%TESTNUMBER"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
MOOOO | ||
</file1> | ||
|
||
<file2 name="log/stdout%TESTNUMBER"> | ||
220- _ _ ____ _ | ||
220- ___| | | | _ \| | | ||
220- / __| | | | |_) | | | ||
220- | (__| |_| | _ {| |___ | ||
220 \___|\___/|_| \_\_____| | ||
331 We are happy you popped in! | ||
230 Welcome you silly person | ||
257 "/" is current directory | ||
250 CWD command successful. | ||
229 Entering Passive Mode (stripped) | ||
200 I modify TYPE as you wanted | ||
213 214 | ||
150 Binary data connection for %TESTNUMBER () (214 bytes). | ||
226 File transfer complete | ||
</file2> | ||
<stripfile2> | ||
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ | ||
</stripfile2> | ||
|
||
</verify> | ||
</testcase> |
79 changes: 79 additions & 0 deletions
79
sonic3air-main/framework/external/curl/curl/tests/data/test1363
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
FTP | ||
RETR | ||
</keywords> | ||
</info> | ||
|
||
# Server-side | ||
<reply> | ||
# file%TESTNUMBER contents... | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
MOOOO | ||
</data> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
# this relies on the debug feature to allow us to set directory to store the | ||
# -O output in, using the CURL_TESTDIR variable | ||
<features> | ||
debug | ||
</features> | ||
<server> | ||
ftp | ||
</server> | ||
<name> | ||
FTP download, file with C-D inside, using -O -i, without -D | ||
</name> | ||
<setenv> | ||
CURL_TESTDIR=%PWD/log | ||
</setenv> | ||
<command option="no-output,no-include"> | ||
ftp://%HOSTIP:%FTPPORT/path/file%TESTNUMBER -O -i | ||
</command> | ||
<postcheck> | ||
perl %SRCDIR/libtest/notexists.pl log/name%TESTNUMBER | ||
</postcheck> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
USER anonymous | ||
PASS ftp@example.com | ||
PWD | ||
CWD path | ||
EPSV | ||
TYPE I | ||
SIZE file%TESTNUMBER | ||
RETR file%TESTNUMBER | ||
QUIT | ||
</protocol> | ||
|
||
<file1 name="log/file%TESTNUMBER"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
MOOOO | ||
</file1> | ||
|
||
<file2 name="log/stdout%TESTNUMBER"> | ||
</file2> | ||
|
||
</verify> | ||
</testcase> |
69 changes: 69 additions & 0 deletions
69
sonic3air-main/framework/external/curl/curl/tests/data/test1364
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
</keywords> | ||
</info> | ||
|
||
# | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
12345 | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP GET -o fname without Content-Disposition, -D file | ||
</name> | ||
<command option="no-output,no-include"> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/outfile%TESTNUMBER -D log/heads%TESTNUMBER | ||
</command> | ||
<postcheck> | ||
perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER | ||
</postcheck> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
|
||
<file1 name="log/outfile%TESTNUMBER"> | ||
12345 | ||
</file1> | ||
|
||
<file2 name="log/heads%TESTNUMBER"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
</file2> | ||
|
||
<file3 name="log/stdout%TESTNUMBER"> | ||
</file3> | ||
|
||
</verify> | ||
</testcase> |
66 changes: 66 additions & 0 deletions
66
sonic3air-main/framework/external/curl/curl/tests/data/test1365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
</keywords> | ||
</info> | ||
|
||
# | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
12345 | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP GET -o fname without Content-Disposition, -D stdout | ||
</name> | ||
<command option="no-output,no-include"> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/outfile%TESTNUMBER -D - | ||
</command> | ||
<postcheck> | ||
perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER | ||
</postcheck> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
|
||
<file1 name="log/outfile%TESTNUMBER"> | ||
12345 | ||
</file1> | ||
|
||
<file2 name="log/stdout%TESTNUMBER"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
</file2> | ||
|
||
</verify> | ||
</testcase> |
71 changes: 71 additions & 0 deletions
71
sonic3air-main/framework/external/curl/curl/tests/data/test1366
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
</keywords> | ||
</info> | ||
|
||
# | ||
<reply> | ||
<data nocheck="yes"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
12345 | ||
</data> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP GET -o fname and Content-Disposition, -D file | ||
</name> | ||
<command option="no-output,no-include"> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/outfile%TESTNUMBER -D log/heads%TESTNUMBER | ||
</command> | ||
<postcheck> | ||
perl %SRCDIR/libtest/notexists.pl log/%TESTNUMBER log/name%TESTNUMBER | ||
</postcheck> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
|
||
<file1 name="log/outfile%TESTNUMBER"> | ||
12345 | ||
</file1> | ||
|
||
<file2 name="log/heads%TESTNUMBER"> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange | ||
|
||
</file2> | ||
|
||
<file3 name="log/stdout%TESTNUMBER"> | ||
</file3> | ||
|
||
</verify> | ||
</testcase> |