summaryrefslogtreecommitdiffstats
path: root/.github/setup_ci.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-01-28 14:31:01 +1100
committerDarren Tucker <dtucker@dtucker.net>2021-01-28 15:04:01 +1100
commit66dd9ddb5d2ea8c407908c8e8468c9d6e71db05b (patch)
tree0c9ae0d495358e7003183a3aaaccc4005f9b97cb /.github/setup_ci.sh
parent237dbb34e24b6b7ea888d54bda4d17da0a0fd0fa (diff)
Add test against openssl head and libressl head.
Diffstat (limited to '.github/setup_ci.sh')
-rwxr-xr-x.github/setup_ci.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
index 02f8feda..5f6cbf8d 100755
--- a/.github/setup_ci.sh
+++ b/.github/setup_ci.sh
@@ -20,7 +20,7 @@ lsb_release -a
for TARGET in $TARGETS; do
case $TARGET in
- ""|--without-openssl|--without-zlib|--with-Werror)
+ ""|--without-openssl|--without-zlib|--with-Werror|--with-rpath*)
# nothing to do
;;
"--with-kerberos5")
@@ -43,6 +43,12 @@ for TARGET in $TARGETS; do
"--with-ldflags=-lhardened_malloc")
INSTALL_HARDENED_MALLOC=yes
;;
+ "--with-ssl-dir=/opt/openssl/head")
+ INSTALL_OPENSSL_HEAD=yes
+ ;;
+ "--with-ssl-dir=/opt/libressl/head")
+ INSTALL_LIBRESSL_HEAD=yes
+ ;;
*) echo "Invalid option '${TARGET}'"
exit 1
;;
@@ -66,3 +72,19 @@ if [ "${INSTALL_HARDENED_MALLOC}" = "yes" ]; then
cd ${HOME}/hardened_malloc &&
make && sudo cp libhardened_malloc.so /usr/lib/)
fi
+
+if [ "${INSTALL_OPENSSL_HEAD}" = "yes" ];then
+ (cd ${HOME} &&
+ git clone https://github.com/openssl/openssl.git &&
+ cd ${HOME}/openssl &&
+ ./config no-threads no-engine no-fips no-shared --prefix=/opt/openssl/head &&
+ make && sudo make install_sw)
+fi
+
+if [ "${INSTALL_LIBRESSL_HEAD}" = "yes" ];then
+ (mkdir -p ${HOME}/libressl && cd ${HOME}/libressl &&
+ git clone https://github.com/libressl-portable/portable.git &&
+ cd ${HOME}/libressl/portable && sh update.sh && sh autogen.sh &&
+ ./configure --prefix=/opt/libressl/head &&
+ make && sudo make install_sw)
+fi