mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
tests: fix Accept-Encoding strips to work with Hyper builds
The previous strip also removed the CR which turned problematic. valgrind.supp: add zstd suppression using hyper Reported-and-analyzed-by: Kevin Burke Fixes #7169 Closes #7171
This commit is contained in:
parent
f7d1273cf9
commit
9dc0baf5c6
@ -116,7 +116,7 @@ jobs:
|
||||
- libbrotli-dev
|
||||
- libzstd-dev
|
||||
- env:
|
||||
- T=debug HYPER="yes" C="--with-hyper=$HOME/hyper --with-openssl" LD_LIBRARY_PATH=$HOME/hyper/target/debug:/usr/local/lib TFLAGS="1 to 153"
|
||||
- T=debug HYPER="yes" C="--with-hyper=$HOME/hyper --with-openssl" LD_LIBRARY_PATH=$HOME/hyper/target/debug:/usr/local/lib TFLAGS="1 to 153 220 221 222 223 224 230 232 314 315 316 396 397"
|
||||
addons:
|
||||
apt:
|
||||
<<: *common_apt
|
||||
|
@ -55,22 +55,14 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
%if hyper
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx
/
|
||||
%else
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
%endif
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
%if hyper
|
||||
Accept-Encoding: xxx
|
||||
%else
|
||||
Accept-Encoding: xxx
|
||||
%endif
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
@ -55,7 +55,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -186,7 +186,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -76,7 +76,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -91,7 +91,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -187,7 +187,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -186,7 +186,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -182,22 +182,14 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
%if hyper
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx
/
|
||||
%else
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
%endif
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
%if hyper
|
||||
Accept-Encoding: xxx
|
||||
%else
|
||||
Accept-Encoding: xxx
|
||||
%endif
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
@ -72,7 +72,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -182,7 +182,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -186,7 +186,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -182,7 +182,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strippart>
|
||||
s/^Accept-Encoding: .*/Accept-Encoding: xxx/
|
||||
s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
|
||||
</strippart>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
|
@ -1,3 +1,12 @@
|
||||
{
|
||||
zstd_decompression-1.3.3-on-Ubuntu-18.04_with_hyper
|
||||
Memcheck:Cond
|
||||
fun:ZSTD_decompressStream
|
||||
fun:zstd_unencode_write
|
||||
fun:Curl_unencode_write
|
||||
fun:hyper_body_chunk
|
||||
}
|
||||
|
||||
{
|
||||
zstd_decompression-1.3.3-on-Ubuntu-18.04
|
||||
Memcheck:Cond
|
||||
|
Loading…
Reference in New Issue
Block a user