From 1870e786cb605c9e9483cdd9a5d42dd64c34731a Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 15 Dec 2021 13:28:17 +0000 Subject: [PATCH] *) test: adding building of librustls in case TEST_MOD_TLS is set. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1895988 13f79535-47bb-0310-9956-ffa450edef68 --- test/travis_run_linux.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index aaf0bddd764..4967b74005f 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -51,6 +51,20 @@ else CONFIG="$CONFIG --with-apr-util=/usr" fi +# Since librustls is not a package (yet) on any platform, we +# build the version we want from source +if test -v TEST_MOD_TLS; then + RUSTLS_HOME="$HOME/build/rustls-ffi" + RUSTLS_VERSION="v0.8.2" + git clone https://github.com/rustls/rustls-ffi.git "$RUSTLS_HOME" + pushd "$RUSTLS_HOME" + git fetch origin + git checkout tags/$RUSTLS_VERSION + make install DESTDIR="$PREFIX" + popd + CONFIG="$CONFIG --with-tls --with-rustls=$PREFIX" +fi + if test -v TEST_OPENSSL3; then CONFIG="$CONFIG --with-ssl=$HOME/root/openssl3" export LD_LIBRARY_PATH=$HOME/root/openssl3/lib:$HOME/root/openssl3/lib64 -- 2.47.2