X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftest%2Frun.sh;h=2d1eb07db76d50136f417f27323195552c6d3350;hb=344c632c7a9f8047a412239dcd22ba1531bdfda5;hp=b17d2de7875ee9d6207679ba3fd85191100cc1bf;hpb=53b239863ea0a44270d877945fa2014ec626ad01;p=tinc diff --git a/.ci/test/run.sh b/.ci/test/run.sh index b17d2de7..2d1eb07d 100644 --- a/.ci/test/run.sh +++ b/.ci/test/run.sh @@ -32,12 +32,23 @@ run_tests() { header "Running test flavor $flavor" autoreconf -fsi - # shellcheck disable=SC2046 - ./configure $(sh .ci/conf.sh "$@") + + DISTCHECK_CONFIGURE_FLAGS=$(sh .ci/conf.sh "$@") + export DISTCHECK_CONFIGURE_FLAGS + + # shellcheck disable=SC2086 + ./configure $DISTCHECK_CONFIGURE_FLAGS + make -j"$(nproc)" all extra + if [ "$(uname -s)" = Linux ]; then + cmd=distcheck + else + cmd=check + fi + code=0 - make check -j2 VERBOSE=1 || code=$? + make $cmd -j2 VERBOSE=1 || code=$? sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" test/ sanitizer/ @@ -75,6 +86,13 @@ nolegacy) 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" ;;