Skip to content

Commit 39e25a4

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
1 parent 7950b44 commit 39e25a4

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
@@ -236,18 +236,17 @@ jobs:
236236
# TEST_MD=1
237237
# -------------------------------------------------------------------------
238238
### TODO: if: *condition_not_24x
239-
### TODO: fix caching here.
240239
- name: MOD_TLS test suite
241240
config: --enable-mods-shared=reallyall --with-mpm=event --enable-mpms-shared=event
242241
pkgs: curl python3-pytest nghttp2-client python3-cryptography python3-requests python3-multipart python3-filelock python3-websockets cargo cbindgen
243242
env: |
244243
APR_VERSION=1.7.4
245244
APU_VERSION=1.6.3
246245
APU_CONFIG="--with-crypto"
246+
RUSTLS_VERSION="v0.10.0"
247247
NO_TEST_FRAMEWORK=1
248248
TEST_INSTALL=1
249249
TEST_MOD_TLS=1
250-
CLEAR_CACHE=1
251250
- name: Configured w/reduced exports
252251
config: --enable-reduced-exports --enable-maintainer-mode
253252
env: |

test/travis_before_linux.sh

+12
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,15 @@ if test -v APU_VERSION; then
147147
install_apx apr-util ${APU_VERSION} "${APU_CONFIG}" --with-apr=$HOME/build/apr-${APR_VERSION}
148148
ldd $HOME/root/apr-util-${APU_VERSION}/lib/libaprutil-?.so || true
149149
fi
150+
151+
# Since librustls is not a package (yet) on any platform, we
152+
# build the version we want from source
153+
if test -v TEST_MOD_TLS -a -v RUSTLS_VERSION; then
154+
if ! test -d $HOME/root/rustls; then
155+
RUSTLS_HOME="$HOME/build/rustls-ffi"
156+
git clone -q --depth=1 -b "$RUSTLS_VERSION" https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME"
157+
pushd "$RUSTLS_HOME"
158+
make install DESTDIR="$HOME/root/rustls"
159+
popd
160+
fi
161+
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)