yum upgrade -y
yum install -y \
- git binutils make autoconf automake gcc diffutils sudo texinfo-tex netcat procps systemd \
+ git binutils make autoconf automake gcc diffutils sudo texinfo-tex netcat procps systemd perl-IPC-Cmd \
findutils socat lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
if yum info openssl11-devel; then
fi
}
+linux_openssl3() {
+ if [ -n "${HOST:-}" ]; then
+ echo >&2 "Not installing OpenSSL 3 to a cross-compilation job"
+ return
+ fi
+
+ src=/usr/local/src/openssl
+ ssl3=/opt/ssl3
+
+ mkdir -p $src
+
+ git clone --depth 1 --branch openssl-3.0.2 https://github.com/openssl/openssl $src
+ cd $src
+
+ ./Configure --prefix=$ssl3 --openssldir=$ssl3
+ make -j"$(nproc)"
+ make install_sw
+
+ ldconfig -v $ssl3/lib64
+
+ cd -
+}
+
deps_linux() {
. /etc/os-release
debian | ubuntu)
deps_linux_debian "$@"
+ linux_openssl3
;;
centos | almalinux | fedora)
deps_linux_rhel "$@"
+ linux_openssl3
;;
*) exit 1 ;;
gcrypt)
run_tests gcrypt --with-libgcrypt
;;
+openssl3)
+ if [ -d /opt/ssl3 ]; then
+ run_tests openssl3 --with-openssl=/opt/ssl3 --with-openssl-include=/opt/ssl3/include --with-openssl-lib=/opt/ssl3/lib64
+ else
+ echo >&2 "OpenSSL 3 not installed, skipping test"
+ fi
+ ;;
*)
bail "unknown test flavor $1"
;;
static-analysis:
runs-on: ubuntu-latest
- timeout-minutes: 10
+ timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v1
sanitizer:
runs-on: ubuntu-latest
- timeout-minutes: 20
+ timeout-minutes: 30
strategy:
fail-fast: false
matrix:
- name: Install deps
run: sudo sh .ci/deps.sh
+ - name: Run tests with OpenSSL 3
+ run: bash .ci/sanitizers/run.sh openssl3
+
- name: Sanitize tests with default settings
run: bash .ci/sanitizers/run.sh default
linux:
runs-on: ubuntu-latest
- timeout-minutes: 20
+ timeout-minutes: 30
strategy:
fail-fast: false
matrix:
- name: Create a non-privileged user
run: sh .ci/test/prepare.sh
+ - name: Run tests with OpenSSL 3
+ run: sudo -u build CI=1 sh .ci/test/run.sh openssl3
+
- name: Run tests with default settings
run: sudo -u build CI=1 sh .ci/test/run.sh default