summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2023-05-02 10:04:21 +0000
committerStefan Eissing <icing@apache.org>2023-05-02 10:04:21 +0000
commita088d14c0dc034cab0bc389b698f642b4a711ea3 (patch)
tree0427096b2e300e7b418ce841408f4dbce799e365 /test
parent499480e507008626581ab64cd0e49cdcc5b4a1fe (diff)
downloadhttpd-a088d14c0dc034cab0bc389b698f642b4a711ea3.tar.gz
tests, re-enable http/2 tests in github workflow, install latest rustls-ffi version
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/modules/http2/test_003_get.py5
-rwxr-xr-xtest/travis_run_linux.sh7
2 files changed, 6 insertions, 6 deletions
diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py
index cff915a836..77afa4feb9 100644
--- a/test/modules/http2/test_003_get.py
+++ b/test/modules/http2/test_003_get.py
@@ -210,7 +210,10 @@ content-type: text/html
assert "content-length" in h
clen = h["content-length"]
# get the first 1024 bytes of the resource, 206 status, but content-length as original
- r = env.curl_get(url, 5, options=["-H", "range: bytes=0-1023"])
+ for i in range(10):
+ r = env.curl_get(url, 5, options=["-H", "range: bytes=0-1023"])
+ if r.response["status"] != 503:
+ break
assert 206 == r.response["status"]
assert "HTTP/2" == r.response["protocol"]
assert 1024 == len(r.response["body"])
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh
index c2ae092954..3a2cdbd009 100755
--- a/test/travis_run_linux.sh
+++ b/test/travis_run_linux.sh
@@ -58,12 +58,9 @@ fi
# build the version we want from source
if test -v TEST_MOD_TLS; then
RUSTLS_HOME="$HOME/build/rustls-ffi"
- RUSTLS_VERSION="v0.9.0"
- git clone https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
+ RUSTLS_VERSION="v0.10.0"
+ git clone -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
pushd "$RUSTLS_HOME"
- # since v0.9.0, there is no longer a dependency on cbindgen
- git fetch origin
- git checkout tags/$RUSTLS_VERSION
make install DESTDIR="$PREFIX"
popd
CONFIG="$CONFIG --with-tls --with-rustls=$PREFIX"