Skip to content

Commit 1abba55

Browse files
committed
CI: Enable caching for the rustls install used for mod_tls testing.
Github: closes #416 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916052 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit 39e25a4)
1 parent 44e7e82 commit 1abba55

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

.github/workflows/linux.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,17 @@ jobs:
210210
# TEST_MD=1
211211
# -------------------------------------------------------------------------
212212
### TODO: if: *condition_not_24x
213-
### TODO: fix caching here.
214213
- name: MOD_TLS test suite
215214
config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event
216215
pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests python3-multipart python3-filelock python3-websockets cargo cbindgen
217216
env: |
218217
APR_VERSION=1.7.4
219218
APU_VERSION=1.6.3
220219
APU_CONFIG="--with-crypto"
220+
RUSTLS_VERSION="v0.10.0"
221221
NO_TEST_FRAMEWORK=1
222222
TEST_INSTALL=1
223223
TEST_MOD_TLS=1
224-
CLEAR_CACHE=1
225224
# -------------------------------------------------------------------------
226225
### TODO if: *condition_not_24x
227226
### TODO: Fails because :i386 packages are not being found.

test/travis_before_linux.sh

+12
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,15 @@ if test -v APU_VERSION; then
176176
install_apx apr-util ${APU_VERSION} "${APU_CONFIG}" --with-apr=$HOME/build/apr-${APR_VERSION}
177177
ldd $HOME/root/apr-util-${APU_VERSION}/lib/libaprutil-?.so || true
178178
fi
179+
180+
# Since librustls is not a package (yet) on any platform, we
181+
# build the version we want from source
182+
if test -v TEST_MOD_TLS -a -v RUSTLS_VERSION; then
183+
if ! test -d $HOME/root/rustls; then
184+
RUSTLS_HOME="$HOME/build/rustls-ffi"
185+
git clone -q --depth=1 -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
186+
pushd "$RUSTLS_HOME"
187+
make install DESTDIR="$HOME/root/rustls"
188+
popd
189+
fi
190+
fi

test/travis_run_linux.sh

+3-10
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,9 @@ else
5454
CONFIG="$CONFIG --with-apr-util=/usr"
5555
fi
5656

57-
# Since librustls is not a package (yet) on any platform, we
58-
# build the version we want from source
59-
if test -v TEST_MOD_TLS; then
60-
RUSTLS_HOME="$HOME/build/rustls-ffi"
61-
RUSTLS_VERSION="v0.10.0"
62-
git clone -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
63-
pushd "$RUSTLS_HOME"
64-
make install DESTDIR="$PREFIX"
65-
popd
66-
CONFIG="$CONFIG --with-tls --with-rustls=$PREFIX"
57+
# Pick up the rustls install built previously.
58+
if test -v TEST_MOD_TLS -a RUSTLS_VERSION; then
59+
CONFIG="$CONFIG --with-tls --with-rustls=$HOME/root/rustls"
6760
fi
6861

6962
if test -v TEST_OPENSSL3; then

0 commit comments

Comments
 (0)