Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyperify tests #7205

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-hyper.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: hyper
install:
configure: --with-openssl --with-hyper=$HOME/hyper
tflags: 1 to 153 220 221 222 223 224 230 232 271 314 315 316 396 397
tflags: 1 to 153 220 221 222 223 224 230 232 271 314 315 316 396 397 433 395 394 393 347 339

steps:
- run: sudo apt-get install libtool autoconf automake pkg-config
Expand Down
18 changes: 9 additions & 9 deletions tests/data/test339
Expand Up @@ -16,16 +16,16 @@ Trailer: chunky-trailer
Connection: mooo
ETag: W/"asdf"

40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21;heresatest=moooo
40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21;heresatest=moooo
cccccccccccccccccccccccccccccccc

0
chunky-trailer: header data

0
chunky-trailer: header data
</data>
</reply>

Expand Down
18 changes: 9 additions & 9 deletions tests/data/test347
Expand Up @@ -16,16 +16,16 @@ Trailer: chunky-trailer
Connection: mooo
ETag:

40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21;heresatest=moooo
40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21;heresatest=moooo
cccccccccccccccccccccccccccccccc

0
chunky-trailer: header data

0
chunky-trailer: header data
</data>
</reply>

Expand Down
4 changes: 4 additions & 0 deletions tests/data/test393
Expand Up @@ -18,7 +18,11 @@ Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
Accept-Ranges: bytes
%if hyper
Content-Length: 3689348814741910323
%else
Content-Length: 36893488147419103232
%endif
Connection: close
Content-Type: text/html
Funny-head: yesyes
Expand Down
4 changes: 4 additions & 0 deletions tests/data/test394
Expand Up @@ -44,7 +44,11 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
# Verify data after the test has been "shot"
<verify>
<errorcode>
%if hyper
1
%else
8
%endif
</errorcode>
<protocol>
GET /%TESTNUMBER HTTP/1.1
Expand Down
7 changes: 7 additions & 0 deletions tests/data/test395
Expand Up @@ -49,5 +49,12 @@ User-Agent: curl/%VERSION
Accept: */*

</protocol>

# hyper cannot work with too-large content-length
%if hyper
<errorcode>
1
</errorcode>
%endif
</verify>
</testcase>
8 changes: 4 additions & 4 deletions tests/data/test433
Expand Up @@ -9,10 +9,10 @@
# Server-side
<reply>
<data>
HTTP/1.1 200 OK
Content-Length: 6
Content-Type: text/1

HTTP/1.1 200 OK
Content-Length: 6
Content-Type: text/1
-foo-
</data>
</reply>
Expand Down