]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) test: adding building of librustls in case TEST_MOD_TLS is set.
authorStefan Eissing <icing@apache.org>
Wed, 15 Dec 2021 13:28:17 +0000 (13:28 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 15 Dec 2021 13:28:17 +0000 (13:28 +0000)
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

index aaf0bddd7646d0c774fce8440ee1738015c21d07..4967b74005f3ef530b0007494740c89127fcd157 100755 (executable)
@@ -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