Skip to content

Commit

Permalink
3 air
Browse files Browse the repository at this point in the history
  • Loading branch information
CCIGAMES committed Mar 2, 2024
1 parent 27e0b0e commit 244ba0d
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 0 deletions.
52 changes: 52 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1163
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<testcase>
<info>
<keywords>
FTP
RETR
LIST
wildcardmatch
ftplistparser
flaky
</keywords>
</info>

#
# Server-side
<reply>
<data>
</data>
</reply>

# Client-side
<client>
<server>
ftp
</server>
<tool>
lib576
</tool>
<name>
FTP wildcard with pattern ending with an open-bracket
</name>
<command>
"ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/*[]["
</command>
</client>
<verify>
<protocol>
USER anonymous
PASS ftp@example.com
PWD
CWD fully_simulated
CWD DOS
EPSV
TYPE A
LIST
QUIT
</protocol>
# 78 == CURLE_REMOTE_FILE_NOT_FOUND
<errorcode>
78
</errorcode>
</verify>
</testcase>
54 changes: 54 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1164
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
# Server-side
<reply>
# perl -e 'print "swsclose" . "\0" x 200;' | base64
# 'swsclose' is there to force server to close after send
<data nocheck="yes" base64="yes">
c3dzY2xvc2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
</data>
</reply>

#
# Client-side
<client>
# hyper doesn't support HTTP/0.9
<features>
!hyper
</features>
<server>
http
</server>
<name>
HTTP/0.9 GET and all zeroes
</name>
<command option="force-output">
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%{size_download}\n' --http0.9
</command>
</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>
<stdout mode="text">
208
</stdout>
</verify>
</testcase>
25 changes: 25 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1165
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<testcase>
<info>
<keywords>
source analysis
CURL_DISABLE
</keywords>
</info>

#
# Client-side
<client>
<server>
none
</server>

<name>
Verify configure.ac and source code CURL_DISABLE_-sync
</name>

<command type="perl">
%SRCDIR/disable-scan.pl %SRCDIR/..
</command>
</client>

</testcase>
52 changes: 52 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1166
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
followlocation
cookies
</keywords>
</info>

# Server-side
<reply>
<data>
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Set-Cookie: trackyou=want; path=/
Content-Length: 68

This server reply is for testing a Location: following with cookies
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
HTTP response with cookies but not receiving!
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
GET /want/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /want/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

</protocol>
</verify>
</testcase>
24 changes: 24 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1167
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<testcase>
<info>
<keywords>
source analysis
</keywords>
</info>

#
# Client-side
<client>
<server>
none
</server>

<name>
Verify curl prefix of public symbols in header files
</name>

<command type="perl">
%SRCDIR/badsymbols.pl %SRCDIR/..
</command>
</client>

</testcase>
77 changes: 77 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1168
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<testcase>
<info>
<keywords>
HTTP
HTTP GET
followlocation
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.1 301 This is a weirdo text message swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Location: /data/%TESTNUMBER0002.txt
Connection: close

This server reply is for testing a simple Location: following

</data>
<data2>
HTTP/1.1 200 Followed here fine swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 52

If this is received, the location following worked

</data2>
<datacheck>
HTTP/1.1 301 This is a weirdo text message swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Location: /data/%TESTNUMBER0002.txt
Connection: close

HTTP/1.1 200 Followed here fine swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 52

If this is received, the location following worked

</datacheck>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
HTTP redirect with credentials using # in user and password
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -u "catmai#d:#DZaRJYrixKE*gFY"
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
GET /want/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic Y2F0bWFpI2Q6I0RaYVJKWXJpeEtFKmdGWQ==
User-Agent: curl/%VERSION
Accept: */*

GET /data/%TESTNUMBER0002.txt HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Basic Y2F0bWFpI2Q6I0RaYVJKWXJpeEtFKmdGWQ==
User-Agent: curl/%VERSION
Accept: */*

</protocol>
</verify>
</testcase>
35 changes: 35 additions & 0 deletions sonic3air-main/framework/external/curl/curl/tests/data/test1169
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<testcase>
<info>
<keywords>
runtests.pl
</keywords>
</info>

#
# Client-side
<client>
<server>
none
</server>
<name>
Verify that runtests.pl accepts an -L option
</name>

<command type="perl">
%SRCDIR/runtests.pl -L %SRCDIR/log/test1196-library.pl
</command>
# Create a simple perl snippet that lets runtests.pl
# exit with a code we can check.
<precheck>
echo 'exit 123' > %SRCDIR/log/test1196-library.pl
</precheck>

</client>

<verify>
<errorcode>
123
</errorcode>
</verify>

</testcase>

0 comments on commit 244ba0d

Please sign in to comment.